@analogjs/platform 0.2.14 → 0.2.15
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 +5 -3
- package/src/lib/nx-plugin/executors.json +36 -0
- package/src/lib/nx-plugin/src/executors/vite/compat.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vite/compat.js +6 -0
- package/src/lib/nx-plugin/src/executors/vite/compat.js.map +1 -0
- package/src/lib/nx-plugin/src/executors/vite/schema.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vite/schema.json +169 -0
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js +5 -0
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js.map +1 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js +6 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js.map +1 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/schema.d.ts +1 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/schema.json +101 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js +5 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js.map +1 -0
- package/src/lib/nx-plugin/src/executors/vitest/compat.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vitest/compat.js +6 -0
- package/src/lib/nx-plugin/src/executors/vitest/compat.js.map +1 -0
- package/src/lib/nx-plugin/src/executors/vitest/schema.d.ts +1 -0
- package/src/lib/nx-plugin/src/executors/vitest/schema.json +68 -0
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.d.ts +2 -0
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js +5 -0
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js.map +1 -0
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js +3 -3
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/platform",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"description": "The fullstack meta-framework for Angular",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
@@ -25,10 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"nitropack": "^2.6.0",
|
|
28
|
-
"@analogjs/vite-plugin-angular": "^0.2.
|
|
29
|
-
"@analogjs/vite-plugin-nitro": "^0.2.
|
|
28
|
+
"@analogjs/vite-plugin-angular": "^0.2.15",
|
|
29
|
+
"@analogjs/vite-plugin-nitro": "^0.2.15",
|
|
30
30
|
"@nx/devkit": "^16.0.0 || ^17.0.0"
|
|
31
31
|
},
|
|
32
|
+
"builders": "./src/lib/nx-plugin/executors.json",
|
|
33
|
+
"executors": "./src/lib/nx-plugin/executors.json",
|
|
32
34
|
"generators": "./src/lib/nx-plugin/generators.json",
|
|
33
35
|
"schematics": "./src/lib/nx-plugin/generators.json",
|
|
34
36
|
"ng-update": {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"builders": {
|
|
3
|
+
"vite-dev-server": {
|
|
4
|
+
"implementation": "./src/executors/vite-dev-server/compat",
|
|
5
|
+
"schema": "./src/executors/vite-dev-server/schema.json",
|
|
6
|
+
"description": "Vite dev server."
|
|
7
|
+
},
|
|
8
|
+
"vite": {
|
|
9
|
+
"implementation": "./src/executors/vite/compat",
|
|
10
|
+
"schema": "./src/executors/vite/schema.json",
|
|
11
|
+
"description": "Build with Vite."
|
|
12
|
+
},
|
|
13
|
+
"vitest": {
|
|
14
|
+
"implementation": "./src/executors/vitest/compat",
|
|
15
|
+
"schema": "./src/executors/vitest/schema.json",
|
|
16
|
+
"description": "Test with Vitest"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"executors": {
|
|
20
|
+
"vite-dev-server": {
|
|
21
|
+
"implementation": "./src/executors/vite-dev-server/vite-dev-server.impl",
|
|
22
|
+
"schema": "./src/executors/vite-dev-server/schema.json",
|
|
23
|
+
"description": "Vite dev server."
|
|
24
|
+
},
|
|
25
|
+
"vite": {
|
|
26
|
+
"implementation": "./src/executors/vite/vite.impl",
|
|
27
|
+
"schema": "./src/executors/vite/schema.json",
|
|
28
|
+
"description": "Build with Vite."
|
|
29
|
+
},
|
|
30
|
+
"vitest": {
|
|
31
|
+
"implementation": "./src/executors/vitest/vitest.impl",
|
|
32
|
+
"schema": "./src/executors/vitest/schema.json",
|
|
33
|
+
"description": "Test with Vitest"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
const vite_impl_1 = require("./vite.impl");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxExecutor)(vite_impl_1.default);
|
|
6
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,2CAA4C;AAE5C,kBAAe,IAAA,0BAAiB,EAAC,mBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Vite Prod Builder",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Builds a Vite.js application for production.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"presets": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Default minimum setup",
|
|
11
|
+
"keys": []
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"outputPath": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The output path of the generated files.",
|
|
18
|
+
"x-completion-type": "directory",
|
|
19
|
+
"x-priority": "important"
|
|
20
|
+
},
|
|
21
|
+
"buildLibsFromSource": {
|
|
22
|
+
"type": "boolean",
|
|
23
|
+
"description": "Read buildable libraries from source instead of building them separately.",
|
|
24
|
+
"default": true
|
|
25
|
+
},
|
|
26
|
+
"skipTypeCheck": {
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"description": "Skip type-checking via TypeScript. Skipping type-checking speeds up the build but type errors are not caught.",
|
|
29
|
+
"default": false
|
|
30
|
+
},
|
|
31
|
+
"base": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Base public path when served in development or production.",
|
|
34
|
+
"alias": "baseHref"
|
|
35
|
+
},
|
|
36
|
+
"configFile": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The name of the Vite.js configuration file.",
|
|
39
|
+
"x-completion-type": "file",
|
|
40
|
+
"x-completion-glob": "vite.config.@(js|ts)"
|
|
41
|
+
},
|
|
42
|
+
"fileReplacements": {
|
|
43
|
+
"description": "Replace files with other files in the build.",
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"replace": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "The file to be replaced.",
|
|
51
|
+
"x-completion-type": "file"
|
|
52
|
+
},
|
|
53
|
+
"with": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "The file to replace with.",
|
|
56
|
+
"x-completion-type": "file"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"required": ["replace", "with"]
|
|
61
|
+
},
|
|
62
|
+
"default": []
|
|
63
|
+
},
|
|
64
|
+
"emptyOutDir": {
|
|
65
|
+
"description": "When set to false, outputPath will not be emptied during the build process.",
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"default": true
|
|
68
|
+
},
|
|
69
|
+
"sourcemap": {
|
|
70
|
+
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
71
|
+
"oneOf": [
|
|
72
|
+
{
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"target": {
|
|
81
|
+
"description": "Browser compatibility target for the final bundle. For more info: https://vitejs.dev/config/build-options.html#build-target",
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"minify": {
|
|
85
|
+
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
86
|
+
"oneOf": [
|
|
87
|
+
{
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"manifest": {
|
|
96
|
+
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
97
|
+
"oneOf": [
|
|
98
|
+
{
|
|
99
|
+
"type": "boolean"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "string"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
"ssrManifest": {
|
|
107
|
+
"description": "When set to true, the build will also generate an SSR manifest for determining style links and asset preload directives in production. When the value is a string, it will be used as the manifest file name.",
|
|
108
|
+
"oneOf": [
|
|
109
|
+
{
|
|
110
|
+
"type": "boolean"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
"ssr": {
|
|
118
|
+
"description": "Produce SSR-oriented build. The value can be a string to directly specify the SSR entry, or true, which requires specifying the SSR entry via rollupOptions.input.",
|
|
119
|
+
"oneOf": [
|
|
120
|
+
{
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "string"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"logLevel": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "Adjust console output verbosity.",
|
|
131
|
+
"enum": ["info", "warn", "error", "silent"]
|
|
132
|
+
},
|
|
133
|
+
"mode": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"description": "Mode to run the build in."
|
|
136
|
+
},
|
|
137
|
+
"force": {
|
|
138
|
+
"description": "Force the optimizer to ignore the cache and re-bundle",
|
|
139
|
+
"type": "boolean"
|
|
140
|
+
},
|
|
141
|
+
"cssCodeSplit": {
|
|
142
|
+
"description": "Enable/disable CSS code splitting. When enabled, CSS imported in async chunks will be inlined into the async chunk itself and inserted when the chunk is loaded.",
|
|
143
|
+
"type": "boolean"
|
|
144
|
+
},
|
|
145
|
+
"watch": {
|
|
146
|
+
"description": "Enable re-building when files change.",
|
|
147
|
+
"oneOf": [
|
|
148
|
+
{
|
|
149
|
+
"type": "boolean"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"default": false
|
|
156
|
+
},
|
|
157
|
+
"generatePackageJson": {
|
|
158
|
+
"description": "Generate a package.json for the build output.",
|
|
159
|
+
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"includeDevDependenciesInPackageJson": {
|
|
162
|
+
"description": "Include devDependencies in the generated package.json.",
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"definitions": {},
|
|
167
|
+
"required": [],
|
|
168
|
+
"examplesFile": "../../../docs/build-examples.md"
|
|
169
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite.impl.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite/vite.impl.ts"],"names":[],"mappings":";;AAAA,kDAAuD;AAEvD,kBAAe,6BAAiB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
const vite_dev_server_impl_1 = require("./vite-dev-server.impl");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxExecutor)(vite_dev_server_impl_1.default);
|
|
6
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite-dev-server/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,iEAA2D;AAE3D,kBAAe,IAAA,0BAAiB,EAAC,8BAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ViteDevServerExecutorOptions } from '@nx/vite/executors';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Vite Dev Server",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Starts a dev server using Vite.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"presets": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Default minimum setup",
|
|
11
|
+
"keys": ["buildTarget"]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "Using a Different Port",
|
|
15
|
+
"keys": ["buildTarget", "port"]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"buildTarget": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
|
|
22
|
+
"x-priority": "important"
|
|
23
|
+
},
|
|
24
|
+
"buildLibsFromSource": {
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"description": "Read buildable libraries from source instead of building them separately.",
|
|
27
|
+
"default": true
|
|
28
|
+
},
|
|
29
|
+
"proxyConfig": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Path to the proxy configuration file.",
|
|
32
|
+
"x-completion-type": "file"
|
|
33
|
+
},
|
|
34
|
+
"port": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"description": "Port to listen on.",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"host": {
|
|
40
|
+
"description": "Specify which IP addresses the server should listen on.",
|
|
41
|
+
"oneOf": [
|
|
42
|
+
{
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"https": {
|
|
51
|
+
"oneOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "boolean"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"type": "object"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"description": "Serve using HTTPS. https://vitejs.dev/config/server-options.html#server-https"
|
|
60
|
+
},
|
|
61
|
+
"hmr": {
|
|
62
|
+
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
"open": {
|
|
66
|
+
"description": "Automatically open the app in the browser on server start. When the value is a string, it will be used as the URL's pathname.",
|
|
67
|
+
"oneOf": [
|
|
68
|
+
{
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "string"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"cors": {
|
|
77
|
+
"description": "Configure CORS for the dev server.",
|
|
78
|
+
"type": "boolean"
|
|
79
|
+
},
|
|
80
|
+
"logLevel": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Adjust console output verbosity.",
|
|
83
|
+
"enum": ["info", "warn", "error", "silent"]
|
|
84
|
+
},
|
|
85
|
+
"mode": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"description": "Mode to run the server in."
|
|
88
|
+
},
|
|
89
|
+
"clearScreen": {
|
|
90
|
+
"description": "Set to false to prevent Vite from clearing the terminal screen when logging certain messages.",
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"force": {
|
|
94
|
+
"description": "Force the optimizer to ignore the cache and re-bundle",
|
|
95
|
+
"type": "boolean"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"definitions": {},
|
|
99
|
+
"required": ["buildTarget"],
|
|
100
|
+
"examplesFile": "../../../docs/dev-server-examples.md"
|
|
101
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-dev-server.impl.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.ts"],"names":[],"mappings":";;AAAA,kDAA2D;AAE3D,kBAAe,iCAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const devkit_1 = require("@nx/devkit");
|
|
4
|
+
const vitest_impl_1 = require("./vitest.impl");
|
|
5
|
+
exports.default = (0, devkit_1.convertNxExecutor)(vitest_impl_1.default);
|
|
6
|
+
//# sourceMappingURL=compat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vitest/compat.ts"],"names":[],"mappings":";;AAAA,uCAA+C;AAE/C,+CAA2C;AAE3C,kBAAe,IAAA,0BAAiB,EAAC,qBAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VitestExecutorOptions } from '@nx/vite/executors';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Vitest executor",
|
|
6
|
+
"description": "Test using Vitest.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"config": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The path to the local vitest config",
|
|
12
|
+
"x-completion-type": "file",
|
|
13
|
+
"x-completion-glob": "@(vitest|vite).config@(.js|.ts)"
|
|
14
|
+
},
|
|
15
|
+
"passWithNoTests": {
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": true,
|
|
18
|
+
"description": "Pass the test even if no tests are found"
|
|
19
|
+
},
|
|
20
|
+
"testNamePattern": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Run tests with full names matching the pattern"
|
|
23
|
+
},
|
|
24
|
+
"mode": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": ["test", "benchmark", "typecheck"],
|
|
27
|
+
"default": "test",
|
|
28
|
+
"description": "The mode that vitest will run on",
|
|
29
|
+
"x-priority": "important"
|
|
30
|
+
},
|
|
31
|
+
"watch": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false,
|
|
34
|
+
"description": "Enable watch mode"
|
|
35
|
+
},
|
|
36
|
+
"reporters": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"description": "An array of reporters to pass to vitest"
|
|
42
|
+
},
|
|
43
|
+
"update": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false,
|
|
46
|
+
"alias": "u",
|
|
47
|
+
"description": "Update snapshots",
|
|
48
|
+
"x-priority": "important"
|
|
49
|
+
},
|
|
50
|
+
"coverage": {
|
|
51
|
+
"type": "boolean",
|
|
52
|
+
"default": false,
|
|
53
|
+
"description": "Enable coverage report",
|
|
54
|
+
"x-priority": "important"
|
|
55
|
+
},
|
|
56
|
+
"reportsDirectory": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Directory to write coverage report to."
|
|
59
|
+
},
|
|
60
|
+
"testFiles": {
|
|
61
|
+
"aliases": ["testFile"],
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": { "type": "string" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [],
|
|
67
|
+
"examplesFile": "../../../docs/test-examples.md"
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.impl.js","sourceRoot":"","sources":["../../../../../../../../../packages/nx-plugin/src/executors/vitest/vitest.impl.ts"],"names":[],"mappings":";;AAAA,kDAAoD;AAEpD,kBAAe,0BAAc,CAAC"}
|
|
@@ -11,7 +11,7 @@ function addAnalogProjectConfig(tree, projectRoot, projectName, parsedTags, name
|
|
|
11
11
|
sourceRoot: `${projectRoot}/src`,
|
|
12
12
|
targets: {
|
|
13
13
|
build: {
|
|
14
|
-
executor:
|
|
14
|
+
executor: `@analogjs/platform:vite`,
|
|
15
15
|
outputs: [
|
|
16
16
|
'{options.outputPath}',
|
|
17
17
|
`{workspaceRoot}/dist/${workspaceAppsDir}${projectName}/.nitro`,
|
|
@@ -36,7 +36,7 @@ function addAnalogProjectConfig(tree, projectRoot, projectName, parsedTags, name
|
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
serve: {
|
|
39
|
-
executor:
|
|
39
|
+
executor: `@analogjs/platform:vite-dev-server`,
|
|
40
40
|
defaultConfiguration: 'development',
|
|
41
41
|
options: {
|
|
42
42
|
buildTarget: `${projectName}:build`,
|
|
@@ -59,7 +59,7 @@ function addAnalogProjectConfig(tree, projectRoot, projectName, parsedTags, name
|
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
test: {
|
|
62
|
-
executor:
|
|
62
|
+
executor: `@analogjs/platform:vitest`,
|
|
63
63
|
outputs: [`{projectRoot}/coverage`],
|
|
64
64
|
},
|
|
65
65
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-analog-project-config.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-analog-project-config.ts"],"names":[],"mappings":";;;AACA,uCAAqD;AAErD,SAAgB,sBAAsB,CACpC,IAAU,EACV,WAAmB,EACnB,WAAmB,EACnB,UAAoB,EACpB,IAAY,EACZ,OAAe,EACf,kBAA0B;IAE1B,MAAM,YAAY,GAAG,OAAO,KAAK,GAAG,CAAC;IACrC,MAAM,gBAAgB,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;IAC3D,MAAM,oBAAoB,GAAyB;QACjD,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,GAAG,WAAW,MAAM;QAChC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"add-analog-project-config.js","sourceRoot":"","sources":["../../../../../../../../../../packages/nx-plugin/src/generators/app/lib/add-analog-project-config.ts"],"names":[],"mappings":";;;AACA,uCAAqD;AAErD,SAAgB,sBAAsB,CACpC,IAAU,EACV,WAAmB,EACnB,WAAmB,EACnB,UAAoB,EACpB,IAAY,EACZ,OAAe,EACf,kBAA0B;IAE1B,MAAM,YAAY,GAAG,OAAO,KAAK,GAAG,CAAC;IACrC,MAAM,gBAAgB,GAAG,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC;IAC3D,MAAM,oBAAoB,GAAyB;QACjD,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,aAAa;QAC1B,UAAU,EAAE,GAAG,WAAW,MAAM;QAChC,OAAO,EAAE;YACP,KAAK,EAAE;gBACL,QAAQ,EAAE,yBAAyB;gBACnC,OAAO,EAAE;oBACP,sBAAsB;oBACtB,wBAAwB,gBAAgB,GAAG,WAAW,SAAS;oBAC/D,wBAAwB,gBAAgB,GAAG,WAAW,MAAM;oBAC5D,wBAAwB,gBAAgB,GAAG,WAAW,SAAS;iBAChE;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,GAAG,gBAAgB,GAAG,WAAW,cAAc;oBACrD,UAAU,EAAE,GAAG,gBAAgB,GAAG,WAAW,iBAAiB;oBAC9D,UAAU,EAAE,QAAQ,gBAAgB,GAAG,WAAW,SAAS;oBAC3D,QAAQ,EAAE,GAAG,gBAAgB,GAAG,WAAW,oBAAoB;iBAChE;gBACD,oBAAoB,EAAE,YAAY;gBAClC,cAAc,EAAE;oBACd,WAAW,EAAE;wBACX,IAAI,EAAE,aAAa;qBACpB;oBACD,UAAU,EAAE;wBACV,SAAS,EAAE,KAAK;wBAChB,IAAI,EAAE,YAAY;qBACnB;iBACF;aACF;YACD,KAAK,EAAE;gBACL,QAAQ,EAAE,oCAAoC;gBAC9C,oBAAoB,EAAE,aAAa;gBACnC,OAAO,EAAE;oBACP,WAAW,EAAE,GAAG,WAAW,QAAQ;oBACnC,IAAI,EAAE,IAAI;iBACX;gBACD,cAAc,EAAE;oBACd,WAAW,EAAE;wBACX,WAAW,EAAE,GAAG,WAAW,oBAAoB;wBAC/C,GAAG,EAAE,IAAI;qBACV;oBACD,UAAU,EAAE;wBACV,WAAW,EAAE,GAAG,WAAW,mBAAmB;qBAC/C;iBACF;aACF;YACD,cAAc,EAAE;gBACd,QAAQ,EAAE,4CAA4C;gBACtD,OAAO,EAAE;oBACP,aAAa,EAAE,GAAG,WAAW,QAAQ;iBACtC;aACF;YACD,IAAI,EAAE;gBACJ,QAAQ,EAAE,2BAA2B;gBACrC,OAAO,EAAE,CAAC,wBAAwB,CAAC;aACpC;SACF;QACD,IAAI,EAAE,UAAU;KACjB,CAAC;IAEF,IAAA,gCAAuB,EAAC,IAAI,EAAE,IAAI,EAAE,oBAAoB,CAAC,CAAC;AAC5D,CAAC;AAzED,wDAyEC"}
|