Skip to content

Commit bab9c06

Browse files
committed
chore: clean codes
1 parent db82926 commit bab9c06

File tree

11 files changed

+201
-0
lines changed

11 files changed

+201
-0
lines changed

ui/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

ui/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

ui/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage

ui/.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

ui/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + React + Nx</title>
8+
</head>
9+
<body>
10+
<div id="root"></div>
11+
<script type="module" src="/src/index.tsx"></script>
12+
</body>
13+
</html>

ui/nx.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
3+
"affected": {
4+
"defaultBase": "master"
5+
},
6+
"tasksRunnerOptions": {
7+
"default": {
8+
"runner": "nx-cloud",
9+
"options": {
10+
"cacheableOperations": [
11+
"build",
12+
"lint",
13+
"test",
14+
"e2e"
15+
],
16+
"accessToken": "MWYwNGI5MWUtNThkYS00ZTFiLWExM2UtODViM2Y1NTA4ZmVlfHJlYWQtd3JpdGU="
17+
}
18+
}
19+
},
20+
"targetDefaults": {
21+
"build": {
22+
"dependsOn": [
23+
"^build"
24+
],
25+
"inputs": [
26+
"production",
27+
"^production"
28+
]
29+
},
30+
"test": {
31+
"inputs": [
32+
"default",
33+
"^production"
34+
]
35+
},
36+
"lint": {
37+
"inputs": [
38+
"default",
39+
"{workspaceRoot}/.eslintrc.json",
40+
"{workspaceRoot}/.eslintignore",
41+
"{workspaceRoot}/eslint.config.js"
42+
]
43+
}
44+
},
45+
"namedInputs": {
46+
"default": [
47+
"{projectRoot}/**/*",
48+
"sharedGlobals"
49+
],
50+
"production": [
51+
"default",
52+
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
53+
"!{projectRoot}/tsconfig.spec.json",
54+
"!{projectRoot}/.eslintrc.json",
55+
"!{projectRoot}/eslint.config.js"
56+
],
57+
"sharedGlobals": []
58+
},
59+
"generators": {
60+
"@nx/react": {
61+
"application": {
62+
"style": "css",
63+
"linter": "eslint",
64+
"bundler": "vite",
65+
"babel": true
66+
},
67+
"component": {
68+
"style": "css"
69+
},
70+
"library": {
71+
"style": "css",
72+
"linter": "eslint"
73+
}
74+
}
75+
}
76+
}

ui/project.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "ui",
3+
"$schema": "node_modules/nx/schemas/project-schema.json",
4+
"sourceRoot": "src",
5+
"projectType": "application",
6+
"tags": []
7+
}

ui/tsconfig.app.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist\\out-tsc",
5+
"types": [
6+
"node"
7+
]
8+
},
9+
"files": [
10+
"node_modules\\@nx\\react\\typings\\cssmodule.d.ts",
11+
"node_modules\\@nx\\react\\typings\\image.d.ts"
12+
],
13+
"exclude": [
14+
"**/*.spec.ts",
15+
"**/*.spec.tsx"
16+
],
17+
"include": [
18+
"**/*.js",
19+
"**/*.jsx",
20+
"**/*.ts",
21+
"**/*.tsx"
22+
]
23+
}

ui/tsconfig.base.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"rootDir": ".",
5+
"sourceMap": true,
6+
"declaration": false,
7+
"moduleResolution": "node",
8+
"emitDecoratorMetadata": true,
9+
"experimentalDecorators": true,
10+
"importHelpers": true,
11+
"target": "es2015",
12+
"module": "esnext",
13+
"lib": ["es2020", "dom"],
14+
"skipLibCheck": true,
15+
"skipDefaultLibCheck": true,
16+
"baseUrl": ".",
17+
"paths": {}
18+
},
19+
"exclude": ["node_modules", "tmp"]
20+
}

ui/tsconfig.spec.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist\\out-tsc",
5+
"module": "commonjs",
6+
"types": [
7+
"jest",
8+
"node"
9+
]
10+
},
11+
"include": [
12+
"**/*.spec.ts",
13+
"**/*.spec.tsx",
14+
"**/*.spec.js",
15+
"**/*.spec.jsx",
16+
"**/*.d.ts"
17+
],
18+
"files": [
19+
"node_modules\\@nx\\react\\typings\\cssmodule.d.ts",
20+
"node_modules\\@nx\\react\\typings\\image.d.ts"
21+
]
22+
}

0 commit comments

Comments
 (0)