Skip to content

Commit 4d55c83

Browse files
authored
build: update to nx 21 (#1868)
1 parent eae6335 commit 4d55c83

File tree

6 files changed

+141
-119
lines changed

6 files changed

+141
-119
lines changed

.env.sample

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export NX_SELF_HOSTED_REMOTE_CACHE_SERVER=https://cache.nickthesick.com
2+
export NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN=g8@ucL8em4*Z9TKXDY9OEX@!upf^Nz9

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
types: [opened, synchronize, reopened, edited]
88

99
env:
10-
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
10+
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN }}
11+
NX_SELF_HOSTED_REMOTE_CACHE_SERVER: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_SERVER }}
1112

1213
jobs:
1314
build:

.github/workflows/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- v*.*.*
88

99
env:
10-
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
10+
NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_ACCESS_TOKEN }}
11+
NX_SELF_HOSTED_REMOTE_CACHE_SERVER: ${{ secrets.NX_SELF_HOSTED_REMOTE_CACHE_SERVER }}
1112
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
1213

1314
jobs:

nx.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "./node_modules/nx/schemas/nx-schema.json",
33
"parallel": 6,
4-
"useLegacyCache": true,
54
"release": {
65
"projects": ["packages/*"],
76
"version": {
@@ -17,14 +16,6 @@
1716
}
1817
}
1918
},
20-
"tasksRunnerOptions": {
21-
"default": {
22-
"runner": "nx/tasks-runners/default",
23-
"options": {
24-
"cacheableOperations": ["build", "test", "lint", "build:site", "e2e"]
25-
}
26-
}
27-
},
2819
"targetDefaults": {
2920
"build": {
3021
"cache": true,
@@ -48,6 +39,5 @@
4839
"cache": true,
4940
"dependsOn": ["^e2e"]
5041
}
51-
},
52-
"nxCloudId": "67f09aa8b0862b1ae48e82df"
42+
}
5343
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "root",
33
"type": "module",
44
"devDependencies": {
5-
"@nx/js": "20.6.4",
5+
"@nx/js": "^21.3.2",
66
"@typescript-eslint/eslint-plugin": "^5.5.0",
77
"@typescript-eslint/parser": "^5.5.0",
88
"concurrently": "9.1.2",
99
"eslint": "^8.22.0",
1010
"eslint-config-react-app": "^7.0.0",
1111
"eslint-plugin-import": "^2.31.0",
1212
"glob": "^10.3.10",
13-
"nx": "20.6.4",
13+
"nx": "^21.3.2",
1414
"prettier": "^3",
1515
"prettier-plugin-tailwindcss": "^0.6.11",
1616
"serve": "14.2.4",

0 commit comments

Comments
 (0)