create-analog 2.0.0-alpha.4 → 2.0.0-alpha.5

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 CHANGED
@@ -150,7 +150,7 @@ async function init() {
150
150
  onCancel: () => {
151
151
  throw new Error(red('✖') + ' Operation cancelled');
152
152
  },
153
- }
153
+ },
154
154
  );
155
155
  } catch (cancelled) {
156
156
  console.log(cancelled.message);
@@ -188,7 +188,7 @@ async function init() {
188
188
  const templateDir = path.resolve(
189
189
  fileURLToPath(import.meta.url),
190
190
  '..',
191
- `template-${template}`
191
+ `template-${template}`,
192
192
  );
193
193
 
194
194
  const filesDir = path.resolve(fileURLToPath(import.meta.url), '..', `files`);
@@ -219,7 +219,7 @@ async function init() {
219
219
  const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent);
220
220
  const pkgManager = pkgInfo ? pkgInfo.name : 'npm';
221
221
  const pkg = JSON.parse(
222
- fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8')
222
+ fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8'),
223
223
  );
224
224
 
225
225
  pkg.name = packageName || getProjectName();
@@ -284,7 +284,7 @@ function copy(src, dest) {
284
284
  */
285
285
  function isValidPackageName(projectName) {
286
286
  return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(
287
- projectName
287
+ projectName,
288
288
  );
289
289
  }
290
290
 
@@ -366,21 +366,21 @@ function getStartCommand(pkgManager) {
366
366
  function addTailwindDirectives(write, filesDir) {
367
367
  write(
368
368
  'src/styles.css',
369
- fs.readFileSync(path.join(filesDir, `styles.css`), 'utf-8')
369
+ fs.readFileSync(path.join(filesDir, `styles.css`), 'utf-8'),
370
370
  );
371
371
  }
372
372
 
373
373
  function addPostCssConfig(write, filesDir) {
374
374
  write(
375
375
  'postcss.config.cjs',
376
- fs.readFileSync(path.join(filesDir, `postcss.config.cjs`), 'utf-8')
376
+ fs.readFileSync(path.join(filesDir, `postcss.config.cjs`), 'utf-8'),
377
377
  );
378
378
  }
379
379
 
380
380
  function addTailwindConfig(write, filesDir) {
381
381
  write(
382
382
  'tailwind.config.ts',
383
- fs.readFileSync(path.join(filesDir, `tailwind.config.ts`), 'utf-8')
383
+ fs.readFileSync(path.join(filesDir, `tailwind.config.ts`), 'utf-8'),
384
384
  );
385
385
  }
386
386
 
@@ -389,7 +389,7 @@ function addTailwindDevDependencies(pkg) {
389
389
  (packageName) => {
390
390
  const [name, version] = packageName.split('@');
391
391
  pkg.devDependencies[name] = version;
392
- }
392
+ },
393
393
  );
394
394
  }
395
395
 
@@ -472,7 +472,7 @@ function setComponentFormat(root, filesDir, write, template, useAnalogSFC) {
472
472
  if (useAnalogSFC) {
473
473
  write(
474
474
  'src/analog-env.d.ts',
475
- fs.readFileSync(path.join(filesDir, 'analog-env.d.ts'), 'utf-8')
475
+ fs.readFileSync(path.join(filesDir, 'analog-env.d.ts'), 'utf-8'),
476
476
  );
477
477
  }
478
478
  }
@@ -484,7 +484,7 @@ function replacePlaceholders(root, files, config) {
484
484
  const newFileContent = Object.keys(config).reduce(
485
485
  (content, placeholder) =>
486
486
  content.replace(RegExp(placeholder, 'g'), config[placeholder]),
487
- fileContent
487
+ fileContent,
488
488
  );
489
489
  fs.writeFileSync(filePath, newFileContent);
490
490
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
41
+ "@analogjs/platform": "^2.0.0-alpha.5",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
41
+ "@analogjs/platform": "^2.0.0-alpha.5",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
41
+ "@analogjs/platform": "^2.0.0-alpha.5",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
40
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
41
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
39
+ "@analogjs/platform": "^2.0.0-alpha.5",
40
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
41
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
40
+ "@analogjs/platform": "^2.0.0-alpha.5",
41
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
42
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
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.4",
19
- "@analogjs/router": "^2.0.0-alpha.4",
18
+ "@analogjs/content": "^2.0.0-alpha.5",
19
+ "@analogjs/router": "^2.0.0-alpha.5",
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.4",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.4",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.4",
40
+ "@analogjs/platform": "^2.0.0-alpha.5",
41
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.5",
42
+ "@analogjs/vitest-angular": "^2.0.0-alpha.5",
43
43
  "@angular-devkit/build-angular": "^19.0.0",
44
44
  "@angular/build": "^19.0.0",
45
45
  "@angular/cli": "^19.0.0",