create-analog 2.6.0-beta.1 → 2.6.0-beta.2
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/index.js +12 -0
- package/package.json +1 -1
- package/template-angular-v17/package.json +5 -5
- package/template-angular-v18/package.json +5 -5
- package/template-angular-v19/package.json +5 -5
- package/template-angular-v20/package.json +5 -5
- package/template-blog/package.json +17 -17
- package/template-blog/src/app/app.config.ts +0 -2
- package/template-blog/tsconfig.json +1 -0
- package/template-latest/package.json +17 -17
- package/template-latest/src/app/app.config.ts +0 -2
- package/template-latest/tsconfig.json +1 -0
- package/template-minimal/package.json +17 -17
- package/template-minimal/src/app/app.config.ts +0 -2
- package/template-minimal/tsconfig.json +1 -0
package/index.js
CHANGED
|
@@ -65,6 +65,10 @@ async function init() {
|
|
|
65
65
|
let targetDir = formatTargetDir(argv._[0]);
|
|
66
66
|
let template = argv.template || argv.t;
|
|
67
67
|
let skipTailwind = fromBoolArg(argv.skipTailwind);
|
|
68
|
+
// Internal flag (no prompt): when set, strip the `overrides` block that
|
|
69
|
+
// pins vite/vitest from the generated package.json. Defaults to keeping
|
|
70
|
+
// them, preserving current behavior.
|
|
71
|
+
const skipViteOverrides = fromBoolArg(argv.skipViteOverrides);
|
|
68
72
|
|
|
69
73
|
const defaultTargetDir = 'analog-project';
|
|
70
74
|
const getProjectName = () =>
|
|
@@ -238,6 +242,14 @@ async function init() {
|
|
|
238
242
|
addPnpmDependencies(pkg, template);
|
|
239
243
|
}
|
|
240
244
|
|
|
245
|
+
if (skipViteOverrides && pkg.overrides) {
|
|
246
|
+
delete pkg.overrides.vite;
|
|
247
|
+
delete pkg.overrides.vitest;
|
|
248
|
+
if (Object.keys(pkg.overrides).length === 0) {
|
|
249
|
+
delete pkg.overrides;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
241
253
|
pkg.dependencies = sortObjectKeys(pkg.dependencies);
|
|
242
254
|
pkg.devDependencies = sortObjectKeys(pkg.devDependencies);
|
|
243
255
|
|
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"test": "ng test"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
19
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
18
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
19
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
20
20
|
"@angular/animations": "^17.2.0",
|
|
21
21
|
"@angular/common": "^17.2.0",
|
|
22
22
|
"@angular/compiler": "^17.2.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"zone.js": "~0.14.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
43
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
41
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
42
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
43
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
44
44
|
"@angular-devkit/build-angular": "^17.2.0",
|
|
45
45
|
"@angular/cli": "^17.2.0",
|
|
46
46
|
"@angular/compiler-cli": "^17.2.0",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"private": true,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
19
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
18
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
19
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
20
20
|
"@angular/animations": "^18.0.0",
|
|
21
21
|
"@angular/build": "^18.0.0",
|
|
22
22
|
"@angular/common": "^18.0.0",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"zone.js": "~0.14.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
43
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
41
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
42
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
43
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
44
44
|
"@angular/cli": "^18.0.0",
|
|
45
45
|
"@angular/compiler-cli": "^18.0.0",
|
|
46
46
|
"jsdom": "^22.0.0",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"private": true,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
19
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
18
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
19
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
20
20
|
"@angular/animations": "^19.0.0",
|
|
21
21
|
"@angular/common": "^19.0.0",
|
|
22
22
|
"@angular/compiler": "^19.0.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"zone.js": "~0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
41
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
42
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
40
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
41
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
42
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
43
43
|
"@angular-devkit/build-angular": "^19.0.0",
|
|
44
44
|
"@angular/build": "^19.0.0",
|
|
45
45
|
"@angular/cli": "^19.0.0",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
20
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
19
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
20
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
21
21
|
"@angular/animations": "^20.0.0",
|
|
22
22
|
"@angular/common": "^20.0.0",
|
|
23
23
|
"@angular/compiler": "^20.0.0",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"zone.js": "~0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
41
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
42
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
40
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
41
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
42
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
43
43
|
"@angular-devkit/build-angular": "^20.0.0",
|
|
44
44
|
"@angular/build": "^20.0.0",
|
|
45
45
|
"@angular/cli": "^20.0.0",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
20
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
21
|
-
"@angular/animations": "^
|
|
22
|
-
"@angular/common": "^
|
|
23
|
-
"@angular/compiler": "^
|
|
24
|
-
"@angular/core": "^
|
|
25
|
-
"@angular/forms": "^
|
|
26
|
-
"@angular/platform-browser": "^
|
|
27
|
-
"@angular/platform-server": "^
|
|
28
|
-
"@angular/router": "^
|
|
19
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
20
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
21
|
+
"@angular/animations": "^22.0.0-rc.0",
|
|
22
|
+
"@angular/common": "^22.0.0-rc.0",
|
|
23
|
+
"@angular/compiler": "^22.0.0-rc.0",
|
|
24
|
+
"@angular/core": "^22.0.0-rc.0",
|
|
25
|
+
"@angular/forms": "^22.0.0-rc.0",
|
|
26
|
+
"@angular/platform-browser": "^22.0.0-rc.0",
|
|
27
|
+
"@angular/platform-server": "^22.0.0-rc.0",
|
|
28
|
+
"@angular/router": "^22.0.0-rc.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
30
|
"marked": "^15.0.7",
|
|
31
31
|
"marked-gfm-heading-id": "^4.1.1",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
"tslib": "^2.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
39
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
40
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
41
|
-
"@angular/build": "^
|
|
42
|
-
"@angular/cli": "^
|
|
43
|
-
"@angular/compiler-cli": "^
|
|
38
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
39
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
40
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
41
|
+
"@angular/build": "^22.0.0-rc.0",
|
|
42
|
+
"@angular/cli": "^22.0.0-rc.0",
|
|
43
|
+
"@angular/compiler-cli": "^22.0.0-rc.0",
|
|
44
44
|
"jsdom": "^22.0.0",
|
|
45
|
-
"typescript": "~
|
|
45
|
+
"typescript": "~6.0.0",
|
|
46
46
|
"vite": "^8.0.0",
|
|
47
47
|
"vite-tsconfig-paths": "^4.2.0",
|
|
48
48
|
"vitest": "^4.1.0"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provideHttpClient,
|
|
3
|
-
withFetch,
|
|
4
3
|
withInterceptors,
|
|
5
4
|
} from '@angular/common/http';
|
|
6
5
|
import {
|
|
@@ -17,7 +16,6 @@ export const appConfig: ApplicationConfig = {
|
|
|
17
16
|
provideBrowserGlobalErrorListeners(),
|
|
18
17
|
provideFileRouter(),
|
|
19
18
|
provideHttpClient(
|
|
20
|
-
withFetch(),
|
|
21
19
|
withInterceptors([requestContextInterceptor])
|
|
22
20
|
),
|
|
23
21
|
provideClientHydration(withEventReplay()),
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
20
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
21
|
-
"@angular/animations": "^
|
|
22
|
-
"@angular/common": "^
|
|
23
|
-
"@angular/compiler": "^
|
|
24
|
-
"@angular/core": "^
|
|
25
|
-
"@angular/forms": "^
|
|
26
|
-
"@angular/platform-browser": "^
|
|
27
|
-
"@angular/platform-server": "^
|
|
28
|
-
"@angular/router": "^
|
|
19
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
20
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
21
|
+
"@angular/animations": "^22.0.0-rc.0",
|
|
22
|
+
"@angular/common": "^22.0.0-rc.0",
|
|
23
|
+
"@angular/compiler": "^22.0.0-rc.0",
|
|
24
|
+
"@angular/core": "^22.0.0-rc.0",
|
|
25
|
+
"@angular/forms": "^22.0.0-rc.0",
|
|
26
|
+
"@angular/platform-browser": "^22.0.0-rc.0",
|
|
27
|
+
"@angular/platform-server": "^22.0.0-rc.0",
|
|
28
|
+
"@angular/router": "^22.0.0-rc.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
30
|
"marked": "^15.0.7",
|
|
31
31
|
"marked-gfm-heading-id": "^4.1.1",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
40
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
41
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
42
|
-
"@angular/build": "^
|
|
43
|
-
"@angular/cli": "^
|
|
44
|
-
"@angular/compiler-cli": "^
|
|
39
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
40
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
41
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
42
|
+
"@angular/build": "^22.0.0-rc.0",
|
|
43
|
+
"@angular/cli": "^22.0.0-rc.0",
|
|
44
|
+
"@angular/compiler-cli": "^22.0.0-rc.0",
|
|
45
45
|
"jsdom": "^22.0.0",
|
|
46
|
-
"typescript": "~
|
|
46
|
+
"typescript": "~6.0.0",
|
|
47
47
|
"vite": "^8.0.0",
|
|
48
48
|
"vite-tsconfig-paths": "^4.2.0",
|
|
49
49
|
"vitest": "^4.1.0"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provideHttpClient,
|
|
3
|
-
withFetch,
|
|
4
3
|
withInterceptors,
|
|
5
4
|
} from '@angular/common/http';
|
|
6
5
|
import {
|
|
@@ -15,7 +14,6 @@ export const appConfig: ApplicationConfig = {
|
|
|
15
14
|
provideBrowserGlobalErrorListeners(),
|
|
16
15
|
provideFileRouter(),
|
|
17
16
|
provideHttpClient(
|
|
18
|
-
withFetch(),
|
|
19
17
|
withInterceptors([requestContextInterceptor])
|
|
20
18
|
),
|
|
21
19
|
provideClientHydration(withEventReplay()),
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
},
|
|
17
17
|
"private": true,
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@analogjs/content": "^2.6.0-beta.
|
|
20
|
-
"@analogjs/router": "^2.6.0-beta.
|
|
21
|
-
"@angular/animations": "^
|
|
22
|
-
"@angular/common": "^
|
|
23
|
-
"@angular/compiler": "^
|
|
24
|
-
"@angular/core": "^
|
|
25
|
-
"@angular/forms": "^
|
|
26
|
-
"@angular/platform-browser": "^
|
|
27
|
-
"@angular/platform-server": "^
|
|
28
|
-
"@angular/router": "^
|
|
19
|
+
"@analogjs/content": "^2.6.0-beta.2",
|
|
20
|
+
"@analogjs/router": "^2.6.0-beta.2",
|
|
21
|
+
"@angular/animations": "^22.0.0-rc.0",
|
|
22
|
+
"@angular/common": "^22.0.0-rc.0",
|
|
23
|
+
"@angular/compiler": "^22.0.0-rc.0",
|
|
24
|
+
"@angular/core": "^22.0.0-rc.0",
|
|
25
|
+
"@angular/forms": "^22.0.0-rc.0",
|
|
26
|
+
"@angular/platform-browser": "^22.0.0-rc.0",
|
|
27
|
+
"@angular/platform-server": "^22.0.0-rc.0",
|
|
28
|
+
"@angular/router": "^22.0.0-rc.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
30
|
"marked": "^15.0.7",
|
|
31
31
|
"marked-gfm-heading-id": "^4.1.1",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@analogjs/platform": "^2.6.0-beta.
|
|
40
|
-
"@analogjs/vite-plugin-angular": "^2.6.0-beta.
|
|
41
|
-
"@analogjs/vitest-angular": "^2.6.0-beta.
|
|
42
|
-
"@angular/build": "^
|
|
43
|
-
"@angular/cli": "^
|
|
44
|
-
"@angular/compiler-cli": "^
|
|
39
|
+
"@analogjs/platform": "^2.6.0-beta.2",
|
|
40
|
+
"@analogjs/vite-plugin-angular": "^2.6.0-beta.2",
|
|
41
|
+
"@analogjs/vitest-angular": "^2.6.0-beta.2",
|
|
42
|
+
"@angular/build": "^22.0.0-rc.0",
|
|
43
|
+
"@angular/cli": "^22.0.0-rc.0",
|
|
44
|
+
"@angular/compiler-cli": "^22.0.0-rc.0",
|
|
45
45
|
"jsdom": "^22.0.0",
|
|
46
|
-
"typescript": "~
|
|
46
|
+
"typescript": "~6.0.0",
|
|
47
47
|
"vite": "^8.0.0",
|
|
48
48
|
"vite-tsconfig-paths": "^4.2.0",
|
|
49
49
|
"vitest": "^4.1.0"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provideHttpClient,
|
|
3
|
-
withFetch,
|
|
4
3
|
withInterceptors,
|
|
5
4
|
} from '@angular/common/http';
|
|
6
5
|
import {
|
|
@@ -15,7 +14,6 @@ export const appConfig: ApplicationConfig = {
|
|
|
15
14
|
provideBrowserGlobalErrorListeners(),
|
|
16
15
|
provideFileRouter(),
|
|
17
16
|
provideHttpClient(
|
|
18
|
-
withFetch(),
|
|
19
17
|
withInterceptors([requestContextInterceptor])
|
|
20
18
|
),
|
|
21
19
|
provideClientHydration(withEventReplay()),
|