@nx/vite 22.7.0-beta.1 → 22.7.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -11
- package/plugins/nx-vite-build-coordination.plugin.js +1 -1
- package/src/executors/build/build.impl.d.ts.map +1 -1
- package/src/executors/build/build.impl.js +40 -3
- package/src/executors/build/compat.js +2 -1
- package/src/executors/build/schema.json +75 -75
- package/src/executors/dev-server/compat.js +2 -1
- package/src/executors/dev-server/dev-server.impl.js +34 -1
- package/src/executors/dev-server/schema.json +36 -36
- package/src/executors/preview-server/compat.js +2 -1
- package/src/executors/preview-server/preview-server.impl.js +34 -1
- package/src/executors/preview-server/schema.json +40 -40
- package/src/executors/test/compat.js +2 -1
- package/src/executors/test/schema.json +33 -33
- package/src/executors/test/vitest.impl.js +34 -1
- package/src/generators/configuration/configuration.js +3 -2
- package/src/generators/configuration/schema.d.ts +1 -0
- package/src/generators/configuration/schema.json +62 -62
- package/src/generators/convert-to-inferred/schema.json +16 -16
- package/src/generators/init/lib/utils.d.ts.map +1 -1
- package/src/generators/init/lib/utils.js +51 -9
- package/src/generators/init/schema.d.ts +1 -0
- package/src/generators/init/schema.json +54 -47
- package/src/generators/setup-paths-plugin/schema.json +11 -11
- package/src/generators/vitest/schema.json +62 -62
- package/src/generators/vitest/vitest-generator.js +34 -1
- package/src/migrations/update-20-5-0/eslint-ignore-vite-temp-files.js +35 -2
- package/src/plugins/plugin.d.ts.map +1 -1
- package/src/plugins/plugin.js +56 -17
- package/src/utils/ensure-dependencies.d.ts.map +1 -1
- package/src/utils/ensure-dependencies.js +9 -1
- package/src/utils/executor-utils.js +1 -1
- package/src/utils/ignore-vite-temp-files.js +35 -2
- package/src/utils/version-utils.d.ts +2 -0
- package/src/utils/version-utils.d.ts.map +1 -1
- package/src/utils/version-utils.js +22 -0
- package/src/utils/versions.d.ts +11 -9
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +9 -7
- package/project.json +0 -52
- package/src/utils/test-files/angular-project.config.json +0 -89
- package/src/utils/test-files/react-lib-non-buildable-jest.json +0 -22
- package/src/utils/test-files/react-lib-non-buildable-vitest.json +0 -22
- package/src/utils/test-files/react-mixed-project.config.json +0 -47
- package/src/utils/test-files/react-vite-project.config.json +0 -54
- package/src/utils/test-files/unknown-project.config.json +0 -69
- package/src/utils/test-utils.d.ts +0 -10
- package/src/utils/test-utils.d.ts.map +0 -1
- package/src/utils/test-utils.js +0 -563
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-lib-nonb-vitest",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"root": "libs/react-lib-nonb-vitest",
|
|
5
|
-
"sourceRoot": "libs/react-lib-nonb-vitest/src",
|
|
6
|
-
"projectType": "library",
|
|
7
|
-
"targets": {
|
|
8
|
-
"lint": {
|
|
9
|
-
"executor": "@nx/eslint:lint",
|
|
10
|
-
"outputs": ["{options.outputFile}"]
|
|
11
|
-
},
|
|
12
|
-
"test": {
|
|
13
|
-
"executor": "@nx/vite:test",
|
|
14
|
-
"outputs": ["{projectRoot}/coverage"],
|
|
15
|
-
"options": {
|
|
16
|
-
"passWithNoTests": true,
|
|
17
|
-
"reportsDirectory": "{workspaceRoot}/coverage/{projectRoot}"
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"tags": []
|
|
22
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-test-mixed-react-app",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"root": "apps/my-test-mixed-react-app",
|
|
5
|
-
"sourceRoot": "apps/my-test-mixed-react-app/src",
|
|
6
|
-
"projectType": "application",
|
|
7
|
-
"targets": {
|
|
8
|
-
"invalid-build": {
|
|
9
|
-
"executor": "@nx/js:tsc",
|
|
10
|
-
"outputs": ["{options.outputPath}"]
|
|
11
|
-
},
|
|
12
|
-
"valid-build": {
|
|
13
|
-
"executor": "@nx/webpack:webpack",
|
|
14
|
-
"outputs": ["{options.outputPath}"]
|
|
15
|
-
},
|
|
16
|
-
"serve": {
|
|
17
|
-
"executor": "@nx/webpack:dev-server",
|
|
18
|
-
"defaultConfiguration": "development",
|
|
19
|
-
"options": {
|
|
20
|
-
"buildTarget": "my-test-mixed-react-app:build",
|
|
21
|
-
"hmr": true
|
|
22
|
-
},
|
|
23
|
-
"configurations": {
|
|
24
|
-
"development": {
|
|
25
|
-
"buildTarget": "my-test-mixed-react-app:build:development"
|
|
26
|
-
},
|
|
27
|
-
"production": {
|
|
28
|
-
"buildTarget": "my-test-mixed-react-app:build:production",
|
|
29
|
-
"hmr": false
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"lint": {
|
|
34
|
-
"executor": "@nx/eslint:lint",
|
|
35
|
-
"outputs": ["{options.outputFile}"]
|
|
36
|
-
},
|
|
37
|
-
"test": {
|
|
38
|
-
"executor": "@nx/jest:jest",
|
|
39
|
-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
40
|
-
"options": {
|
|
41
|
-
"jestConfig": "apps/my-test-mixed-react-app/jest.config.ts",
|
|
42
|
-
"passWithNoTests": true
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"tags": []
|
|
47
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-test-react-vite-app",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"root": "apps/my-test-react-vite-app",
|
|
5
|
-
"sourceRoot": "apps/my-test-react-vite-app/src",
|
|
6
|
-
"projectType": "application",
|
|
7
|
-
"targets": {
|
|
8
|
-
"build": {
|
|
9
|
-
"executor": "@nrwl/vite:build",
|
|
10
|
-
"outputs": ["{options.outputPath}"],
|
|
11
|
-
"defaultConfiguration": "production",
|
|
12
|
-
"options": {
|
|
13
|
-
"outputPath": "dist/apps/my-test-react-vite-app"
|
|
14
|
-
},
|
|
15
|
-
"configurations": {
|
|
16
|
-
"development": {},
|
|
17
|
-
"production": {},
|
|
18
|
-
"ssr": {
|
|
19
|
-
"ssr": true,
|
|
20
|
-
"my-other-setting": "my-other-value"
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"serve": {
|
|
25
|
-
"executor": "@nrwl/vite:dev-server",
|
|
26
|
-
"defaultConfiguration": "development",
|
|
27
|
-
"options": {
|
|
28
|
-
"buildTarget": "my-test-react-vite-app:build"
|
|
29
|
-
},
|
|
30
|
-
"configurations": {
|
|
31
|
-
"development": {
|
|
32
|
-
"buildTarget": "my-test-react-vite-app:build:development",
|
|
33
|
-
"hmr": true
|
|
34
|
-
},
|
|
35
|
-
"production": {
|
|
36
|
-
"buildTarget": "my-test-react-vite-app:build:production",
|
|
37
|
-
"hmr": false
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"test": {
|
|
42
|
-
"executor": "@nrwl/vite:test",
|
|
43
|
-
"outputs": ["{projectRoot}/coverage"],
|
|
44
|
-
"options": {
|
|
45
|
-
"passWithNoTests": true
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"lint": {
|
|
49
|
-
"executor": "@nrwl/linter:eslint",
|
|
50
|
-
"outputs": ["{options.outputFile}"]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"tags": []
|
|
54
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "my-test-random-app",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"projectType": "application",
|
|
5
|
-
"root": "apps/my-test-random-app",
|
|
6
|
-
"sourceRoot": "apps/my-test-random-app/src",
|
|
7
|
-
"tags": [],
|
|
8
|
-
"targets": {
|
|
9
|
-
"build": {
|
|
10
|
-
"executor": "@random/something:build",
|
|
11
|
-
"outputs": ["{options.outputPath}"],
|
|
12
|
-
"defaultConfiguration": "production",
|
|
13
|
-
"options": {
|
|
14
|
-
"outputPath": "dist/apps/my-test-random-app",
|
|
15
|
-
"compiler": "babel",
|
|
16
|
-
"main": "apps/my-test-random-app/src/main.ts",
|
|
17
|
-
"tsConfig": "apps/my-test-random-app/tsconfig.app.json",
|
|
18
|
-
"assets": [
|
|
19
|
-
"apps/my-test-random-app/src/favicon.ico",
|
|
20
|
-
"apps/my-test-random-app/src/assets"
|
|
21
|
-
],
|
|
22
|
-
"index": "apps/my-test-random-app/src/index.html",
|
|
23
|
-
"baseHref": "/",
|
|
24
|
-
"polyfills": "apps/my-test-random-app/src/polyfills.ts",
|
|
25
|
-
"styles": ["apps/my-test-random-app/src/styles.css"],
|
|
26
|
-
"scripts": []
|
|
27
|
-
},
|
|
28
|
-
"configurations": {
|
|
29
|
-
"production": {
|
|
30
|
-
"optimization": true,
|
|
31
|
-
"outputHashing": "all",
|
|
32
|
-
"sourceMap": false,
|
|
33
|
-
"namedChunks": false,
|
|
34
|
-
"extractLicenses": true,
|
|
35
|
-
"vendorChunk": false,
|
|
36
|
-
"fileReplacements": [
|
|
37
|
-
{
|
|
38
|
-
"replace": "apps/my-test-random-app/src/environments/environment.ts",
|
|
39
|
-
"with": "apps/my-test-random-app/src/environments/environment.prod.ts"
|
|
40
|
-
}
|
|
41
|
-
]
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"serve": {
|
|
46
|
-
"executor": "@random/something:serve",
|
|
47
|
-
"options": {
|
|
48
|
-
"buildTarget": "my-test-random-app:build"
|
|
49
|
-
},
|
|
50
|
-
"configurations": {
|
|
51
|
-
"production": {
|
|
52
|
-
"buildTarget": "my-test-random-app:build:production"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"lint": {
|
|
57
|
-
"executor": "@random/something:test",
|
|
58
|
-
"outputs": ["{options.outputFile}"]
|
|
59
|
-
},
|
|
60
|
-
"test": {
|
|
61
|
-
"executor": "@random/something:test",
|
|
62
|
-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
63
|
-
"options": {
|
|
64
|
-
"jestConfig": "apps/my-test-random-app/jest.config.ts",
|
|
65
|
-
"passWithNoTests": true
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Tree } from '@nx/devkit';
|
|
2
|
-
export declare function mockViteReactAppGenerator(tree: Tree): Tree;
|
|
3
|
-
export declare function mockReactAppGenerator(tree: Tree, userAppName?: string): Tree;
|
|
4
|
-
export declare function mockReactMixedAppGenerator(tree: Tree): Tree;
|
|
5
|
-
export declare function mockWebAppGenerator(tree: Tree): Tree;
|
|
6
|
-
export declare function mockAngularAppGenerator(tree: Tree): Tree;
|
|
7
|
-
export declare function mockUnknownAppGenerator(tree: Tree): Tree;
|
|
8
|
-
export declare function mockReactLibNonBuildableJestTestRunnerGenerator(tree: Tree): Tree;
|
|
9
|
-
export declare function mockReactLibNonBuildableVitestRunnerGenerator(tree: Tree): Tree;
|
|
10
|
-
//# sourceMappingURL=test-utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/vite/src/utils/test-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,YAAY,CAAC;AAQ7C,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAgI1D;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CA0F5E;AACD,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAmG3D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CA0DpD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAiFxD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAoBxD;AAED,wBAAgB,+CAA+C,CAC7D,IAAI,EAAE,IAAI,GACT,IAAI,CAwEN;AAED,wBAAgB,6CAA6C,CAC3D,IAAI,EAAE,IAAI,GACT,IAAI,CA+FN"}
|