create-analog 2.0.0-alpha.13 → 2.0.0-alpha.14

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.
@@ -1,10 +1,3 @@
1
- declare module '*.analog' {
2
- import { Type } from '@angular/core';
3
-
4
- const cmp: Type<unknown>;
5
- export default cmp;
6
- }
7
-
8
1
  declare module '*.ag' {
9
2
  import { Type } from '@angular/core';
10
3
 
package/files/styles.css CHANGED
@@ -1,86 +1,8 @@
1
1
  @import 'tailwindcss';
2
2
 
3
3
  /* You can add global styles to this file, and also import other style files */
4
- :root {
5
- font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
6
- font-size: 16px;
7
- line-height: 24px;
8
- font-weight: 400;
9
-
10
- color-scheme: light dark;
11
- color: rgba(255, 255, 255, 0.87);
12
- background-color: #242424;
13
-
14
- font-synthesis: none;
15
- text-rendering: optimizeLegibility;
16
- -webkit-font-smoothing: antialiased;
17
- -moz-osx-font-smoothing: grayscale;
18
- -webkit-text-size-adjust: 100%;
19
- }
20
-
21
- a {
22
- font-weight: 500;
23
- color: #646cff;
24
- text-decoration: inherit;
25
- }
26
-
27
- a:hover {
28
- color: #535bf2;
29
- }
30
-
4
+ html,
31
5
  body {
32
- margin: 0;
33
- display: flex;
34
- place-items: center;
35
- min-width: 320px;
36
- min-height: 100vh;
37
- }
38
-
39
- h1 {
40
- font-size: 3.2em;
41
- line-height: 1.1;
42
- }
43
-
44
- button {
45
- border-radius: 8px;
46
- border: 1px solid transparent;
47
- padding: 0.6em 1.2em;
48
- font-size: 1em;
49
- font-weight: 500;
50
- font-family: inherit;
51
- background-color: #1a1a1a;
52
- cursor: pointer;
53
- transition: border-color 0.25s;
54
- }
55
-
56
- button:hover {
57
- border-color: #646cff;
58
- }
59
-
60
- button:focus,
61
- button:focus-visible {
62
- outline: 4px auto -webkit-focus-ring-color;
63
- }
64
-
65
- .card {
66
- padding: 2em;
67
- }
68
-
69
- .logo {
70
- @apply box-content;
71
- }
72
-
73
- @media (prefers-color-scheme: light) {
74
- :root {
75
- color: #213547;
76
- background-color: #ffffff;
77
- }
78
-
79
- a:hover {
80
- color: #747bff;
81
- }
82
-
83
- button {
84
- background-color: #f9f9f9;
85
- }
6
+ display: block;
7
+ height: 100%;
86
8
  }
package/index.js CHANGED
@@ -135,11 +135,6 @@ async function init() {
135
135
  })),
136
136
  initial: 1,
137
137
  },
138
- {
139
- type: useAnalogSFC === undefined ? 'confirm' : null,
140
- name: 'analogSFC',
141
- message: 'Would you like to use Analog SFCs?',
142
- },
143
138
  {
144
139
  type: skipTailwind === undefined ? 'confirm' : null,
145
140
  name: 'tailwind',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Brandon Roberts",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "main": "index.js",
23
23
  "engines": {
24
- "node": "^18.13.0 || ^20.0.0"
24
+ "node": ">=20.0.0"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
@@ -15,8 +15,8 @@
15
15
  "test": "ng test"
16
16
  },
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
18
+ "@analogjs/content": "^2.0.0-alpha.14",
19
+ "@analogjs/router": "^2.0.0-alpha.14",
20
20
  "@angular/animations": "^16.2.0",
21
21
  "@angular/common": "^16.2.0",
22
22
  "@angular/compiler": "^16.2.0",
@@ -38,9 +38,9 @@
38
38
  "zone.js": "~0.13.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@analogjs/platform": "^2.0.0-alpha.13",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
41
+ "@analogjs/platform": "^2.0.0-alpha.14",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
44
44
  "@angular-devkit/build-angular": "^16.2.0",
45
45
  "@angular/cli": "^16.2.0",
46
46
  "@angular/compiler-cli": "^16.2.0",
@@ -15,8 +15,8 @@
15
15
  "test": "ng test"
16
16
  },
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
18
+ "@analogjs/content": "^2.0.0-alpha.14",
19
+ "@analogjs/router": "^2.0.0-alpha.14",
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.0.0-alpha.13",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
41
+ "@analogjs/platform": "^2.0.0-alpha.14",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
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.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
18
+ "@analogjs/content": "^2.0.0-alpha.14",
19
+ "@analogjs/router": "^2.0.0-alpha.14",
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.0.0-alpha.13",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
41
+ "@analogjs/platform": "^2.0.0-alpha.14",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
44
44
  "@angular/cli": "^18.0.0",
45
45
  "@angular/compiler-cli": "^18.0.0",
46
46
  "jsdom": "^22.0.0",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
- "recommendations": ["angular.ng-template", "analogjs.vscode-analog"]
3
+ "recommendations": ["angular.ng-template", "analogjs.vscode-analog", "vitest.explorer"]
4
4
  }
@@ -7,16 +7,17 @@
7
7
  },
8
8
  "scripts": {
9
9
  "ng": "ng",
10
- "dev": "ng serve",
11
- "start": "ng serve",
12
- "build": "ng build",
13
- "watch": "ng build --watch --configuration development",
14
- "test": "ng test"
10
+ "dev": "vite",
11
+ "start": "vite",
12
+ "build": "vite build",
13
+ "watch": "vite build --watch",
14
+ "test": "vitest",
15
+ "preview": "node dist/analog/server/index.mjs"
15
16
  },
16
17
  "private": true,
17
18
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
19
+ "@analogjs/content": "^2.0.0-alpha.14",
20
+ "@analogjs/router": "^2.0.0-alpha.14",
20
21
  "@angular/animations": "^19.0.0",
21
22
  "@angular/common": "^19.0.0",
22
23
  "@angular/compiler": "^19.0.0",
@@ -36,17 +37,22 @@
36
37
  "zone.js": "~0.15.0"
37
38
  },
38
39
  "devDependencies": {
39
- "@analogjs/platform": "^2.0.0-alpha.13",
40
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
41
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
40
+ "@analogjs/platform": "^2.0.0-alpha.14",
41
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
42
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
42
43
  "@angular-devkit/build-angular": "^19.0.0",
43
44
  "@angular/build": "^19.0.0",
44
45
  "@angular/cli": "^19.0.0",
45
46
  "@angular/compiler-cli": "^19.0.0",
46
47
  "jsdom": "^22.0.0",
47
48
  "typescript": "~5.8.0",
48
- "vite": "^6.0.0",
49
+ "vite": "^7.0.0",
49
50
  "vite-tsconfig-paths": "^4.2.0",
50
51
  "vitest": "^3.0.0"
52
+ },
53
+ "overrides": {
54
+ "@analogjs/platform": {
55
+ "vite": "$vite"
56
+ }
51
57
  }
52
58
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
- "recommendations": ["angular.ng-template", "analogjs.vscode-analog"]
3
+ "recommendations": ["angular.ng-template", "analogjs.vscode-analog", "vitest.explorer"]
4
4
  }
@@ -7,16 +7,17 @@
7
7
  },
8
8
  "scripts": {
9
9
  "ng": "ng",
10
- "dev": "ng serve",
11
- "start": "ng serve",
12
- "build": "ng build",
13
- "watch": "ng build --watch --configuration development",
14
- "test": "ng test"
10
+ "dev": "vite",
11
+ "start": "vite",
12
+ "build": "vite build",
13
+ "watch": "vite build --watch",
14
+ "test": "vitest",
15
+ "preview": "node dist/analog/server/index.mjs"
15
16
  },
16
17
  "private": true,
17
18
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
19
+ "@analogjs/content": "^2.0.0-alpha.14",
20
+ "@analogjs/router": "^2.0.0-alpha.14",
20
21
  "@angular/animations": "^19.0.0",
21
22
  "@angular/common": "^19.0.0",
22
23
  "@angular/compiler": "^19.0.0",
@@ -37,17 +38,22 @@
37
38
  "zone.js": "~0.15.0"
38
39
  },
39
40
  "devDependencies": {
40
- "@analogjs/platform": "^2.0.0-alpha.13",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
41
+ "@analogjs/platform": "^2.0.0-alpha.14",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
43
44
  "@angular-devkit/build-angular": "^19.0.0",
44
45
  "@angular/build": "^19.0.0",
45
46
  "@angular/cli": "^19.0.0",
46
47
  "@angular/compiler-cli": "^19.0.0",
47
48
  "jsdom": "^22.0.0",
48
49
  "typescript": "~5.8.0",
49
- "vite": "^6.0.0",
50
+ "vite": "^7.0.0",
50
51
  "vite-tsconfig-paths": "^4.2.0",
51
52
  "vitest": "^3.0.0"
53
+ },
54
+ "overrides": {
55
+ "@analogjs/platform": {
56
+ "vite": "$vite"
57
+ }
52
58
  }
53
59
  }
@@ -1,7 +1,11 @@
1
1
  <script lang="ts">
2
- import AnalogWelcome from './analog-welcome' with { analog: 'imports '};
2
+ import { AnalogWelcome } from './analog-welcome';
3
+
4
+ defineMetadata({
5
+ imports: [AnalogWelcome]
6
+ });
3
7
  </script>
4
8
 
5
9
  <template>
6
- <AnalogWelcome />
10
+ <app-analog-welcome />
7
11
  </template>
@@ -1,4 +1,4 @@
1
1
  {
2
2
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
- "recommendations": ["angular.ng-template", "analogjs.vscode-analog"]
3
+ "recommendations": ["angular.ng-template", "analogjs.vscode-analog", "vitest.explorer"]
4
4
  }
@@ -7,16 +7,17 @@
7
7
  },
8
8
  "scripts": {
9
9
  "ng": "ng",
10
- "dev": "ng serve",
11
- "start": "ng serve",
12
- "build": "ng build",
13
- "watch": "ng build --watch --configuration development",
14
- "test": "ng test"
10
+ "dev": "vite",
11
+ "start": "vite",
12
+ "build": "vite build",
13
+ "watch": "vite build --watch",
14
+ "test": "vitest",
15
+ "preview": "node dist/analog/server/index.mjs"
15
16
  },
16
17
  "private": true,
17
18
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.13",
19
- "@analogjs/router": "^2.0.0-alpha.13",
19
+ "@analogjs/content": "^2.0.0-alpha.14",
20
+ "@analogjs/router": "^2.0.0-alpha.14",
20
21
  "@angular/animations": "^19.0.0",
21
22
  "@angular/common": "^19.0.0",
22
23
  "@angular/compiler": "^19.0.0",
@@ -37,17 +38,22 @@
37
38
  "zone.js": "~0.15.0"
38
39
  },
39
40
  "devDependencies": {
40
- "@analogjs/platform": "^2.0.0-alpha.13",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.13",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.13",
41
+ "@analogjs/platform": "^2.0.0-alpha.14",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.14",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.14",
43
44
  "@angular-devkit/build-angular": "^19.0.0",
44
45
  "@angular/build": "^19.0.0",
45
46
  "@angular/cli": "^19.0.0",
46
47
  "@angular/compiler-cli": "^19.0.0",
47
48
  "jsdom": "^22.0.0",
48
49
  "typescript": "~5.8.0",
49
- "vite": "^6.0.0",
50
+ "vite": "^7.0.0",
50
51
  "vite-tsconfig-paths": "^4.2.0",
51
52
  "vitest": "^3.0.0"
53
+ },
54
+ "overrides": {
55
+ "@analogjs/platform": {
56
+ "vite": "$vite"
57
+ }
52
58
  }
53
59
  }
@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => ({
17
17
  static: true,
18
18
  prerender: {
19
19
  routes: [],
20
- },__ANALOG_SFC_CONFIG__,
20
+ },__ANALOG_SFC_CONFIG__
21
21
  }),__TAILWIND_PLUGIN__
22
22
  ],
23
23
  }));