Skip to content

Commit 4a20602

Browse files
pawel-twardziakDominikPieper
authored andcommitted
feat: 1184 add nx 21 support
1 parent b394bd9 commit 4a20602

File tree

34 files changed

+7552
-5938
lines changed

34 files changed

+7552
-5938
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,8 @@ e2e/stencil-e2e/tests/dev.test.ts
6262
.nx/cache
6363
.nx/workspace-data
6464
migrations.json
65+
66+
vite.config.*.timestamp*
67+
vitest.config.*.timestamp*
68+
.cursor/rules/nx-rules.mdc
69+
.github/instructions/nx.instructions.md

docs/public/_headers

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/assets/*
2-
cache-control: max-age=31536000
3-
cache-control: immutable
4-
5-
/*.svg
6-
cache-control: max-age=604800
7-
cache-control: immutable
8-
9-
/*.png
10-
cache-control: max-age=604800
11-
cache-control: immutable
1+
/assets/*
2+
cache-control: max-age=31536000
3+
cache-control: immutable
4+
5+
/*.svg
6+
cache-control: max-age=604800
7+
cache-control: immutable
8+
9+
/*.png
10+
cache-control: max-age=604800
11+
cache-control: immutable

docs/public/logo.svg

Lines changed: 21 additions & 21 deletions
Loading

docs/public/logo_light.svg

Lines changed: 21 additions & 21 deletions
Loading

eslint.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,20 @@ module.exports = [
4040
},
4141
...compat.config({ extends: ['plugin:@nx/typescript'] }).map((config) => ({
4242
...config,
43-
files: ['**/*.ts', '**/*.tsx'],
43+
files: ['**/*.ts', '**/*.tsx', '**/*.cts', '**/*.mts'],
4444
rules: {},
4545
})),
4646
...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({
4747
...config,
48-
files: ['**/*.js', '**/*.jsx'],
48+
files: ['**/*.js', '**/*.jsx', '**/*.cjs', '**/*.mjs'],
4949
rules: {},
5050
})),
5151
...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({
5252
...config,
5353
files: ['**/*.json'],
5454
rules: { '@nx/dependency-checks': 'error' },
5555
})),
56+
{
57+
ignores: ['**/vite.config.*.timestamp*', '**/vitest.config.*.timestamp*'],
58+
},
5659
];

nx.json

Lines changed: 70 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
2-
"workspaceLayout": { "appsDir": "e2e", "libsDir": "packages" },
2+
"workspaceLayout": {
3+
"appsDir": "e2e",
4+
"libsDir": "packages"
5+
},
36
"tasksRunnerOptions": {
47
"default": {
58
"options": {
@@ -10,23 +13,59 @@
1013
}
1114
},
1215
"generators": {
13-
"@nx/next": { "application": { "linter": "eslint" } },
14-
"@nx/nest": { "application": { "linter": "eslint" } },
16+
"@nx/next": {
17+
"application": {
18+
"linter": "eslint"
19+
}
20+
},
21+
"@nx/nest": {
22+
"application": {
23+
"linter": "eslint"
24+
}
25+
},
1526
"@nx/express": {
16-
"application": { "linter": "eslint" },
17-
"library": { "linter": "eslint" }
27+
"application": {
28+
"linter": "eslint"
29+
},
30+
"library": {
31+
"linter": "eslint"
32+
}
33+
},
34+
"@nx/workspace": {
35+
"library": {
36+
"linter": "eslint"
37+
}
38+
},
39+
"@nx/cypress": {
40+
"cypress-project": {
41+
"linter": "eslint"
42+
}
43+
},
44+
"@nx/web": {
45+
"application": {
46+
"linter": "eslint"
47+
}
48+
},
49+
"@nx/plugin": {
50+
"plugin": {
51+
"linter": "eslint"
52+
}
1853
},
19-
"@nx/workspace": { "library": { "linter": "eslint" } },
20-
"@nx/cypress": { "cypress-project": { "linter": "eslint" } },
21-
"@nx/web": { "application": { "linter": "eslint" } },
22-
"@nx/plugin": { "plugin": { "linter": "eslint" } },
2354
"@nx/react": {
24-
"application": { "linter": "eslint" },
25-
"library": { "linter": "eslint" }
55+
"application": {
56+
"linter": "eslint"
57+
},
58+
"library": {
59+
"linter": "eslint"
60+
}
2661
},
2762
"@nx/node": {
28-
"application": { "linter": "eslint" },
29-
"library": { "linter": "eslint" }
63+
"application": {
64+
"linter": "eslint"
65+
},
66+
"library": {
67+
"linter": "eslint"
68+
}
3069
}
3170
},
3271
"targetDefaults": {
@@ -38,8 +77,15 @@
3877
"@nx/jest:jest": {
3978
"cache": true,
4079
"inputs": ["default", "^production", "{workspaceRoot}/jest.preset.js"],
41-
"options": { "passWithNoTests": true },
42-
"configurations": { "ci": { "ci": true, "codeCoverage": true } }
80+
"options": {
81+
"passWithNoTests": true
82+
},
83+
"configurations": {
84+
"ci": {
85+
"ci": true,
86+
"codeCoverage": true
87+
}
88+
}
4389
},
4490
"@nx/eslint:lint": {
4591
"inputs": [
@@ -51,7 +97,9 @@
5197
},
5298
"nx-release-publish": {
5399
"dependsOn": ["build"],
54-
"options": { "packageRoot": "dist/{projectRoot}" }
100+
"options": {
101+
"packageRoot": "dist/{projectRoot}"
102+
}
55103
},
56104
"e2e": {
57105
"executor": "@nx/jest:jest",
@@ -69,14 +117,15 @@
69117
"projectsRelationship": "independent",
70118
"version": {
71119
"conventionalCommits": true,
72-
"generatorOptions": {
73-
"fallbackCurrentVersionResolver": "disk",
74-
"updateDependents": "auto"
75-
}
120+
"fallbackCurrentVersionResolver": "disk",
121+
"updateDependents": "auto",
122+
"preserveLocalDependencyProtocols": false
76123
},
77124
"changelog": {
78125
"automaticFromRef": true,
79-
"projectChangelogs": { "createRelease": "github" }
126+
"projectChangelogs": {
127+
"createRelease": "github"
128+
}
80129
}
81130
},
82131
"$schema": "./node_modules/nx/schemas/nx-schema.json",

0 commit comments

Comments
 (0)