create-analog 2.0.0-alpha.6 → 2.0.0-alpha.9
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/files/styles.css +1 -4
- package/index.js +5 -24
- package/package.json +1 -1
- package/template-angular-v16/package.json +8 -8
- package/template-angular-v17/package.json +8 -8
- package/template-angular-v18/package.json +9 -9
- package/template-blog/package.json +9 -9
- package/template-latest/package.json +9 -9
- package/template-minimal/package.json +9 -9
- package/files/postcss.config.cjs +0 -6
- package/files/tailwind.config.ts +0 -9
package/files/styles.css
CHANGED
package/index.js
CHANGED
|
@@ -211,8 +211,6 @@ async function init() {
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
if (!skipTailwind) {
|
|
214
|
-
addTailwindConfig(write, filesDir);
|
|
215
|
-
addPostCssConfig(write, filesDir);
|
|
216
214
|
addTailwindDirectives(write, filesDir);
|
|
217
215
|
}
|
|
218
216
|
|
|
@@ -230,7 +228,7 @@ async function init() {
|
|
|
230
228
|
}
|
|
231
229
|
|
|
232
230
|
if (!skipTailwind) {
|
|
233
|
-
|
|
231
|
+
addTailwindDependencies(pkg);
|
|
234
232
|
}
|
|
235
233
|
|
|
236
234
|
if (pkgManager === 'yarn') {
|
|
@@ -370,27 +368,10 @@ function addTailwindDirectives(write, filesDir) {
|
|
|
370
368
|
);
|
|
371
369
|
}
|
|
372
370
|
|
|
373
|
-
function
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
);
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
function addTailwindConfig(write, filesDir) {
|
|
381
|
-
write(
|
|
382
|
-
'tailwind.config.ts',
|
|
383
|
-
fs.readFileSync(path.join(filesDir, `tailwind.config.ts`), 'utf-8'),
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
function addTailwindDevDependencies(pkg) {
|
|
388
|
-
['tailwindcss@^3.3.1', 'postcss@^8.4.21', 'autoprefixer@^10.4.14'].forEach(
|
|
389
|
-
(packageName) => {
|
|
390
|
-
const [name, version] = packageName.split('@');
|
|
391
|
-
pkg.devDependencies[name] = version;
|
|
392
|
-
},
|
|
393
|
-
);
|
|
371
|
+
function addTailwindDependencies(pkg) {
|
|
372
|
+
pkg.dependencies['tailwindcss'] = '^4.1.4';
|
|
373
|
+
pkg.dependencies['postcss'] = '^8.5.3';
|
|
374
|
+
pkg.dependencies['@tailwindcss/vite'] = '^4.1.4';
|
|
394
375
|
}
|
|
395
376
|
|
|
396
377
|
function addYarnDevDependencies(pkg, template) {
|
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"test": "ng test"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.0.0-alpha.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^16.2.0",
|
|
21
21
|
"@angular/common": "^16.2.0",
|
|
22
22
|
"@angular/compiler": "^16.2.0",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@angular/router": "^16.2.0",
|
|
29
29
|
"@nx/angular": "~18.0.0",
|
|
30
30
|
"front-matter": "^4.0.2",
|
|
31
|
-
"marked": "^
|
|
32
|
-
"marked-gfm-heading-id": "^
|
|
33
|
-
"marked-highlight": "^2.
|
|
31
|
+
"marked": "^15.0.7",
|
|
32
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
33
|
+
"marked-highlight": "^2.2.1",
|
|
34
34
|
"mermaid": "^10.2.4",
|
|
35
35
|
"prismjs": "^1.29.0",
|
|
36
36
|
"rxjs": "~7.5.6",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"zone.js": "~0.13.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
43
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
41
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
42
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
43
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
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.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^17.2.0",
|
|
21
21
|
"@angular/common": "^17.2.0",
|
|
22
22
|
"@angular/compiler": "^17.2.0",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@angular/router": "^17.2.0",
|
|
29
29
|
"@nx/angular": "~18.0.0",
|
|
30
30
|
"front-matter": "^4.0.2",
|
|
31
|
-
"marked": "^
|
|
32
|
-
"marked-gfm-heading-id": "^
|
|
33
|
-
"marked-highlight": "^2.
|
|
31
|
+
"marked": "^15.0.7",
|
|
32
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
33
|
+
"marked-highlight": "^2.2.1",
|
|
34
34
|
"mermaid": "^10.2.4",
|
|
35
35
|
"prismjs": "^1.29.0",
|
|
36
36
|
"rxjs": "~7.5.6",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"zone.js": "~0.14.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
43
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
41
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
42
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
43
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
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.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^18.0.0",
|
|
21
21
|
"@angular/build": "^18.0.0",
|
|
22
22
|
"@angular/common": "^18.0.0",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"@angular/platform-server": "^18.0.0",
|
|
29
29
|
"@angular/router": "^18.0.0",
|
|
30
30
|
"front-matter": "^4.0.2",
|
|
31
|
-
"marked": "^
|
|
32
|
-
"marked-gfm-heading-id": "^
|
|
33
|
-
"marked-highlight": "^2.
|
|
34
|
-
"marked-mangle": "^1.1.
|
|
31
|
+
"marked": "^15.0.7",
|
|
32
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
33
|
+
"marked-highlight": "^2.2.1",
|
|
34
|
+
"marked-mangle": "^1.1.10",
|
|
35
35
|
"prismjs": "^1.29.0",
|
|
36
36
|
"rxjs": "~7.8.0",
|
|
37
37
|
"tslib": "^2.3.0",
|
|
38
38
|
"zone.js": "~0.14.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
42
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
43
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
41
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
42
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
43
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
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.0.0-alpha.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^19.0.0",
|
|
21
21
|
"@angular/common": "^19.0.0",
|
|
22
22
|
"@angular/compiler": "^19.0.0",
|
|
@@ -27,18 +27,18 @@
|
|
|
27
27
|
"@angular/platform-server": "^19.0.0",
|
|
28
28
|
"@angular/router": "^19.0.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
|
-
"marked": "^
|
|
31
|
-
"marked-gfm-heading-id": "^
|
|
32
|
-
"marked-highlight": "^2.
|
|
33
|
-
"marked-mangle": "^1.1.
|
|
30
|
+
"marked": "^15.0.7",
|
|
31
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
32
|
+
"marked-highlight": "^2.2.1",
|
|
33
|
+
"marked-mangle": "^1.1.10",
|
|
34
34
|
"rxjs": "~7.8.0",
|
|
35
35
|
"tslib": "^2.3.0",
|
|
36
36
|
"zone.js": "~0.15.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
40
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
41
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
39
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
40
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
41
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
42
42
|
"@angular-devkit/build-angular": "^19.0.0",
|
|
43
43
|
"@angular/build": "^19.0.0",
|
|
44
44
|
"@angular/cli": "^19.0.0",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"private": true,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.0.0-alpha.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^19.0.0",
|
|
21
21
|
"@angular/common": "^19.0.0",
|
|
22
22
|
"@angular/compiler": "^19.0.0",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"@angular/platform-server": "^19.0.0",
|
|
28
28
|
"@angular/router": "^19.0.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
|
-
"marked": "^
|
|
31
|
-
"marked-gfm-heading-id": "^
|
|
32
|
-
"marked-highlight": "^2.
|
|
33
|
-
"marked-mangle": "^1.1.
|
|
30
|
+
"marked": "^15.0.7",
|
|
31
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
32
|
+
"marked-highlight": "^2.2.1",
|
|
33
|
+
"marked-mangle": "^1.1.10",
|
|
34
34
|
"prismjs": "^1.29.0",
|
|
35
35
|
"rxjs": "~7.8.0",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"zone.js": "~0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
41
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
42
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
40
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
41
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
42
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
43
43
|
"@angular-devkit/build-angular": "^19.0.0",
|
|
44
44
|
"@angular/build": "^19.0.0",
|
|
45
45
|
"@angular/cli": "^19.0.0",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"private": true,
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@analogjs/content": "^2.0.0-alpha.
|
|
19
|
-
"@analogjs/router": "^2.0.0-alpha.
|
|
18
|
+
"@analogjs/content": "^2.0.0-alpha.9",
|
|
19
|
+
"@analogjs/router": "^2.0.0-alpha.9",
|
|
20
20
|
"@angular/animations": "^19.0.0",
|
|
21
21
|
"@angular/common": "^19.0.0",
|
|
22
22
|
"@angular/compiler": "^19.0.0",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"@angular/platform-server": "^19.0.0",
|
|
28
28
|
"@angular/router": "^19.0.0",
|
|
29
29
|
"front-matter": "^4.0.2",
|
|
30
|
-
"marked": "^
|
|
31
|
-
"marked-gfm-heading-id": "^
|
|
32
|
-
"marked-highlight": "^2.
|
|
33
|
-
"marked-mangle": "^1.1.
|
|
30
|
+
"marked": "^15.0.7",
|
|
31
|
+
"marked-gfm-heading-id": "^4.1.1",
|
|
32
|
+
"marked-highlight": "^2.2.1",
|
|
33
|
+
"marked-mangle": "^1.1.10",
|
|
34
34
|
"prismjs": "^1.29.0",
|
|
35
35
|
"rxjs": "~7.8.0",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"zone.js": "~0.15.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@analogjs/platform": "^2.0.0-alpha.
|
|
41
|
-
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.
|
|
42
|
-
"@analogjs/vitest-angular": "^2.0.0-alpha.
|
|
40
|
+
"@analogjs/platform": "^2.0.0-alpha.9",
|
|
41
|
+
"@analogjs/vite-plugin-angular": "^2.0.0-alpha.9",
|
|
42
|
+
"@analogjs/vitest-angular": "^2.0.0-alpha.9",
|
|
43
43
|
"@angular-devkit/build-angular": "^19.0.0",
|
|
44
44
|
"@angular/build": "^19.0.0",
|
|
45
45
|
"@angular/cli": "^19.0.0",
|
package/files/postcss.config.cjs
DELETED