Skip to content

Commit aa53f2e

Browse files
committed
fixed some nx stuff
1 parent 421be90 commit aa53f2e

File tree

16 files changed

+305
-228
lines changed

16 files changed

+305
-228
lines changed

apps/website-e2e/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
"lint": {
2121
"executor": "@nx/eslint:lint",
2222
"outputs": ["{options.outputFile}"],
23-
"options": { "lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"] }
23+
"options": {
24+
"lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"]
25+
}
2426
}
2527
},
2628
"tags": [],

apps/website/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"test": {
2525
"executor": "@nx/vite:test",
26-
"outputs": ["../../coverage/apps/website"],
26+
"outputs": ["coverage/apps/website"],
2727
"options": {
2828
"passWithNoTests": true,
2929
"reportsDirectory": "../../coverage/apps/website"

apps/website/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { qwikCity } from '@builder.io/qwik-city/vite';
2+
import { qwikReact } from '@builder.io/qwik-react/vite';
23
import { qwikVite } from '@builder.io/qwik/optimizer';
34
import { qwikNxVite } from 'qwik-nx/plugins';
45
import { defineConfig } from 'vite';
56
import tsconfigPaths from 'vite-tsconfig-paths';
67
import { recmaProvideComponents } from './recma-provide-components';
7-
import { qwikReact } from '@builder.io/qwik-react/vite';
88

99
export default defineConfig(async () => {
1010
const { default: rehypePrettyCode } = await import('rehype-pretty-code');
@@ -92,6 +92,7 @@ export default defineConfig(async () => {
9292
qwikReact(),
9393
tsconfigPaths({ root: '../../' }),
9494
],
95+
9596
server: {
9697
fs: {
9798
// Allow serving files from the project root

nx.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
}
1515
}
1616
},
17-
1817
"targetDefaults": {
1918
"lint": {
2019
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
@@ -25,7 +24,8 @@
2524
},
2625
"build": {
2726
"cache": true,
28-
"dependsOn": ["^build"]
27+
"dependsOn": ["^build"],
28+
"inputs": ["production", "^production"]
2929
},
3030
"e2e": {
3131
"cache": true
@@ -45,5 +45,10 @@
4545
"cache": true
4646
}
4747
},
48-
"nxCloudAccessToken": "MzViMzc1MGQtMDQyNi00N2E3LTliMmYtYWI4ZGIxYWJjYzE3fHJlYWQtd3JpdGU="
48+
"nxCloudAccessToken": "MzViMzc1MGQtMDQyNi00N2E3LTliMmYtYWI4ZGIxYWJjYzE3fHJlYWQtd3JpdGU=",
49+
"namedInputs": {
50+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
51+
"sharedGlobals": [],
52+
"production": ["default"]
53+
}
4954
}

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"release.resetroot": "cp dist/pnpm-workspace.yaml pnpm-workspace.yaml",
3030
"story.build.headless": "nx build-storybook headless",
3131
"story.headless": "nx storybook headless",
32+
"test.cli": "nx test cli",
3233
"test.headless": "nx component-test headless",
3334
"test.headless.ci": "nx component-test-ci headless"
3435
},
@@ -77,6 +78,8 @@
7778
"@storybook/jest": "0.2.3",
7879
"@storybook/test-runner": "0.13.0",
7980
"@storybook/testing-library": "0.2.2",
81+
"@swc-node/register": "~1.6.7",
82+
"@swc/core": "~1.3.85",
8083
"@testing-library/cypress": "9.0.0",
8184
"@types/eslint": "^8.44.2",
8285
"@types/estree-jsx": "^1.0.3",
@@ -86,9 +89,10 @@
8689
"@types/react-dom": "18.0.11",
8790
"@typescript-eslint/eslint-plugin": "6.13.1",
8891
"@typescript-eslint/parser": "6.13.1",
89-
"@vitest/coverage-v8": "^0.34.3",
92+
"@vitest/coverage-v8": "~0.34.6",
9093
"@vitest/ui": "^0.34.3",
9194
"all-contributors-cli": "^6.26.1",
95+
"ansis": "2.3.0",
9296
"autoprefixer": "^10.4.15",
9397
"axe-core": "^4.7.2",
9498
"body-scroll-lock-upgrade": "1.1.0",
@@ -170,5 +174,6 @@
170174
],
171175
"nx": {
172176
"includedScripts": []
173-
}
177+
},
178+
"dependencies": {}
174179
}

packages/cli-e2e/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"lint": {
1717
"executor": "@nx/eslint:lint",
1818
"outputs": ["{options.outputFile}"],
19-
"options": { "lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"] }
19+
"options": {
20+
"lintFilePatterns": ["packages/cli-e2e/**/*.{js,ts}"]
21+
}
2022
}
2123
},
2224
"implicitDependencies": ["cli"]

packages/cli/project.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
]
4848
}
4949
},
50-
"test-generators": {
50+
"test": {
5151
"executor": "@nx/jest:jest",
5252
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
5353
"options": {
@@ -57,7 +57,9 @@
5757
"lint": {
5858
"executor": "@nx/eslint:lint",
5959
"outputs": ["{options.outputFile}"],
60-
"options": { "lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"] }
60+
"options": {
61+
"lintFilePatterns": ["packages/cli/**/*.{js,ts}"]
62+
}
6163
}
6264
},
6365
"tags": [],

packages/kit-headless/project.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"lint": {
2929
"executor": "@nx/eslint:lint",
3030
"outputs": ["{options.outputFile}"],
31-
"options": { "lintFilePatterns": ["apps/website-e2e/**/*.{js,ts}"] }
31+
"options": {
32+
"lintFilePatterns": ["packages/headless/**/*.{js,ts}"]
33+
}
3234
},
3335
"storybook": {
3436
"executor": "@nx/storybook:storybook",

packages/kit-styled/project.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@
5757
"passWithNoTests": true
5858
}
5959
},
60-
"test-generators": {
61-
"executor": "@nx/jest:jest",
62-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
63-
"options": {
64-
"jestConfig": "packages/kit-styled/jest.config.ts"
65-
}
66-
},
6760
"lint": {
6861
"executor": "@nx/eslint:lint",
6962
"outputs": ["{options.outputFile}"],
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
{
2-
"extends": "../../tsconfig.base.json",
2+
"extends": "./tsconfig.json",
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
5-
"module": "commonjs",
6-
"types": ["jest", "node"]
5+
"types": ["vitest/globals", "vitest/importMeta", "vite/client", "node", "vitest"]
76
},
8-
"include": ["jest.config.ts", "**/*.test.ts", "**/*.spec.ts", "**/*.d.ts"]
7+
"include": [
8+
"vite.config.ts",
9+
"src/**/*.test.ts",
10+
"src/**/*.spec.ts",
11+
"src/**/*.test.tsx",
12+
"src/**/*.spec.tsx",
13+
"src/**/*.test.js",
14+
"src/**/*.spec.js",
15+
"src/**/*.test.jsx",
16+
"src/**/*.spec.jsx",
17+
"src/**/*.d.ts"
18+
]
919
}

0 commit comments

Comments
 (0)