create-analog 2.0.0-alpha.1 → 2.0.0-alpha.11

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
@@ -42,7 +42,7 @@ const HIGHLIGHTERS = {
42
42
  highlighter: 'withPrismHighlighter',
43
43
  entryPoint: 'prism-highlighter',
44
44
  dependencies: {
45
- 'marked-highlight': '^2.0.1',
45
+ 'marked-highlight': '^2.2.1',
46
46
  prismjs: '^1.29.0',
47
47
  },
48
48
  },
@@ -50,7 +50,7 @@ const HIGHLIGHTERS = {
50
50
  highlighter: 'withShikiHighlighter',
51
51
  entryPoint: 'shiki-highlighter',
52
52
  dependencies: {
53
- marked: '^7.0.0',
53
+ marked: '^15.0.7',
54
54
  'marked-shiki': '^1.1.0',
55
55
  shiki: '^1.6.1',
56
56
  },
@@ -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`);
@@ -211,15 +211,20 @@ 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
 
217
+ replacePlaceholders(root, 'vite.config.ts', {
218
+ __TAILWIND_IMPORT__: !skipTailwind
219
+ ? `\nimport tailwindcss from '@tailwindcss/vite';`
220
+ : '',
221
+ __TAILWIND_PLUGIN__: !skipTailwind ? '\n tailwindcss()' : '',
222
+ });
223
+
219
224
  const pkgInfo = pkgFromUserAgent(process.env.npm_config_user_agent);
220
225
  const pkgManager = pkgInfo ? pkgInfo.name : 'npm';
221
226
  const pkg = JSON.parse(
222
- fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8')
227
+ fs.readFileSync(path.join(templateDir, `package.json`), 'utf-8'),
223
228
  );
224
229
 
225
230
  pkg.name = packageName || getProjectName();
@@ -230,7 +235,7 @@ async function init() {
230
235
  }
231
236
 
232
237
  if (!skipTailwind) {
233
- addTailwindDevDependencies(pkg);
238
+ addTailwindDependencies(pkg);
234
239
  }
235
240
 
236
241
  if (pkgManager === 'yarn') {
@@ -284,7 +289,7 @@ function copy(src, dest) {
284
289
  */
285
290
  function isValidPackageName(projectName) {
286
291
  return /^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(
287
- projectName
292
+ projectName,
288
293
  );
289
294
  }
290
295
 
@@ -366,40 +371,23 @@ function getStartCommand(pkgManager) {
366
371
  function addTailwindDirectives(write, filesDir) {
367
372
  write(
368
373
  'src/styles.css',
369
- fs.readFileSync(path.join(filesDir, `styles.css`), 'utf-8')
370
- );
371
- }
372
-
373
- function addPostCssConfig(write, filesDir) {
374
- write(
375
- 'postcss.config.cjs',
376
- fs.readFileSync(path.join(filesDir, `postcss.config.cjs`), 'utf-8')
374
+ fs.readFileSync(path.join(filesDir, `styles.css`), 'utf-8'),
377
375
  );
378
376
  }
379
377
 
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
- );
378
+ function addTailwindDependencies(pkg) {
379
+ pkg.dependencies['tailwindcss'] = '^4.1.4';
380
+ pkg.dependencies['postcss'] = '^8.5.3';
381
+ pkg.dependencies['@tailwindcss/vite'] = '^4.1.4';
394
382
  }
395
383
 
396
384
  function addYarnDevDependencies(pkg, template) {
397
385
  // v18
398
- if (template === 'latest' || template === 'blog') {
399
- pkg.devDependencies['@nx/angular'] = '^19.1.0';
400
- pkg.devDependencies['@nx/devkit'] = '^19.1.0';
401
- pkg.devDependencies['@nx/vite'] = '^19.1.0';
402
- pkg.devDependencies['nx'] = '^19.1.0';
386
+ if (template === 'latest' || template === 'blog' || template === 'minimal') {
387
+ pkg.devDependencies['@nx/angular'] = '^21.0.0';
388
+ pkg.devDependencies['@nx/devkit'] = '^21.0.0';
389
+ pkg.devDependencies['@nx/vite'] = '^21.0.0';
390
+ pkg.devDependencies['nx'] = '^21.0.0';
403
391
  } else if (template === 'angular-v17') {
404
392
  pkg.devDependencies['@angular-devkit/build-angular'] = '^17.2.0';
405
393
  }
@@ -472,7 +460,7 @@ function setComponentFormat(root, filesDir, write, template, useAnalogSFC) {
472
460
  if (useAnalogSFC) {
473
461
  write(
474
462
  'src/analog-env.d.ts',
475
- fs.readFileSync(path.join(filesDir, 'analog-env.d.ts'), 'utf-8')
463
+ fs.readFileSync(path.join(filesDir, 'analog-env.d.ts'), 'utf-8'),
476
464
  );
477
465
  }
478
466
  }
@@ -484,7 +472,7 @@ function replacePlaceholders(root, files, config) {
484
472
  const newFileContent = Object.keys(config).reduce(
485
473
  (content, placeholder) =>
486
474
  content.replace(RegExp(placeholder, 'g'), config[placeholder]),
487
- fileContent
475
+ fileContent,
488
476
  );
489
477
  fs.writeFileSync(filePath, newFileContent);
490
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-analog",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.11",
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.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
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": "^5.0.2",
32
- "marked-gfm-heading-id": "^3.1.0",
33
- "marked-highlight": "^2.0.1",
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.1",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
41
+ "@analogjs/platform": "^2.0.0-alpha.11",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
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.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
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": "^5.0.2",
32
- "marked-gfm-heading-id": "^3.1.0",
33
- "marked-highlight": "^2.0.1",
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.1",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
41
+ "@analogjs/platform": "^2.0.0-alpha.11",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
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.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
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": "^5.0.2",
32
- "marked-gfm-heading-id": "^3.1.0",
33
- "marked-highlight": "^2.0.1",
34
- "marked-mangle": "^1.1.7",
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.1",
42
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
43
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
41
+ "@analogjs/platform": "^2.0.0-alpha.11",
42
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
43
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
44
44
  "@angular/cli": "^18.0.0",
45
45
  "@angular/compiler-cli": "^18.0.0",
46
46
  "jsdom": "^22.0.0",
@@ -5,7 +5,7 @@
5
5
  "projects": {
6
6
  "blog": {
7
7
  "projectType": "application",
8
- "root": "",
8
+ "root": ".",
9
9
  "sourceRoot": "src",
10
10
  "prefix": "blog",
11
11
  "architect": {
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "private": true,
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
20
20
  "@angular/animations": "^19.0.0",
21
21
  "@angular/common": "^19.0.0",
22
22
  "@angular/compiler": "^19.0.0",
@@ -27,26 +27,26 @@
27
27
  "@angular/platform-server": "^19.0.0",
28
28
  "@angular/router": "^19.0.0",
29
29
  "front-matter": "^4.0.2",
30
- "marked": "^5.0.2",
31
- "marked-gfm-heading-id": "^3.1.0",
32
- "marked-highlight": "^2.0.1",
33
- "marked-mangle": "^1.1.7",
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.1",
40
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
41
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
39
+ "@analogjs/platform": "^2.0.0-alpha.11",
40
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
41
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
42
42
  "@angular-devkit/build-angular": "^19.0.0",
43
43
  "@angular/build": "^19.0.0",
44
44
  "@angular/cli": "^19.0.0",
45
45
  "@angular/compiler-cli": "^19.0.0",
46
46
  "jsdom": "^22.0.0",
47
- "typescript": "~5.5.0",
47
+ "typescript": "~5.8.0",
48
48
  "vite": "^6.0.0",
49
49
  "vite-tsconfig-paths": "^4.2.0",
50
- "vitest": "^2.0.0"
50
+ "vitest": "^3.0.0"
51
51
  }
52
52
  }
@@ -1,32 +1,8 @@
1
1
  import 'zone.js/node';
2
2
  import '@angular/platform-server/init';
3
- import { enableProdMode } from '@angular/core';
4
- import { bootstrapApplication } from '@angular/platform-browser';
5
- import { renderApplication } from '@angular/platform-server';
6
- import { provideServerContext } from '@analogjs/router/server';
7
- import { ServerContext } from '@analogjs/router/tokens';
3
+ import { render } from '@analogjs/router/server';
8
4
 
9
5
  __APP_COMPONENT_IMPORT__
10
6
  import { config } from './app/app.config.server';
11
7
 
12
- if (import.meta.env.PROD) {
13
- enableProdMode();
14
- }
15
-
16
- export function bootstrap() {
17
- return bootstrapApplication(__APP_COMPONENT__, config);
18
- }
19
-
20
- export default async function render(
21
- url: string,
22
- document: string,
23
- serverContext: ServerContext
24
- ) {
25
- const html = await renderApplication(bootstrap, {
26
- document,
27
- url,
28
- platformProviders: [provideServerContext(serverContext)],
29
- });
30
-
31
- return html;
32
- }
8
+ export default render(__APP_COMPONENT__, config);
@@ -14,7 +14,7 @@
14
14
  "declaration": false,
15
15
  "downlevelIteration": true,
16
16
  "experimentalDecorators": true,
17
- "moduleResolution": "node",
17
+ "moduleResolution": "bundler",
18
18
  "isolatedModules": true,
19
19
  "importHelpers": true,
20
20
  "target": "ES2022",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="vitest" />
2
2
 
3
3
  import { defineConfig } from 'vite';
4
- import analog from '@analogjs/platform';
4
+ import analog from '@analogjs/platform';__TAILWIND_IMPORT__
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig(({ mode }) => ({
@@ -19,7 +19,7 @@ export default defineConfig(({ mode }) => ({
19
19
  prerender: {
20
20
  routes: ['/blog', '/blog/2022-12-27-my-first-post'],
21
21
  },__ANALOG_SFC_CONFIG__
22
- }),
22
+ }),__TAILWIND_PLUGIN__
23
23
  ],
24
24
  test: {
25
25
  globals: true,
@@ -5,7 +5,7 @@
5
5
  "projects": {
6
6
  "my-app": {
7
7
  "projectType": "application",
8
- "root": "",
8
+ "root": ".",
9
9
  "sourceRoot": "src",
10
10
  "prefix": "app",
11
11
  "architect": {
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "private": true,
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
20
20
  "@angular/animations": "^19.0.0",
21
21
  "@angular/common": "^19.0.0",
22
22
  "@angular/compiler": "^19.0.0",
@@ -27,27 +27,27 @@
27
27
  "@angular/platform-server": "^19.0.0",
28
28
  "@angular/router": "^19.0.0",
29
29
  "front-matter": "^4.0.2",
30
- "marked": "^5.0.2",
31
- "marked-gfm-heading-id": "^3.1.0",
32
- "marked-highlight": "^2.0.1",
33
- "marked-mangle": "^1.1.7",
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.1",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
40
+ "@analogjs/platform": "^2.0.0-alpha.11",
41
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
42
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
43
43
  "@angular-devkit/build-angular": "^19.0.0",
44
44
  "@angular/build": "^19.0.0",
45
45
  "@angular/cli": "^19.0.0",
46
46
  "@angular/compiler-cli": "^19.0.0",
47
47
  "jsdom": "^22.0.0",
48
- "typescript": "~5.5.0",
48
+ "typescript": "~5.8.0",
49
49
  "vite": "^6.0.0",
50
50
  "vite-tsconfig-paths": "^4.2.0",
51
- "vitest": "^2.0.0"
51
+ "vitest": "^3.0.0"
52
52
  }
53
53
  }
@@ -1,32 +1,8 @@
1
1
  import 'zone.js/node';
2
2
  import '@angular/platform-server/init';
3
- import { enableProdMode } from '@angular/core';
4
- import { bootstrapApplication } from '@angular/platform-browser';
5
- import { renderApplication } from '@angular/platform-server';
6
- import { provideServerContext } from '@analogjs/router/server';
7
- import { ServerContext } from '@analogjs/router/tokens';
3
+ import { render } from '@analogjs/router/server';
8
4
 
9
5
  __APP_COMPONENT_IMPORT__
10
6
  import { config } from './app/app.config.server';
11
7
 
12
- if (import.meta.env.PROD) {
13
- enableProdMode();
14
- }
15
-
16
- export function bootstrap() {
17
- return bootstrapApplication(__APP_COMPONENT__, config);
18
- }
19
-
20
- export default async function render(
21
- url: string,
22
- document: string,
23
- serverContext: ServerContext
24
- ) {
25
- const html = await renderApplication(bootstrap, {
26
- document,
27
- url,
28
- platformProviders: [provideServerContext(serverContext)],
29
- });
30
-
31
- return html;
32
- }
8
+ export default render(__APP_COMPONENT__, config);
@@ -14,7 +14,7 @@
14
14
  "declaration": false,
15
15
  "downlevelIteration": true,
16
16
  "experimentalDecorators": true,
17
- "moduleResolution": "node",
17
+ "moduleResolution": "bundler",
18
18
  "isolatedModules": true,
19
19
  "importHelpers": true,
20
20
  "target": "ES2022",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="vitest" />
2
2
 
3
3
  import { defineConfig } from 'vite';
4
- import analog from '@analogjs/platform';
4
+ import analog from '@analogjs/platform';__TAILWIND_IMPORT__
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig(({ mode }) => ({
@@ -11,7 +11,9 @@ export default defineConfig(({ mode }) => ({
11
11
  resolve: {
12
12
  mainFields: ['module'],
13
13
  },
14
- plugins: [analog(__ANALOG_SFC_CONFIG__)],
14
+ plugins: [
15
+ analog(__ANALOG_SFC_CONFIG__),__TAILWIND_PLUGIN__
16
+ ],
15
17
  test: {
16
18
  globals: true,
17
19
  environment: 'jsdom',
@@ -5,7 +5,7 @@
5
5
  "projects": {
6
6
  "my-app": {
7
7
  "projectType": "application",
8
- "root": "",
8
+ "root": ".",
9
9
  "sourceRoot": "src",
10
10
  "prefix": "app",
11
11
  "architect": {
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "private": true,
17
17
  "dependencies": {
18
- "@analogjs/content": "^2.0.0-alpha.1",
19
- "@analogjs/router": "^2.0.0-alpha.1",
18
+ "@analogjs/content": "^2.0.0-alpha.11",
19
+ "@analogjs/router": "^2.0.0-alpha.11",
20
20
  "@angular/animations": "^19.0.0",
21
21
  "@angular/common": "^19.0.0",
22
22
  "@angular/compiler": "^19.0.0",
@@ -27,27 +27,27 @@
27
27
  "@angular/platform-server": "^19.0.0",
28
28
  "@angular/router": "^19.0.0",
29
29
  "front-matter": "^4.0.2",
30
- "marked": "^5.0.2",
31
- "marked-gfm-heading-id": "^3.1.0",
32
- "marked-highlight": "^2.0.1",
33
- "marked-mangle": "^1.1.7",
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.1",
41
- "@analogjs/vite-plugin-angular": "^2.0.0-alpha.1",
42
- "@analogjs/vitest-angular": "^2.0.0-alpha.1",
40
+ "@analogjs/platform": "^2.0.0-alpha.11",
41
+ "@analogjs/vite-plugin-angular": "^2.0.0-alpha.11",
42
+ "@analogjs/vitest-angular": "^2.0.0-alpha.11",
43
43
  "@angular-devkit/build-angular": "^19.0.0",
44
44
  "@angular/build": "^19.0.0",
45
45
  "@angular/cli": "^19.0.0",
46
46
  "@angular/compiler-cli": "^19.0.0",
47
47
  "jsdom": "^22.0.0",
48
- "typescript": "~5.5.0",
48
+ "typescript": "~5.8.0",
49
49
  "vite": "^6.0.0",
50
50
  "vite-tsconfig-paths": "^4.2.0",
51
- "vitest": "^2.0.0"
51
+ "vitest": "^3.0.0"
52
52
  }
53
53
  }
@@ -1,32 +1,8 @@
1
1
  import 'zone.js/node';
2
2
  import '@angular/platform-server/init';
3
- import { enableProdMode } from '@angular/core';
4
- import { bootstrapApplication } from '@angular/platform-browser';
5
- import { renderApplication } from '@angular/platform-server';
6
- import { provideServerContext } from '@analogjs/router/server';
7
- import { ServerContext } from '@analogjs/router/tokens';
3
+ import { render } from '@analogjs/router/server';
8
4
 
9
5
  __APP_COMPONENT_IMPORT__
10
6
  import { config } from './app/app.config.server';
11
7
 
12
- if (import.meta.env.PROD) {
13
- enableProdMode();
14
- }
15
-
16
- export function bootstrap() {
17
- return bootstrapApplication(__APP_COMPONENT__, config);
18
- }
19
-
20
- export default async function render(
21
- url: string,
22
- document: string,
23
- serverContext: ServerContext
24
- ) {
25
- const html = await renderApplication(bootstrap, {
26
- document,
27
- url,
28
- platformProviders: [provideServerContext(serverContext)],
29
- });
30
-
31
- return html;
32
- }
8
+ export default render(__APP_COMPONENT__, config);
@@ -14,7 +14,7 @@
14
14
  "declaration": false,
15
15
  "downlevelIteration": true,
16
16
  "experimentalDecorators": true,
17
- "moduleResolution": "node",
17
+ "moduleResolution": "bundler",
18
18
  "isolatedModules": true,
19
19
  "importHelpers": true,
20
20
  "target": "ES2022",
@@ -1,7 +1,7 @@
1
1
  /// <reference types="vitest" />
2
2
 
3
3
  import { defineConfig } from 'vite';
4
- import analog from '@analogjs/platform';
4
+ import analog from '@analogjs/platform';__TAILWIND_IMPORT__
5
5
 
6
6
  // https://vitejs.dev/config/
7
7
  export default defineConfig(({ mode }) => ({
@@ -17,7 +17,7 @@ export default defineConfig(({ mode }) => ({
17
17
  static: true,
18
18
  prerender: {
19
19
  routes: [],
20
- },__ANALOG_SFC_CONFIG__
21
- }),
20
+ },__ANALOG_SFC_CONFIG__,
21
+ }),__TAILWIND_PLUGIN__
22
22
  ],
23
23
  }));
@@ -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;