feat: cleaning

This commit is contained in:
Maulana Sodiqin
2025-04-25 13:00:50 +07:00
parent 240e684b53
commit 41712be56a
19 changed files with 4603 additions and 16338 deletions
-2
View File
@@ -1,2 +0,0 @@
shamefully-hoist=true
strict-peer-dependencies=false
-30
View File
@@ -1,30 +0,0 @@
import { FlatCompat } from '@eslint/eslintrc';
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import js from '@eslint/js';
import baseConfig from '../../eslint.config.mjs';
const compat = new FlatCompat({
baseDirectory: dirname(fileURLToPath(import.meta.url)),
recommendedConfig: js.configs.recommended,
});
export default [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx', '**/*.vue'],
// Override or add rules here
rules: {},
},
...compat.extends('@nuxt/eslint-config'),
{
files: ['**/*.vue'],
languageOptions: {
parserOptions: {
parser: await import('@typescript-eslint/parser'),
},
},
},
{
ignores: ['.nuxt/**', '.output/**', 'node_modules'],
},
];
-25
View File
@@ -1,25 +0,0 @@
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { defineNuxtConfig } from 'nuxt/config';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
workspaceDir: '../../',
srcDir: 'src',
devtools: { enabled: true },
devServer: {
host: 'localhost',
port: 3000,
},
typescript: {
typeCheck: true,
tsConfig: {
extends: '../tsconfig.app.json', // Nuxt copies this string as-is to the `./.nuxt/tsconfig.json`, therefore it needs to be relative to that directory
},
},
imports: {
autoImport: true,
},
vite: {
plugins: [nxViteTsPaths()],
},
});
-8
View File
@@ -1,8 +0,0 @@
{
"name": "landing",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/landing/src",
"// targets": "to see all targets run: nx show project landing --web",
"targets": {}
}
-44
View File
@@ -1,44 +0,0 @@
<script setup lang="ts"></script>
<template>
<main>
<header>
<nav>
<NuxtLink to="/"> Home </NuxtLink>
<NuxtLink to="/about"> About </NuxtLink>
</nav>
</header>
<nuxt-page />
</main>
</template>
<style scoped lang="css">
header {
line-height: 1.5;
max-width: 100vw;
}
nav > a {
padding-left: 1rem;
padding-right: 1rem;
}
@media (min-width: 768px) {
header {
display: flex;
place-items: center;
padding-right: calc(var(--section-gap) / 2);
margin-left: auto;
margin-right: auto;
max-width: 768px;
}
nav {
text-align: left;
font-size: 1rem;
padding: 1rem 0;
margin-top: 1rem;
}
}
</style>
File diff suppressed because one or more lines are too long
-16
View File
@@ -1,16 +0,0 @@
<template>
<div class="about">
<h1>This is an about page.</h1>
</div>
</template>
<style>
@media (min-width: 768px) {
.about {
max-width: 768px;
margin-left: auto;
margin-right: auto;
padding: 0 1rem;
}
}
</style>
-3
View File
@@ -1,3 +0,0 @@
<template>
<NxWelcome title="landing" />
</template>
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

-10
View File
@@ -1,10 +0,0 @@
import { defineEventHandler, getQuery } from 'h3';
export default defineEventHandler((event) => {
const q = getQuery(event);
const projectName = q.name || 'World';
return {
message: `Hello ${projectName}`,
};
});
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "../../.nuxt/tsconfig.server.json"
}
-21
View File
@@ -1,21 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": true
},
"include": [".nuxt/nuxt.d.ts", "src/**/*"],
"exclude": [
"vite.config.ts",
"vite.config.mts",
"vitest.config.ts",
"vitest.config.mts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.test.tsx",
"src/**/*.spec.tsx",
"src/**/*.test.js",
"src/**/*.spec.js",
"src/**/*.test.jsx",
"src/**/*.spec.jsx"
]
}
-13
View File
@@ -1,13 +0,0 @@
{
"files": [],
"include": [".nuxt/nuxt.d.ts"],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
],
"extends": "../../tsconfig.base.json"
}
-30
View File
@@ -1,30 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": [
"vitest/globals",
"vitest/importMeta",
"vite/client",
"node",
"vitest"
],
"composite": true
},
"include": [
".nuxt/nuxt.d.ts",
"vite.config.ts",
"vite.config.mts",
"vitest.config.ts",
"vitest.config.mts",
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.test.tsx",
"src/**/*.spec.tsx",
"src/**/*.test.js",
"src/**/*.spec.js",
"src/**/*.test.jsx",
"src/**/*.spec.jsx",
"src/**/*.d.ts"
]
}
-26
View File
@@ -1,26 +0,0 @@
/// <reference types='vitest' />
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { nxCopyAssetsPlugin } from '@nx/vite/plugins/nx-copy-assets.plugin';
export default defineConfig(() => ({
root: __dirname,
cacheDir: '../../node_modules/.vite/apps/landing',
plugins: [vue(), nxViteTsPaths(), nxCopyAssetsPlugin(['*.md'])],
// Uncomment this if you are using workers.
// worker: {
// plugins: [ nxViteTsPaths() ],
// },
test: {
watch: false,
globals: true,
environment: 'jsdom',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
reporters: ['default'],
coverage: {
reportsDirectory: '../../coverage/apps/landing',
provider: 'v8' as const,
},
},
}));
+1 -13
View File
@@ -2,10 +2,7 @@
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "master",
"namedInputs": {
"default": [
"{projectRoot}/**/*",
"sharedGlobals"
],
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
"default",
"!{projectRoot}/.eslintrc.json",
@@ -48,15 +45,6 @@
"testStorybookTargetName": "test-storybook",
"staticStorybookTargetName": "static-storybook"
}
},
{
"plugin": "@nx/nuxt/plugin",
"options": {
"buildTargetName": "build",
"serveTargetName": "serve",
"buildDepsTargetName": "build-deps",
"watchDepsTargetName": "watch-deps"
}
}
],
"generators": {
+4580 -15246
View File
File diff suppressed because it is too large Load Diff
+22 -34
View File
@@ -14,23 +14,22 @@
"dimentorin:prod": "serve ./dist/apps/dimentorin",
"landing:dev": "nx serve landing",
"landing:build": "nx build landing",
"landing:prod": "node ./apps/landing/.output/server/index.mjs",
"ui:test": "nx test ui",
"ui:build": "nx build ui",
"ui:storybook": "nx storybook ui"
},
"private": true,
"dependencies": {
"@ant-design/icons": "^5.6.1",
"@ant-design/icons": "^6.0.0",
"@hookform/resolvers": "^5.0.1",
"@tanstack/react-query": "^5.67.3",
"@tanstack/react-query": "^5.74.4",
"@tanstack/react-store": "^0.7.0",
"@tanstack/react-table": "^8.21.2",
"axios": "^1.8.3",
"clsx": "^2.1.1",
"js-cookie": "^3.0.5",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-hook-form": "^7.55.0",
"react-router-dom": "^7.3.0",
"sonner": "^2.0.3",
@@ -40,21 +39,16 @@
"devDependencies": {
"@babel/core": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@eslint/eslintrc": "^2.1.1",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.8.0",
"@nuxt/devtools": "1.0.0",
"@nuxt/eslint-config": "~0.5.6",
"@nuxt/kit": "^3.10.0",
"@nuxt/ui-templates": "^1.3.1",
"@nx/eslint": "20.5.0",
"@nx/eslint-plugin": "20.5.0",
"@nx/js": "20.6.0",
"@nx/nuxt": "^20.5.0",
"@nx/react": "20.5.0",
"@nx/storybook": "^20.6.0",
"@nx/vite": "20.5.0",
"@nx/web": "20.6.0",
"@nx/workspace": "20.5.0",
"@nx/eslint": "20.8.1",
"@nx/eslint-plugin": "20.8.1",
"@nx/js": "20.8.1",
"@nx/react": "^20.8.1",
"@nx/storybook": "20.8.1",
"@nx/vite": "20.8.1",
"@nx/web": "20.8.1",
"@nx/workspace": "20.8.1",
"@storybook/addon-essentials": "^8.4.6",
"@storybook/addon-interactions": "^8.4.6",
"@storybook/core-server": "^8.4.6",
@@ -63,7 +57,7 @@
"@storybook/test-runner": "^0.19.0",
"@storybook/testing-library": "^0.2.2",
"@swc-node/register": "~1.9.1",
"@swc/cli": "^0.6.0",
"@swc/cli": "0.6.0",
"@swc/core": "~1.5.7",
"@swc/helpers": "~0.5.11",
"@tailwindcss/postcss": "^4.0.13",
@@ -73,16 +67,14 @@
"@testing-library/user-event": "^14.6.1",
"@types/js-cookie": "^3.0.6",
"@types/node": "18.16.9",
"@types/react": "19.0.0",
"@types/react-dom": "19.0.0",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"@vitejs/plugin-react": "^4.2.0",
"@vitejs/plugin-vue": "^4.5.0",
"@vitest/coverage-v8": "^3.0.5",
"@vitest/ui": "^3.0.0",
"@vue/test-utils": "^2.4.1",
"ajv": "^6.12.6",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-prettier": "10.0.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "6.10.1",
"eslint-plugin-react": "7.35.0",
@@ -90,24 +82,20 @@
"h3": "^1.8.2",
"jiti": "2.4.2",
"jsdom": "~22.1.0",
"nuxt": "^3.10.0",
"nx": "20.5.0",
"nx": "20.8.1",
"postcss": "^8.5.3",
"prettier": "^2.6.2",
"serve": "^14.2.4",
"storybook": "^8.4.6",
"tailwindcss": "^4.0.13",
"ts-node": "10.9.1",
"ts-node": "^10.9.2",
"tslib": "^2.3.0",
"typescript": "~5.7.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.19.0",
"verdaccio": "^6.0.5",
"vite": "5.3",
"vite": "^6.3.3",
"vite-plugin-dts": "~4.5.0",
"vitest": "^3.0.8",
"vue": "^3.3.4",
"vue-router": "^4.2.4",
"vue-tsc": "^2.0.0"
"vitest": "^3.0.8"
},
"nx": {
"includedScripts": []