@nx/vite 16.0.0-beta.1

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.
Files changed (116) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +22 -0
  3. package/README.md +63 -0
  4. package/executors.d.ts +8 -0
  5. package/executors.js +19 -0
  6. package/executors.js.map +1 -0
  7. package/executors.json +46 -0
  8. package/generators.json +46 -0
  9. package/index.d.ts +8 -0
  10. package/index.js +20 -0
  11. package/index.js.map +1 -0
  12. package/migrations.json +80 -0
  13. package/package.json +60 -0
  14. package/plugins/rollup-replace-files.plugin.d.ts +16 -0
  15. package/plugins/rollup-replace-files.plugin.js +49 -0
  16. package/plugins/rollup-replace-files.plugin.js.map +1 -0
  17. package/src/executors/build/build.impl.d.ts +10 -0
  18. package/src/executors/build/build.impl.js +91 -0
  19. package/src/executors/build/build.impl.js.map +1 -0
  20. package/src/executors/build/compat.d.ts +2 -0
  21. package/src/executors/build/compat.js +10 -0
  22. package/src/executors/build/compat.js.map +1 -0
  23. package/src/executors/build/schema.d.js +3 -0
  24. package/src/executors/build/schema.d.js.map +1 -0
  25. package/src/executors/build/schema.d.ts +17 -0
  26. package/src/executors/build/schema.json +143 -0
  27. package/src/executors/dev-server/compat.d.ts +2 -0
  28. package/src/executors/dev-server/compat.js +10 -0
  29. package/src/executors/dev-server/compat.js.map +1 -0
  30. package/src/executors/dev-server/dev-server.impl.d.ts +8 -0
  31. package/src/executors/dev-server/dev-server.impl.js +68 -0
  32. package/src/executors/dev-server/dev-server.impl.js.map +1 -0
  33. package/src/executors/dev-server/schema.d.js +3 -0
  34. package/src/executors/dev-server/schema.d.js.map +1 -0
  35. package/src/executors/dev-server/schema.d.ts +14 -0
  36. package/src/executors/dev-server/schema.json +89 -0
  37. package/src/executors/preview-server/compat.d.ts +2 -0
  38. package/src/executors/preview-server/compat.js +10 -0
  39. package/src/executors/preview-server/compat.js.map +1 -0
  40. package/src/executors/preview-server/preview-server.impl.d.ts +7 -0
  41. package/src/executors/preview-server/preview-server.impl.js +107 -0
  42. package/src/executors/preview-server/preview-server.impl.js.map +1 -0
  43. package/src/executors/preview-server/schema.d.js +3 -0
  44. package/src/executors/preview-server/schema.d.js.map +1 -0
  45. package/src/executors/preview-server/schema.d.ts +12 -0
  46. package/src/executors/preview-server/schema.json +80 -0
  47. package/src/executors/test/compat.d.ts +2 -0
  48. package/src/executors/test/compat.js +10 -0
  49. package/src/executors/test/compat.js.map +1 -0
  50. package/src/executors/test/schema.d.js +3 -0
  51. package/src/executors/test/schema.d.js.map +1 -0
  52. package/src/executors/test/schema.d.ts +11 -0
  53. package/src/executors/test/schema.json +63 -0
  54. package/src/executors/test/vitest.impl.d.ts +6 -0
  55. package/src/executors/test/vitest.impl.js +130 -0
  56. package/src/executors/test/vitest.impl.js.map +1 -0
  57. package/src/generators/configuration/configuration.d.ts +5 -0
  58. package/src/generators/configuration/configuration.js +130 -0
  59. package/src/generators/configuration/configuration.js.map +1 -0
  60. package/src/generators/configuration/schema.d.js +3 -0
  61. package/src/generators/configuration/schema.d.js.map +1 -0
  62. package/src/generators/configuration/schema.d.ts +12 -0
  63. package/src/generators/configuration/schema.json +61 -0
  64. package/src/generators/init/init.d.ts +6 -0
  65. package/src/generators/init/init.js +84 -0
  66. package/src/generators/init/init.js.map +1 -0
  67. package/src/generators/init/schema.d.js +3 -0
  68. package/src/generators/init/schema.d.js.map +1 -0
  69. package/src/generators/init/schema.d.ts +4 -0
  70. package/src/generators/init/schema.json +22 -0
  71. package/src/generators/vitest/files/tsconfig.spec.json__tmpl__ +19 -0
  72. package/src/generators/vitest/schema.d.js +3 -0
  73. package/src/generators/vitest/schema.d.js.map +1 -0
  74. package/src/generators/vitest/schema.d.ts +9 -0
  75. package/src/generators/vitest/schema.json +49 -0
  76. package/src/generators/vitest/vitest-generator.d.ts +5 -0
  77. package/src/generators/vitest/vitest-generator.js +99 -0
  78. package/src/generators/vitest/vitest-generator.js.map +1 -0
  79. package/src/migrations/update-15-3-1/update-vite-tsconfig-paths.d.ts +3 -0
  80. package/src/migrations/update-15-3-1/update-vite-tsconfig-paths.js +63 -0
  81. package/src/migrations/update-15-3-1/update-vite-tsconfig-paths.js.map +1 -0
  82. package/src/migrations/update-15-3-4/set-mode-in-configuration.d.ts +3 -0
  83. package/src/migrations/update-15-3-4/set-mode-in-configuration.js +33 -0
  84. package/src/migrations/update-15-3-4/set-mode-in-configuration.js.map +1 -0
  85. package/src/migrations/update-15-4-3/update-report-directory.d.ts +3 -0
  86. package/src/migrations/update-15-4-3/update-report-directory.js +35 -0
  87. package/src/migrations/update-15-4-3/update-report-directory.js.map +1 -0
  88. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.d.ts +2 -0
  89. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js +13 -0
  90. package/src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages.js.map +1 -0
  91. package/src/utils/generator-utils.d.ts +34 -0
  92. package/src/utils/generator-utils.js +567 -0
  93. package/src/utils/generator-utils.js.map +1 -0
  94. package/src/utils/options-utils.d.ts +32 -0
  95. package/src/utils/options-utils.js +113 -0
  96. package/src/utils/options-utils.js.map +1 -0
  97. package/src/utils/test-files/angular-project.config.json +89 -0
  98. package/src/utils/test-files/react-lib-non-buildable-jest.json +25 -0
  99. package/src/utils/test-files/react-lib-non-buildable-vitest.json +25 -0
  100. package/src/utils/test-files/react-mixed-project.config.json +52 -0
  101. package/src/utils/test-files/react-project.config.json +85 -0
  102. package/src/utils/test-files/react-vite-project.config.json +57 -0
  103. package/src/utils/test-files/test-vite-configs.d.ts +32 -0
  104. package/src/utils/test-files/test-vite-configs.js +285 -0
  105. package/src/utils/test-files/test-vite-configs.js.map +1 -0
  106. package/src/utils/test-files/unknown-project.config.json +72 -0
  107. package/src/utils/test-files/web-project.config.json +72 -0
  108. package/src/utils/test-utils.d.ts +9 -0
  109. package/src/utils/test-utils.js +516 -0
  110. package/src/utils/test-utils.js.map +1 -0
  111. package/src/utils/versions.d.ts +13 -0
  112. package/src/utils/versions.js +37 -0
  113. package/src/utils/versions.js.map +1 -0
  114. package/src/utils/vite-config-edit-utils.d.ts +3 -0
  115. package/src/utils/vite-config-edit-utils.js +286 -0
  116. package/src/utils/vite-config-edit-utils.js.map +1 -0
@@ -0,0 +1,285 @@
1
+ "use strict";
2
+ function _export(target, all) {
3
+ for(var name in all)Object.defineProperty(target, name, {
4
+ enumerable: true,
5
+ get: all[name]
6
+ });
7
+ }
8
+ _export(exports, {
9
+ noBuildOptions: ()=>noBuildOptions,
10
+ someBuildOptions: ()=>someBuildOptions,
11
+ noContentDefineConfig: ()=>noContentDefineConfig,
12
+ conditionalConfig: ()=>conditionalConfig,
13
+ configNoDefineConfig: ()=>configNoDefineConfig,
14
+ noBuildOptionsHasTestOption: ()=>noBuildOptionsHasTestOption,
15
+ someBuildOptionsSomeTestOption: ()=>someBuildOptionsSomeTestOption,
16
+ hasEverything: ()=>hasEverything,
17
+ buildOption: ()=>buildOption,
18
+ buildOptionObject: ()=>buildOptionObject,
19
+ testOption: ()=>testOption,
20
+ testOptionObject: ()=>testOptionObject,
21
+ dtsPlugin: ()=>dtsPlugin,
22
+ dtsImportLine: ()=>dtsImportLine,
23
+ pluginOption: ()=>pluginOption
24
+ });
25
+ const noBuildOptions = `
26
+ /// <reference types="vitest" />
27
+ import { defineConfig } from 'vite';
28
+ import react from '@vitejs/plugin-react';
29
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
30
+
31
+ export default defineConfig({
32
+ plugins: [
33
+ react(),
34
+ viteTsConfigPaths({
35
+ root: '../../',
36
+ }),
37
+ ],
38
+
39
+ test: {
40
+ globals: true,
41
+ cache: {
42
+ dir: '../../node_modules/.vitest',
43
+ },
44
+ environment: 'jsdom',
45
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
46
+ },
47
+
48
+ });
49
+ `;
50
+ const someBuildOptions = `
51
+ /// <reference types="vitest" />
52
+ import { defineConfig } from 'vite';
53
+ import react from '@vitejs/plugin-react';
54
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
55
+
56
+ export default defineConfig({
57
+ plugins: [
58
+ react(),
59
+ viteTsConfigPaths({
60
+ root: '../../',
61
+ }),
62
+ ],
63
+
64
+ test: {
65
+ globals: true,
66
+ cache: {
67
+ dir: '../../node_modules/.vitest',
68
+ },
69
+ environment: 'jsdom',
70
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
71
+ },
72
+
73
+ build: {
74
+ my: 'option',
75
+ }
76
+
77
+ });
78
+ `;
79
+ const noContentDefineConfig = `
80
+ /// <reference types="vitest" />
81
+ import { defineConfig } from 'vite';
82
+ import react from '@vitejs/plugin-react';
83
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
84
+
85
+ export default defineConfig({});
86
+ `;
87
+ const conditionalConfig = `
88
+ /// <reference types="vitest" />
89
+ import { defineConfig } from 'vite';
90
+ export default defineConfig(({ command, mode, ssrBuild }) => {
91
+ if (command === 'serve') {
92
+ return {
93
+ port: 4200,
94
+ host: 'localhost',
95
+ }
96
+ } else {
97
+ // command === 'build'
98
+ return {
99
+ my: 'option',
100
+ }
101
+ }
102
+ })
103
+ `;
104
+ const configNoDefineConfig = `
105
+ /// <reference types="vitest" />
106
+ import { defineConfig } from 'vite';
107
+ import react from '@vitejs/plugin-react';
108
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
109
+
110
+ export default {
111
+ plugins: [
112
+ react(),
113
+ viteTsConfigPaths({
114
+ root: '../../',
115
+ }),
116
+ ],
117
+ };
118
+ `;
119
+ const noBuildOptionsHasTestOption = `
120
+ /// <reference types="vitest" />
121
+ import { defineConfig } from 'vite';
122
+ import react from '@vitejs/plugin-react';
123
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
124
+
125
+ export default defineConfig({
126
+ plugins: [
127
+ react(),
128
+ viteTsConfigPaths({
129
+ root: '../../',
130
+ }),
131
+ ],
132
+
133
+ test: {
134
+ globals: true,
135
+ cache: {
136
+ dir: '../../node_modules/.vitest',
137
+ },
138
+ environment: 'jsdom',
139
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
140
+ },
141
+
142
+ });
143
+ `;
144
+ const someBuildOptionsSomeTestOption = `
145
+ /// <reference types="vitest" />
146
+ import { defineConfig } from 'vite';
147
+ import react from '@vitejs/plugin-react';
148
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
149
+
150
+ export default defineConfig({
151
+ plugins: [
152
+ react(),
153
+ viteTsConfigPaths({
154
+ root: '../../',
155
+ }),
156
+ ],
157
+
158
+ test: {
159
+ my: 'option',
160
+ },
161
+
162
+ build: {
163
+ my: 'option',
164
+ }
165
+
166
+ });
167
+ `;
168
+ const hasEverything = `
169
+ /// <reference types="vitest" />
170
+ import { defineConfig } from 'vite';
171
+ import react from '@vitejs/plugin-react';
172
+ import viteTsConfigPaths from 'vite-tsconfig-paths';
173
+ import dts from 'vite-plugin-dts';
174
+ import { join } from 'path';
175
+
176
+ export default defineConfig({
177
+ plugins: [
178
+ dts({
179
+ entryRoot: 'src',
180
+ tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),
181
+ skipDiagnostics: true,
182
+ }),
183
+ react(),
184
+ viteTsConfigPaths({
185
+ root: '../../../',
186
+ }),
187
+ ],
188
+
189
+ // Configuration for building your library.
190
+ // See: https://vitejs.dev/guide/build.html#library-mode
191
+ build: {
192
+ lib: {
193
+ // Could also be a dictionary or array of multiple entry points.
194
+ entry: 'src/index.ts',
195
+ name: 'pure-libs-react-vite',
196
+ fileName: 'index',
197
+ // Change this to the formats you want to support.
198
+ // Don't forgot to update your package.json as well.
199
+ formats: ['es', 'cjs'],
200
+ },
201
+ rollupOptions: {
202
+ // External packages that should not be bundled into your library.
203
+ external: ['react', 'react-dom', 'react/jsx-runtime'],
204
+ },
205
+ },
206
+
207
+ test: {
208
+ globals: true,
209
+ cache: {
210
+ dir: '../../../node_modules/.vitest',
211
+ },
212
+ environment: 'jsdom',
213
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
214
+ },
215
+ });
216
+ `;
217
+ const buildOption = `
218
+ // Configuration for building your library.
219
+ // See: https://vitejs.dev/guide/build.html#library-mode
220
+ build: {
221
+ lib: {
222
+ // Could also be a dictionary or array of multiple entry points.
223
+ entry: 'src/index.ts',
224
+ name: 'my-app',
225
+ fileName: 'index',
226
+ // Change this to the formats you want to support.
227
+ // Don't forgot to update your package.json as well.
228
+ formats: ['es', 'cjs']
229
+ },
230
+ rollupOptions: {
231
+ // External packages that should not be bundled into your library.
232
+ external: ["'react', 'react-dom', 'react/jsx-runtime'"]
233
+ }
234
+ },`;
235
+ const buildOptionObject = {
236
+ lib: {
237
+ entry: 'src/index.ts',
238
+ name: 'my-app',
239
+ fileName: 'index',
240
+ formats: [
241
+ 'es',
242
+ 'cjs'
243
+ ]
244
+ },
245
+ rollupOptions: {
246
+ external: [
247
+ "'react', 'react-dom', 'react/jsx-runtime'"
248
+ ]
249
+ }
250
+ };
251
+ const testOption = `test: {
252
+ globals: true,
253
+ cache: {
254
+ dir: '../node_modules/.vitest'
255
+ },
256
+ environment: 'jsdom',
257
+ include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
258
+ },`;
259
+ const testOptionObject = {
260
+ globals: true,
261
+ cache: {
262
+ dir: `../node_modules/.vitest`
263
+ },
264
+ environment: 'jsdom',
265
+ include: [
266
+ 'src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'
267
+ ]
268
+ };
269
+ const dtsPlugin = `dts({
270
+ entryRoot: 'src',
271
+ tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),
272
+ skipDiagnostics: true,
273
+ }),`;
274
+ const dtsImportLine = `import dts from 'vite-plugin-dts';\nimport { join } from 'path';`;
275
+ const pluginOption = `
276
+ plugins: [
277
+ ${dtsPlugin}
278
+ react(),
279
+ viteTsConfigPaths({
280
+ root: '../../',
281
+ }),
282
+ ],
283
+ `;
284
+
285
+ //# sourceMappingURL=test-vite-configs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../packages/vite/src/utils/test-files/test-vite-configs.ts"],"sourcesContent":["export const noBuildOptions = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default defineConfig({\n plugins: [\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n\n test: {\n globals: true,\n cache: {\n dir: '../../node_modules/.vitest',\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n\n });\n `;\n\nexport const someBuildOptions = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default defineConfig({\n plugins: [\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n\n test: {\n globals: true,\n cache: {\n dir: '../../node_modules/.vitest',\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n\n build: {\n my: 'option',\n }\n\n });\n `;\n\nexport const noContentDefineConfig = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default defineConfig({});\n `;\n\nexport const conditionalConfig = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n export default defineConfig(({ command, mode, ssrBuild }) => {\n if (command === 'serve') {\n return {\n port: 4200,\n host: 'localhost',\n }\n } else {\n // command === 'build'\n return {\n my: 'option',\n }\n }\n })\n `;\n\nexport const configNoDefineConfig = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default {\n plugins: [\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n };\n `;\n\nexport const noBuildOptionsHasTestOption = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default defineConfig({\n plugins: [\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n\n test: {\n globals: true,\n cache: {\n dir: '../../node_modules/.vitest',\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n\n });\n `;\n\nexport const someBuildOptionsSomeTestOption = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n\n export default defineConfig({\n plugins: [\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n\n test: {\n my: 'option',\n },\n\n build: {\n my: 'option',\n }\n\n });\n `;\n\nexport const hasEverything = `\n /// <reference types=\"vitest\" />\n import { defineConfig } from 'vite';\n import react from '@vitejs/plugin-react';\n import viteTsConfigPaths from 'vite-tsconfig-paths';\n import dts from 'vite-plugin-dts';\n import { join } from 'path';\n\n export default defineConfig({\n plugins: [\n dts({\n entryRoot: 'src',\n tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),\n skipDiagnostics: true,\n }),\n react(),\n viteTsConfigPaths({\n root: '../../../',\n }),\n ],\n \n // Configuration for building your library.\n // See: https://vitejs.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'pure-libs-react-vite',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forgot to update your package.json as well.\n formats: ['es', 'cjs'],\n },\n rollupOptions: {\n // External packages that should not be bundled into your library.\n external: ['react', 'react-dom', 'react/jsx-runtime'],\n },\n },\n \n test: {\n globals: true,\n cache: {\n dir: '../../../node_modules/.vitest',\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },\n });\n `;\n\nexport const buildOption = `\n // Configuration for building your library.\n // See: https://vitejs.dev/guide/build.html#library-mode\n build: {\n lib: {\n // Could also be a dictionary or array of multiple entry points.\n entry: 'src/index.ts',\n name: 'my-app',\n fileName: 'index',\n // Change this to the formats you want to support.\n // Don't forgot to update your package.json as well.\n formats: ['es', 'cjs']\n },\n rollupOptions: {\n // External packages that should not be bundled into your library.\n external: [\"'react', 'react-dom', 'react/jsx-runtime'\"]\n }\n },`;\nexport const buildOptionObject = {\n lib: {\n entry: 'src/index.ts',\n name: 'my-app',\n fileName: 'index',\n formats: ['es', 'cjs'],\n },\n rollupOptions: {\n external: [\"'react', 'react-dom', 'react/jsx-runtime'\"],\n },\n};\n\nexport const testOption = `test: {\n globals: true,\n cache: {\n dir: '../node_modules/.vitest'\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n },`;\n\nexport const testOptionObject = {\n globals: true,\n cache: {\n dir: `../node_modules/.vitest`,\n },\n environment: 'jsdom',\n include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],\n};\n\nexport const dtsPlugin = `dts({\n entryRoot: 'src',\n tsConfigFilePath: join(__dirname, 'tsconfig.lib.json'),\n skipDiagnostics: true,\n }),`;\nexport const dtsImportLine = `import dts from 'vite-plugin-dts';\\nimport { join } from 'path';`;\n\nexport const pluginOption = `\n plugins: [\n ${dtsPlugin}\n react(),\n viteTsConfigPaths({\n root: '../../',\n }),\n ],\n `;\n"],"names":["noBuildOptions","someBuildOptions","noContentDefineConfig","conditionalConfig","configNoDefineConfig","noBuildOptionsHasTestOption","someBuildOptionsSomeTestOption","hasEverything","buildOption","buildOptionObject","testOption","testOptionObject","dtsPlugin","dtsImportLine","pluginOption","lib","entry","name","fileName","formats","rollupOptions","external","globals","cache","dir","environment","include"],"mappings":"AAAA;;;;;;;;IAAaA,cAAc,MAAdA;IA0BAC,gBAAgB,MAAhBA;IA8BAC,qBAAqB,MAArBA;IASAC,iBAAiB,MAAjBA;IAkBAC,oBAAoB,MAApBA;IAgBAC,2BAA2B,MAA3BA;IA0BAC,8BAA8B,MAA9BA;IAyBAC,aAAa,MAAbA;IAkDAC,WAAW,MAAXA;IAkBAC,iBAAiB,MAAjBA;IAYAC,UAAU,MAAVA;IASAC,gBAAgB,MAAhBA;IASAC,SAAS,MAATA;IAKAC,aAAa,MAAbA;IAEAC,YAAY,MAAZA;;AA/PN,MAAMd,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;IAwB3B,CAAC;AAEE,MAAMC,mBAAmB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4B7B,CAAC;AAEE,MAAMC,wBAAwB,CAAC;;;;;;;IAOlC,CAAC;AAEE,MAAMC,oBAAoB,CAAC;;;;;;;;;;;;;;;;IAgB9B,CAAC;AAEE,MAAMC,uBAAuB,CAAC;;;;;;;;;;;;;;IAcjC,CAAC;AAEE,MAAMC,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;IAwBxC,CAAC;AAEE,MAAMC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;;;;;;;IAuB3C,CAAC;AAEE,MAAMC,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgD1B,CAAC;AAEE,MAAMC,cAAc,CAAC;;;;;;;;;;;;;;;;;MAiBtB,CAAC;AACA,MAAMC,oBAAoB;IAC/BM,KAAK;QACHC,OAAO;QACPC,MAAM;QACNC,UAAU;QACVC,SAAS;YAAC;YAAM;SAAM;IACxB;IACAC,eAAe;QACbC,UAAU;YAAC;SAA4C;IACzD;AACF;AAEO,MAAMX,aAAa,CAAC;;;;;;;MAOrB,CAAC;AAEA,MAAMC,mBAAmB;IAC9BW,SAAS,IAAI;IACbC,OAAO;QACLC,KAAK,CAAC,uBAAuB,CAAC;IAChC;IACAC,aAAa;IACbC,SAAS;QAAC;KAAuD;AACnE;AAEO,MAAMd,YAAY,CAAC;;;;OAInB,CAAC;AACD,MAAMC,gBAAgB,CAAC,gEAAgE,CAAC;AAExF,MAAMC,eAAe,CAAC;;MAEvB,EAAEF,UAAU;;;;;;IAMd,CAAC"}
@@ -0,0 +1,72 @@
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
+ "options": {
60
+ "lintFilePatterns": ["apps/my-test-random-app/**/*.ts"]
61
+ }
62
+ },
63
+ "test": {
64
+ "executor": "@random/something:test",
65
+ "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
66
+ "options": {
67
+ "jestConfig": "apps/my-test-random-app/jest.config.ts",
68
+ "passWithNoTests": true
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "name": "my-test-web-app",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "projectType": "application",
5
+ "root": "apps/my-test-web-app",
6
+ "sourceRoot": "apps/my-test-web-app/src",
7
+ "tags": [],
8
+ "targets": {
9
+ "build": {
10
+ "executor": "@nrwl/webpack:webpack",
11
+ "outputs": ["{options.outputPath}"],
12
+ "defaultConfiguration": "production",
13
+ "options": {
14
+ "outputPath": "dist/apps/my-test-web-app",
15
+ "compiler": "babel",
16
+ "main": "apps/my-test-web-app/src/main.ts",
17
+ "tsConfig": "apps/my-test-web-app/tsconfig.app.json",
18
+ "assets": [
19
+ "apps/my-test-web-app/src/favicon.ico",
20
+ "apps/my-test-web-app/src/assets"
21
+ ],
22
+ "index": "apps/my-test-web-app/src/index.html",
23
+ "baseHref": "/",
24
+ "polyfills": "apps/my-test-web-app/src/polyfills.ts",
25
+ "styles": ["apps/my-test-web-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-web-app/src/environments/environment.ts",
39
+ "with": "apps/my-test-web-app/src/environments/environment.prod.ts"
40
+ }
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ "serve": {
46
+ "executor": "@nrwl/webpack:dev-server",
47
+ "options": {
48
+ "buildTarget": "my-test-web-app:build"
49
+ },
50
+ "configurations": {
51
+ "production": {
52
+ "buildTarget": "my-test-web-app:build:production"
53
+ }
54
+ }
55
+ },
56
+ "lint": {
57
+ "executor": "@nrwl/linter:eslint",
58
+ "outputs": ["{options.outputFile}"],
59
+ "options": {
60
+ "lintFilePatterns": ["apps/my-test-web-app/**/*.ts"]
61
+ }
62
+ },
63
+ "test": {
64
+ "executor": "@nrwl/jest:jest",
65
+ "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
66
+ "options": {
67
+ "jestConfig": "apps/my-test-web-app/jest.config.ts",
68
+ "passWithNoTests": true
69
+ }
70
+ }
71
+ }
72
+ }
@@ -0,0 +1,9 @@
1
+ import { Tree } from '@nx/devkit';
2
+ export declare function mockViteReactAppGenerator(tree: Tree): Tree;
3
+ export declare function mockReactAppGenerator(tree: Tree): 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;