Skip to content

Commit 2e46e44

Browse files
committed
chore: clean codes
1 parent bb68595 commit 2e46e44

File tree

8 files changed

+3703
-10911
lines changed

8 files changed

+3703
-10911
lines changed

ui/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ testem.log
3939
Thumbs.db
4040
"node_modules"
4141
"dist"
42+
43+
.nx/cache

ui/.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Add files here to ignore them from prettier formatting
22
/dist
3-
/coverage
3+
/coverage
4+
/.nx/cache

ui/migrations.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"migrations": [
3+
{
4+
"cli": "nx",
5+
"version": "17.0.0-beta.1",
6+
"description": "Updates the default cache directory to .nx/cache",
7+
"implementation": "./src/migrations/update-17-0-0/move-cache-directory",
8+
"package": "nx",
9+
"name": "17.0.0-move-cache-directory"
10+
},
11+
{
12+
"cli": "nx",
13+
"version": "17.0.0-beta.3",
14+
"description": "Use minimal config for tasksRunnerOptions",
15+
"implementation": "./src/migrations/update-17-0-0/use-minimal-config-for-tasks-runner-options",
16+
"package": "nx",
17+
"name": "17.0.0-use-minimal-config-for-tasks-runner-options"
18+
},
19+
{
20+
"version": "17.0.0-rc.1",
21+
"description": "Migration for v17.0.0-rc.1",
22+
"implementation": "./src/migrations/update-17-0-0/rm-default-collection-npm-scope",
23+
"package": "nx",
24+
"name": "rm-default-collection-npm-scope"
25+
},
26+
{
27+
"version": "17.0.0-beta.7",
28+
"description": "update-17-0-0-rename-to-eslint",
29+
"implementation": "./src/migrations/update-17-0-0-rename-to-eslint/update-17-0-0-rename-to-eslint",
30+
"package": "@nx/eslint",
31+
"name": "update-17-0-0-rename-to-eslint"
32+
}
33+
]
34+
}

ui/nx.json

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,31 @@
33
"affected": {
44
"defaultBase": "master"
55
},
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-
},
206
"targetDefaults": {
217
"build": {
22-
"dependsOn": [
23-
"^build"
24-
],
25-
"inputs": [
26-
"production",
27-
"^production"
28-
]
8+
"dependsOn": ["^build"],
9+
"inputs": ["production", "^production"],
10+
"cache": true
2911
},
3012
"test": {
31-
"inputs": [
32-
"default",
33-
"^production"
34-
]
13+
"inputs": ["default", "^production"],
14+
"cache": true
3515
},
3616
"lint": {
3717
"inputs": [
3818
"default",
3919
"{workspaceRoot}/.eslintrc.json",
4020
"{workspaceRoot}/.eslintignore",
4121
"{workspaceRoot}/eslint.config.js"
42-
]
22+
],
23+
"cache": true
24+
},
25+
"e2e": {
26+
"cache": true
4327
}
4428
},
4529
"namedInputs": {
46-
"default": [
47-
"{projectRoot}/**/*",
48-
"sharedGlobals"
49-
],
30+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
5031
"production": [
5132
"default",
5233
"!{projectRoot}/**/?(*.)+(spec|test).[jt]s?(x)?(.snap)",
@@ -72,5 +53,6 @@
7253
"linter": "eslint"
7354
}
7455
}
75-
}
56+
},
57+
"nxCloudAccessToken": "MWYwNGI5MWUtNThkYS00ZTFiLWExM2UtODViM2Y1NTA4ZmVlfHJlYWQtd3JpdGU="
7658
}

0 commit comments

Comments
 (0)