create-analog 2.0.0-alpha.7 → 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 CHANGED
@@ -1,7 +1,4 @@
1
- /* Tailwind directives */
2
- @tailwind base;
3
- @tailwind components;
4
- @tailwind utilities;
1
+ @import 'tailwindcss';
5
2
 
6
3
  /* You can add global styles to this file, and also import other style files */
7
4
  :root {
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
- addTailwindDevDependencies(pkg);
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 addPostCssConfig(write, filesDir) {
374
- write(
375
- 'postcss.config.cjs',
376
- fs.readFileSync(path.join(filesDir, `postcss.config.cjs`), 'utf-8'),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.0-alpha.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Brandon Roberts",
@@ -15,8 +15,8 @@
15
15
  "test": "ng test"
16
16
  },
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -38,9 +38,9 @@
38
38
  "zone.js": "~0.13.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@analogjs/platform": "^2.0.0-alpha.7",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -38,9 +38,9 @@
38
38
  "zone.js": "~0.14.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@analogjs/platform": "^2.0.0-alpha.7",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -38,9 +38,9 @@
38
38
  "zone.js": "~0.14.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@analogjs/platform": "^2.0.0-alpha.7",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -36,9 +36,9 @@
36
36
  "zone.js": "~0.15.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@analogjs/platform": "^2.0.0-alpha.7",
40
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
41
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -37,9 +37,9 @@
37
37
  "zone.js": "~0.15.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@analogjs/platform": "^2.0.0-alpha.7",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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.7",
19
- "@analogjs/router": "^2.0.0-alpha.7",
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",
@@ -37,9 +37,9 @@
37
37
  "zone.js": "~0.15.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@analogjs/platform": "^2.0.0-alpha.7",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.7",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.7",
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",
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,9 +0,0 @@
1
- import type { Config } from 'tailwindcss';
2
-
3
- export default {
4
- content: ['./index.html', './src/**/*.{html,ts,md,analog,ag}'],
5
- theme: {
6
- extend: {},
7
- },
8
- plugins: [],
9
- } satisfies Config;