create-analog 3.0.0-alpha.7 → 3.0.0-alpha.71

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 (40) hide show
  1. package/index.js +348 -153
  2. package/package.json +9 -4
  3. package/template-angular-v17/package.json +8 -8
  4. package/template-angular-v17/tsconfig.json +1 -4
  5. package/template-angular-v17/tsconfig.spec.json +2 -1
  6. package/template-angular-v17/vite.config.ts +4 -2
  7. package/template-angular-v18/package.json +9 -9
  8. package/template-angular-v18/tsconfig.json +1 -4
  9. package/template-angular-v18/tsconfig.spec.json +2 -1
  10. package/template-angular-v18/vite.config.ts +4 -2
  11. package/template-angular-v19/package.json +9 -9
  12. package/template-angular-v19/tsconfig.json +0 -6
  13. package/template-angular-v19/tsconfig.spec.json +2 -1
  14. package/template-angular-v19/vite.config.ts +2 -2
  15. package/template-angular-v20/package.json +9 -9
  16. package/template-angular-v20/tsconfig.json +0 -5
  17. package/template-angular-v20/tsconfig.spec.json +2 -1
  18. package/template-angular-v20/vite.config.ts +2 -2
  19. package/template-blog/AGENTS.md +11 -0
  20. package/template-blog/CLAUDE.md +1 -0
  21. package/template-blog/package.json +23 -21
  22. package/template-blog/src/app/app.config.ts +6 -4
  23. package/template-blog/src/test-setup.ts +1 -0
  24. package/template-blog/tsconfig.json +3 -8
  25. package/template-blog/tsconfig.spec.json +2 -1
  26. package/template-blog/vite.config.ts +7 -3
  27. package/template-latest/AGENTS.md +11 -0
  28. package/template-latest/CLAUDE.md +1 -0
  29. package/template-latest/package.json +23 -21
  30. package/template-latest/src/app/app.config.ts +0 -2
  31. package/template-latest/src/test-setup.ts +1 -0
  32. package/template-latest/tsconfig.json +3 -8
  33. package/template-latest/tsconfig.spec.json +2 -1
  34. package/template-latest/vite.config.ts +7 -3
  35. package/template-minimal/AGENTS.md +11 -0
  36. package/template-minimal/CLAUDE.md +1 -0
  37. package/template-minimal/package.json +23 -21
  38. package/template-minimal/src/app/app.config.ts +0 -2
  39. package/template-minimal/tsconfig.json +3 -9
  40. package/template-minimal/vite.config.ts +7 -4
@@ -0,0 +1,11 @@
1
+ # AGENTS.md
2
+
3
+ This is an [AnalogJS](https://analogjs.org) app — an Angular meta-framework powered by Vite.
4
+
5
+ Framework conventions for AI assistants — file-based routing, server/API routes, data fetching, content routes, and modern Angular usage — ship with the framework and are installed alongside your dependencies. Read them here:
6
+
7
+ - `node_modules/@analogjs/platform/AGENTS.md`
8
+
9
+ Reading from `@analogjs/platform` keeps the guidance in sync with the installed version instead of drifting from a copy checked into the project.
10
+
11
+ Full documentation: https://analogjs.org/docs · LLM-friendly index: https://analogjs.org/llms.txt
@@ -0,0 +1 @@
1
+ Strictly follow the rules in @AGENTS.md
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "type": "module",
5
5
  "engines": {
6
- "node": ">=20.19.1"
6
+ "node": "^22.18.0 || ^24.3.0"
7
7
  },
8
8
  "scripts": {
9
9
  "ng": "ng",
@@ -16,18 +16,18 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@analogjs/content": "^3.0.0-alpha.7",
20
- "@analogjs/router": "^3.0.0-alpha.7",
21
- "@angular/animations": "^21.0.0",
22
- "@angular/common": "^21.0.0",
23
- "@angular/compiler": "^21.0.0",
24
- "@angular/core": "^21.0.0",
25
- "@angular/forms": "^21.0.0",
26
- "@angular/platform-browser": "^21.0.0",
27
- "@angular/platform-server": "^21.0.0",
28
- "@angular/router": "^21.0.0",
19
+ "@analogjs/content": "^3.0.0-alpha.71",
20
+ "@analogjs/router": "^3.0.0-alpha.71",
21
+ "@angular/animations": "^22.0.0",
22
+ "@angular/common": "^22.0.0",
23
+ "@angular/compiler": "^22.0.0",
24
+ "@angular/core": "^22.0.0",
25
+ "@angular/forms": "^22.0.0",
26
+ "@angular/platform-browser": "^22.0.0",
27
+ "@angular/platform-server": "^22.0.0",
28
+ "@angular/router": "^22.0.0",
29
29
  "front-matter": "^4.0.2",
30
- "marked": "^15.0.7",
30
+ "marked": "^18.0.0",
31
31
  "marked-gfm-heading-id": "^4.1.1",
32
32
  "marked-highlight": "^2.2.1",
33
33
  "marked-mangle": "^1.1.10",
@@ -36,19 +36,21 @@
36
36
  "tslib": "^2.3.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@analogjs/platform": "^3.0.0-alpha.7",
40
- "@analogjs/vite-plugin-angular": "^3.0.0-alpha.7",
41
- "@analogjs/vitest-angular": "^3.0.0-alpha.7",
42
- "@angular/build": "^21.0.0",
43
- "@angular/cli": "^21.0.0",
44
- "@angular/compiler-cli": "^21.0.0",
39
+ "@analogjs/platform": "^3.0.0-alpha.71",
40
+ "@analogjs/vite-plugin-angular": "^3.0.0-alpha.71",
41
+ "@analogjs/vitest-angular": "^3.0.0-alpha.71",
42
+ "@angular/build": "^22.0.0",
43
+ "@angular/cli": "^22.0.0",
44
+ "@angular/compiler-cli": "^22.0.0",
45
45
  "jsdom": "^22.0.0",
46
- "typescript": "6.0.1-rc",
46
+ "rollup": "^4.40.0",
47
+ "typescript": "~6.0.0",
47
48
  "vite": "^8.0.0",
48
- "vite-tsconfig-paths": "^4.2.0",
49
+ "vite-tsconfig-paths": "^7.0.0-alpha.1",
49
50
  "vitest": "^4.0.0"
50
51
  },
51
52
  "overrides": {
52
- "vite": "$vite"
53
+ "vite": "$vite",
54
+ "vitest": "$vitest"
53
55
  }
54
56
  }
@@ -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()),
@@ -1,5 +1,6 @@
1
1
  import '@angular/compiler';
2
2
  import '@analogjs/vitest-angular/setup-snapshots';
3
+ import '@analogjs/vitest-angular/setup-serializers';
3
4
  import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
4
5
 
5
6
  setupTestBed();
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compileOnSave": false,
3
3
  "compilerOptions": {
4
- "baseUrl": "./",
5
4
  "outDir": "./dist/out-tsc",
6
5
  "forceConsistentCasingInFileNames": true,
7
6
  "strict": true,
@@ -11,15 +10,11 @@
11
10
  "noFallthroughCasesInSwitch": true,
12
11
  "sourceMap": true,
13
12
  "declaration": false,
14
- "downlevelIteration": true,
15
- "experimentalDecorators": true,
16
13
  "moduleResolution": "bundler",
17
- "isolatedModules": true,
18
14
  "importHelpers": true,
19
- "target": "ES2022",
20
- "module": "ES2022",
21
- "lib": ["ES2022", "dom"],
22
- "useDefineForClassFields": false,
15
+ "target": "ESNext",
16
+ "module": "ESNext",
17
+ "lib": ["ESNext", "dom"],
23
18
  "skipLibCheck": true
24
19
  },
25
20
  "angularCompilerOptions": {
@@ -5,7 +5,8 @@
5
5
  "outDir": "./out-tsc/spec",
6
6
  "target": "es2022",
7
7
  "types": ["node", "vitest/globals"],
8
- "rootDir": "./src"
8
+ "rootDir": "./src",
9
+ "composite": false
9
10
  },
10
11
  "files": ["src/test-setup.ts"],
11
12
  "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
@@ -1,7 +1,9 @@
1
1
  /// <reference types="vitest" />
2
2
 
3
3
  import { defineConfig } from 'vite';
4
- import analog from '@analogjs/platform';__TAILWIND_IMPORT__
4
+ __TAILWIND_IMPORT__import analog from '@analogjs/platform';
5
+ import angular from '@analogjs/vite-plugin-angular';
6
+ import { nitro } from 'nitro/vite';
5
7
 
6
8
  // https://vitejs.dev/config/
7
9
  export default defineConfig(({ mode }) => ({
@@ -12,8 +14,10 @@ export default defineConfig(({ mode }) => ({
12
14
  mainFields: ['module'],
13
15
  },
14
16
  plugins: [
15
- analog(),__TAILWIND_PLUGIN__
16
- ],
17
+ analog(),
18
+ angular(),
19
+ nitro(),
20
+ __TAILWIND_PLUGIN__ ],
17
21
  test: {
18
22
  globals: true,
19
23
  environment: 'jsdom',
@@ -0,0 +1,11 @@
1
+ # AGENTS.md
2
+
3
+ This is an [AnalogJS](https://analogjs.org) app — an Angular meta-framework powered by Vite.
4
+
5
+ Framework conventions for AI assistants — file-based routing, server/API routes, data fetching, content routes, and modern Angular usage — ship with the framework and are installed alongside your dependencies. Read them here:
6
+
7
+ - `node_modules/@analogjs/platform/AGENTS.md`
8
+
9
+ Reading from `@analogjs/platform` keeps the guidance in sync with the installed version instead of drifting from a copy checked into the project.
10
+
11
+ Full documentation: https://analogjs.org/docs · LLM-friendly index: https://analogjs.org/llms.txt
@@ -0,0 +1 @@
1
+ Strictly follow the rules in @AGENTS.md
@@ -3,7 +3,7 @@
3
3
  "version": "0.0.0",
4
4
  "type": "module",
5
5
  "engines": {
6
- "node": ">=20.19.1"
6
+ "node": "^22.18.0 || ^24.3.0"
7
7
  },
8
8
  "scripts": {
9
9
  "ng": "ng",
@@ -16,18 +16,18 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@analogjs/content": "^3.0.0-alpha.7",
20
- "@analogjs/router": "^3.0.0-alpha.7",
21
- "@angular/animations": "^21.0.0",
22
- "@angular/common": "^21.0.0",
23
- "@angular/compiler": "^21.0.0",
24
- "@angular/core": "^21.0.0",
25
- "@angular/forms": "^21.0.0",
26
- "@angular/platform-browser": "^21.0.0",
27
- "@angular/platform-server": "^21.0.0",
28
- "@angular/router": "^21.0.0",
19
+ "@analogjs/content": "^3.0.0-alpha.71",
20
+ "@analogjs/router": "^3.0.0-alpha.71",
21
+ "@angular/animations": "^22.0.0",
22
+ "@angular/common": "^22.0.0",
23
+ "@angular/compiler": "^22.0.0",
24
+ "@angular/core": "^22.0.0",
25
+ "@angular/forms": "^22.0.0",
26
+ "@angular/platform-browser": "^22.0.0",
27
+ "@angular/platform-server": "^22.0.0",
28
+ "@angular/router": "^22.0.0",
29
29
  "front-matter": "^4.0.2",
30
- "marked": "^15.0.7",
30
+ "marked": "^18.0.0",
31
31
  "marked-gfm-heading-id": "^4.1.1",
32
32
  "marked-highlight": "^2.2.1",
33
33
  "marked-mangle": "^1.1.10",
@@ -36,19 +36,21 @@
36
36
  "tslib": "^2.3.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@analogjs/platform": "^3.0.0-alpha.7",
40
- "@analogjs/vite-plugin-angular": "^3.0.0-alpha.7",
41
- "@analogjs/vitest-angular": "^3.0.0-alpha.7",
42
- "@angular/build": "^21.0.0",
43
- "@angular/cli": "^21.0.0",
44
- "@angular/compiler-cli": "^21.0.0",
39
+ "@analogjs/platform": "^3.0.0-alpha.71",
40
+ "@analogjs/vite-plugin-angular": "^3.0.0-alpha.71",
41
+ "@analogjs/vitest-angular": "^3.0.0-alpha.71",
42
+ "@angular/build": "^22.0.0",
43
+ "@angular/cli": "^22.0.0",
44
+ "@angular/compiler-cli": "^22.0.0",
45
45
  "jsdom": "^22.0.0",
46
- "typescript": "6.0.1-rc",
46
+ "rollup": "^4.40.0",
47
+ "typescript": "~6.0.0",
47
48
  "vite": "^8.0.0",
48
- "vite-tsconfig-paths": "^4.2.0",
49
+ "vite-tsconfig-paths": "^7.0.0-alpha.1",
49
50
  "vitest": "^4.0.0"
50
51
  },
51
52
  "overrides": {
52
- "vite": "$vite"
53
+ "vite": "$vite",
54
+ "vitest": "$vitest"
53
55
  }
54
56
  }
@@ -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()),
@@ -1,8 +1,6 @@
1
- /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
1
  {
3
2
  "compileOnSave": false,
4
3
  "compilerOptions": {
5
- "baseUrl": "./",
6
4
  "outDir": "./dist/out-tsc",
7
5
  "forceConsistentCasingInFileNames": true,
8
6
  "strict": true,
@@ -12,15 +10,11 @@
12
10
  "noFallthroughCasesInSwitch": true,
13
11
  "sourceMap": true,
14
12
  "declaration": false,
15
- "downlevelIteration": true,
16
- "experimentalDecorators": true,
17
13
  "moduleResolution": "bundler",
18
- "isolatedModules": true,
19
14
  "importHelpers": true,
20
- "target": "ES2022",
21
- "module": "ES2022",
22
- "lib": ["ES2022", "dom"],
23
- "useDefineForClassFields": false,
15
+ "target": "ESNext",
16
+ "module": "ESNext",
17
+ "lib": ["ESNext", "dom"],
24
18
  "skipLibCheck": true
25
19
  },
26
20
  "angularCompilerOptions": {
@@ -1,7 +1,9 @@
1
1
  /// <reference types="vitest" />
2
2
 
3
3
  import { defineConfig } from 'vite';
4
- import analog from '@analogjs/platform';__TAILWIND_IMPORT__
4
+ __TAILWIND_IMPORT__import analog from '@analogjs/platform';
5
+ import angular from '@analogjs/vite-plugin-angular';
6
+ import { nitro } from 'nitro/vite';
5
7
 
6
8
  // https://vitejs.dev/config/
7
9
  export default defineConfig(({ mode }) => ({
@@ -12,12 +14,13 @@ export default defineConfig(({ mode }) => ({
12
14
  mainFields: ['module'],
13
15
  },
14
16
  plugins: [
15
- analog({
17
+ __TAILWIND_PLUGIN__ analog({
16
18
  ssr: false,
17
- static: true,
18
19
  prerender: {
19
20
  routes: [],
20
21
  },
21
- }),__TAILWIND_PLUGIN__
22
+ }),
23
+ angular(),
24
+ nitro({ static: true }),
22
25
  ],
23
26
  }));