create-analog 1.5.1-beta.1 → 1.6.0-beta.1

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
@@ -402,6 +402,14 @@ function ensureSyntaxHighlighter(root, pkg, highlighter) {
402
402
  for (const [name, version] of Object.entries(dependencies)) {
403
403
  pkg.dependencies[name] = version;
404
404
  }
405
+
406
+ const viteConfigPath = path.join(root, 'vite.config.ts');
407
+ const viteConfigContent = fs.readFileSync(viteConfigPath, 'utf-8');
408
+
409
+ fs.writeFileSync(
410
+ viteConfigPath,
411
+ viteConfigContent.replace(/__CONTENT_HIGHLIGHTER__/g, highlighter)
412
+ );
405
413
  }
406
414
 
407
415
  init().catch((e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "1.5.1-beta.1",
3
+ "version": "1.6.0-beta.1",
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": "^1.5.1-beta.1",
19
- "@analogjs/router": "^1.5.1-beta.1",
18
+ "@analogjs/content": "^1.6.0-beta.1",
19
+ "@analogjs/router": "^1.6.0-beta.1",
20
20
  "@angular/animations": "^17.2.0",
21
21
  "@angular/common": "^17.2.0",
22
22
  "@angular/compiler": "^17.2.0",
@@ -38,8 +38,8 @@
38
38
  "zone.js": "~0.14.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@analogjs/platform": "^1.5.1-beta.1",
42
- "@analogjs/vite-plugin-angular": "^1.5.1-beta.1",
41
+ "@analogjs/platform": "^1.6.0-beta.1",
42
+ "@analogjs/vite-plugin-angular": "^1.6.0-beta.1",
43
43
  "@angular-devkit/build-angular": "^17.2.0",
44
44
  "@angular/cli": "^17.2.0",
45
45
  "@angular/compiler-cli": "^17.2.0",
@@ -15,8 +15,8 @@
15
15
  "test": "ng test"
16
16
  },
17
17
  "dependencies": {
18
- "@analogjs/content": "^1.5.1-beta.1",
19
- "@analogjs/router": "^1.5.1-beta.1",
18
+ "@analogjs/content": "^1.6.0-beta.1",
19
+ "@analogjs/router": "^1.6.0-beta.1",
20
20
  "@angular/animations": "^18.0.0",
21
21
  "@angular/common": "^18.0.0",
22
22
  "@angular/compiler": "^18.0.0",
@@ -35,8 +35,8 @@
35
35
  "zone.js": "~0.14.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@analogjs/platform": "^1.5.1-beta.1",
39
- "@analogjs/vite-plugin-angular": "^1.5.1-beta.1",
38
+ "@analogjs/platform": "^1.6.0-beta.1",
39
+ "@analogjs/vite-plugin-angular": "^1.6.0-beta.1",
40
40
  "@angular-devkit/build-angular": "^18.0.0",
41
41
  "@angular/cli": "^18.0.0",
42
42
  "@angular/compiler-cli": "^18.0.0",
@@ -13,6 +13,9 @@ export default defineConfig(({ mode }) => ({
13
13
  },
14
14
  plugins: [
15
15
  analog({
16
+ content: {
17
+ highlighter: '__CONTENT_HIGHLIGHTER__',
18
+ },
16
19
  prerender: {
17
20
  routes: ['/blog', '/blog/2022-12-27-my-first-post'],
18
21
  },
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "private": true,
17
17
  "dependencies": {
18
- "@analogjs/content": "^1.5.1-beta.1",
19
- "@analogjs/router": "^1.5.1-beta.1",
18
+ "@analogjs/content": "^1.6.0-beta.1",
19
+ "@analogjs/router": "^1.6.0-beta.1",
20
20
  "@angular/animations": "^18.0.0",
21
21
  "@angular/common": "^18.0.0",
22
22
  "@angular/compiler": "^18.0.0",
@@ -37,8 +37,8 @@
37
37
  "zone.js": "~0.14.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@analogjs/platform": "^1.5.1-beta.1",
41
- "@analogjs/vite-plugin-angular": "^1.5.1-beta.1",
40
+ "@analogjs/platform": "^1.6.0-beta.1",
41
+ "@analogjs/vite-plugin-angular": "^1.6.0-beta.1",
42
42
  "@angular-devkit/build-angular": "^18.0.0",
43
43
  "@angular/cli": "^18.0.0",
44
44
  "@angular/compiler-cli": "^18.0.0",