@analogjs/platform 3.0.0-alpha.18 → 3.0.0-alpha.19
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/package.json +4 -3
- package/src/lib/nx-plugin/executors.json +5 -0
- package/src/lib/nx-plugin/src/generators/app/files/template-angular/src/test-setup.ts__template__ +1 -0
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.d.ts +5 -5
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/test-files/src/test-setup.ts__template__ +1 -0
- package/src/lib/nx-plugin/src/generators/preset/__snapshots__/generator.spec.ts.snap +2 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/files/src/test-setup.ts__template__ +1 -0
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.d.ts +5 -5
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js +5 -5
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@analogjs/platform",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.19",
|
|
4
4
|
"description": "The fullstack meta-framework for Angular",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Brandon Roberts <robertsbt@gmail.com>",
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
"url": "https://github.com/sponsors/brandonroberts"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@analogjs/vite-plugin-angular": "^3.0.0-alpha.19",
|
|
32
|
+
"@analogjs/vite-plugin-nitro": "^3.0.0-alpha.19",
|
|
31
33
|
"front-matter": "^4.0.2",
|
|
32
34
|
"tinyglobby": "^0.2.15",
|
|
33
35
|
"nitro": "3.0.260311-beta",
|
|
34
|
-
"@analogjs/vite-plugin-angular": "^3.0.0-alpha.18",
|
|
35
|
-
"@analogjs/vite-plugin-nitro": "^3.0.0-alpha.18",
|
|
36
36
|
"rolldown": "^1.0.0-rc.11",
|
|
37
|
+
"nitropack": "^2.13.1",
|
|
37
38
|
"vitefu": "^1.1.2"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"builders": {
|
|
3
|
+
"vite-dev-server": "@analogjs/vite-plugin-angular:vite-dev-server",
|
|
4
|
+
"vite": "@analogjs/vite-plugin-angular:vite",
|
|
5
|
+
"vitest": "@analogjs/vitest-angular:test"
|
|
6
|
+
},
|
|
2
7
|
"executors": {
|
|
3
8
|
"vite-dev-server": {
|
|
4
9
|
"implementation": "./src/executors/vite-dev-server/vite-dev-server.impl",
|
package/src/lib/nx-plugin/src/generators/app/files/template-angular/src/test-setup.ts__template__
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<% if (majorAngularVersion > 20) { %>
|
|
2
2
|
import '@angular/compiler';
|
|
3
3
|
import '@analogjs/vitest-angular/setup-snapshots';
|
|
4
|
+
import '@analogjs/vitest-angular/setup-serializers';
|
|
4
5
|
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|
5
6
|
|
|
6
7
|
setupTestBed();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const V18_X_NX_DEVKIT = "^20.0.0";
|
|
2
2
|
export declare const V18_X_NX_ANGULAR = "^20.0.0";
|
|
3
|
-
export declare const V18_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.
|
|
4
|
-
export declare const V18_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.
|
|
5
|
-
export declare const V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.
|
|
6
|
-
export declare const V18_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.
|
|
3
|
+
export declare const V18_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.19";
|
|
4
|
+
export declare const V18_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.19";
|
|
5
|
+
export declare const V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.19";
|
|
6
|
+
export declare const V18_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.19";
|
|
7
7
|
export declare const V18_X_FRONT_MATTER = "^4.0.2";
|
|
8
8
|
export declare const V18_X_MARKED = "^15.0.7";
|
|
9
9
|
export declare const V18_X_MARKED_GFM_HEADING_ID = "^4.1.1";
|
|
@@ -13,7 +13,7 @@ export declare const V18_X_MERMAID = "^10.2.4";
|
|
|
13
13
|
export declare const V18_X_PRISMJS = "^1.29.0";
|
|
14
14
|
export declare const V18_X_TAILWINDCSS = "^4.2.2";
|
|
15
15
|
export declare const V18_X_TAILWINDCSS_VITE = "^4.2.2";
|
|
16
|
-
export declare const V18_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.
|
|
16
|
+
export declare const V18_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.19";
|
|
17
17
|
export declare const V18_X_ANGULAR_DEVKIT_BUILD_ANGULAR = "^19.0.0";
|
|
18
18
|
export declare const V18_X_NX_VITE = "^21.0.0";
|
|
19
19
|
export declare const V18_X_NX_LINTER = "^21.0.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../../nx-plugin/src/generators/app/versions/nx_18_X/versions.ts"],"sourcesContent":["// V18_X\n// dependencies\nexport const V18_X_NX_DEVKIT = '^20.0.0';\nexport const V18_X_NX_ANGULAR = '^20.0.0';\nexport const V18_X_ANALOG_JS_CONTENT = '^3.0.0-alpha.
|
|
1
|
+
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../../nx-plugin/src/generators/app/versions/nx_18_X/versions.ts"],"sourcesContent":["// V18_X\n// dependencies\nexport const V18_X_NX_DEVKIT = '^20.0.0';\nexport const V18_X_NX_ANGULAR = '^20.0.0';\nexport const V18_X_ANALOG_JS_CONTENT = '^3.0.0-alpha.19';\nexport const V18_X_ANALOG_JS_ROUTER = '^3.0.0-alpha.19';\nexport const V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^3.0.0-alpha.19';\nexport const V18_X_ANALOG_JS_VITEST_ANGULAR = '^3.0.0-alpha.19';\nexport const V18_X_FRONT_MATTER = '^4.0.2';\nexport const V18_X_MARKED = '^15.0.7';\nexport const V18_X_MARKED_GFM_HEADING_ID = '^4.1.1';\nexport const V18_X_MARKED_HIGHLIGHT = '^2.2.1';\nexport const V18_X_MARKED_MANGLE = '^1.1.10';\nexport const V18_X_MERMAID = '^10.2.4';\nexport const V18_X_PRISMJS = '^1.29.0';\nexport const V18_X_TAILWINDCSS = '^4.2.2';\nexport const V18_X_TAILWINDCSS_VITE = '^4.2.2';\n\n// devDependencies\nexport const V18_X_ANALOG_JS_PLATFORM = '^3.0.0-alpha.19';\nexport const V18_X_ANGULAR_DEVKIT_BUILD_ANGULAR = '^19.0.0';\nexport const V18_X_NX_VITE = '^21.0.0';\nexport const V18_X_NX_LINTER = '^21.0.0';\nexport const V18_X_JSDOM = '^22.1.0';\nexport const V18_X_VITE = '^8.0.0';\nexport const V18_X_VITE_TSCONFIG_PATHS = '^4.2.0';\nexport const V18_X_VITEST = '^4.0.0';\nexport const V18_X_ZOD = '^3.21.4';\n"],"mappings":";AAeA,IAAa,oBAAoB;AACjC,IAAa,yBAAyB"}
|
|
@@ -8,7 +8,7 @@ function updateIndex(tree, schema) {
|
|
|
8
8
|
if (tree.exists(indexPath)) {
|
|
9
9
|
const indexContents = tree.read(indexPath, "utf-8");
|
|
10
10
|
if (!indexContents) return;
|
|
11
|
-
let updatedIndex = indexContents.replace("</body>", `<script type="module" src="
|
|
11
|
+
let updatedIndex = indexContents.replace("</body>", `<script type="module" src="/src/main.ts"><\/script></body>`);
|
|
12
12
|
updatedIndex = updatedIndex.replace(`"favicon.ico"`, `"/favicon.ico"`);
|
|
13
13
|
tree.write(indexPath, updatedIndex);
|
|
14
14
|
tree.rename(indexPath, newIndexPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-index-html.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/generators/init/lib/update-index-html.ts"],"sourcesContent":["import { Tree, getProjects, joinPathFragments } from '@nx/devkit';\n\nimport { SetupAnalogGeneratorSchema } from '../schema';\n\nexport function updateIndex(\n tree: Tree,\n schema: SetupAnalogGeneratorSchema,\n): void {\n const projects = getProjects(tree);\n const projectConfig = projects.get(schema.project);\n\n if (!projectConfig) {\n throw new Error(`Project \"${schema.project}\" not found.`);\n }\n\n const indexPath = joinPathFragments(projectConfig.root, 'src/index.html');\n const newIndexPath = joinPathFragments(projectConfig.root, 'index.html');\n\n if (tree.exists(indexPath)) {\n const indexContents = tree.read(indexPath, 'utf-8');\n\n if (!indexContents) {\n return;\n }\n\n let updatedIndex = indexContents.replace(\n '</body>',\n `<script type=\"module\" src=\"
|
|
1
|
+
{"version":3,"file":"update-index-html.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/generators/init/lib/update-index-html.ts"],"sourcesContent":["import { Tree, getProjects, joinPathFragments } from '@nx/devkit';\n\nimport { SetupAnalogGeneratorSchema } from '../schema';\n\nexport function updateIndex(\n tree: Tree,\n schema: SetupAnalogGeneratorSchema,\n): void {\n const projects = getProjects(tree);\n const projectConfig = projects.get(schema.project);\n\n if (!projectConfig) {\n throw new Error(`Project \"${schema.project}\" not found.`);\n }\n\n const indexPath = joinPathFragments(projectConfig.root, 'src/index.html');\n const newIndexPath = joinPathFragments(projectConfig.root, 'index.html');\n\n if (tree.exists(indexPath)) {\n const indexContents = tree.read(indexPath, 'utf-8');\n\n if (!indexContents) {\n return;\n }\n\n let updatedIndex = indexContents.replace(\n '</body>',\n `<script type=\"module\" src=\"/src/main.ts\"></script></body>`,\n );\n updatedIndex = updatedIndex.replace(`\"favicon.ico\"`, `\"/favicon.ico\"`);\n tree.write(indexPath, updatedIndex);\n tree.rename(indexPath, newIndexPath);\n }\n}\n"],"mappings":";;AAIA,SAAgB,YACd,MACA,QACM;CAEN,MAAM,iBAAA,GAAA,WAAA,aADuB,KAAK,CACH,IAAI,OAAO,QAAQ;AAElD,KAAI,CAAC,cACH,OAAM,IAAI,MAAM,YAAY,OAAO,QAAQ,cAAc;CAG3D,MAAM,aAAA,GAAA,WAAA,mBAA8B,cAAc,MAAM,iBAAiB;CACzE,MAAM,gBAAA,GAAA,WAAA,mBAAiC,cAAc,MAAM,aAAa;AAExE,KAAI,KAAK,OAAO,UAAU,EAAE;EAC1B,MAAM,gBAAgB,KAAK,KAAK,WAAW,QAAQ;AAEnD,MAAI,CAAC,cACH;EAGF,IAAI,eAAe,cAAc,QAC/B,WACA,6DACD;AACD,iBAAe,aAAa,QAAQ,iBAAiB,iBAAiB;AACtE,OAAK,MAAM,WAAW,aAAa;AACnC,OAAK,OAAO,WAAW,aAAa"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<% if (majorAngularVersion > 20) { %>
|
|
2
2
|
import '@angular/compiler';
|
|
3
3
|
import '@analogjs/vitest-angular/setup-snapshots';
|
|
4
|
+
import '@analogjs/vitest-angular/setup-serializers';
|
|
4
5
|
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|
5
6
|
|
|
6
7
|
setupTestBed();
|
|
@@ -13,7 +13,7 @@ exports[`preset generator > should match index.html 1`] = `
|
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<app-root></app-root>
|
|
16
|
-
<script type="module" src="/
|
|
16
|
+
<script type="module" src="/src/main.ts"></script>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
19
19
|
"
|
|
@@ -89,6 +89,7 @@ exports[`preset generator > should match project.json 1`] = `
|
|
|
89
89
|
exports[`preset generator > should match src/test-setup.ts 1`] = `
|
|
90
90
|
"import '@angular/compiler';
|
|
91
91
|
import '@analogjs/vitest-angular/setup-snapshots';
|
|
92
|
+
import '@analogjs/vitest-angular/setup-serializers';
|
|
92
93
|
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|
93
94
|
|
|
94
95
|
setupTestBed();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<% if (majorAngularVersion > 20) { %>
|
|
2
2
|
import '@angular/compiler';
|
|
3
3
|
import '@analogjs/vitest-angular/setup-snapshots';
|
|
4
|
+
import '@analogjs/vitest-angular/setup-serializers';
|
|
4
5
|
import { setupTestBed } from '@analogjs/vitest-angular/setup-testbed';
|
|
5
6
|
|
|
6
7
|
setupTestBed();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export declare const V19_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.
|
|
2
|
-
export declare const V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.
|
|
1
|
+
export declare const V19_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.19";
|
|
2
|
+
export declare const V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.19";
|
|
3
3
|
export declare const V19_X_MARKED = "^15.0.7";
|
|
4
4
|
export declare const V19_X_MARKED_GFM_HEADING_ID = "^4.1.1";
|
|
5
5
|
export declare const V19_X_MARKED_HIGHLIGHT = "^2.2.1";
|
|
6
6
|
export declare const V19_X_MARKED_MANGLE = "^1.1.10";
|
|
7
7
|
export declare const V19_X_PRISMJS = "^1.29.0";
|
|
8
|
-
export declare const V19_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.
|
|
9
|
-
export declare const V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.
|
|
10
|
-
export declare const V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.
|
|
8
|
+
export declare const V19_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.19";
|
|
9
|
+
export declare const V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.19";
|
|
10
|
+
export declare const V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.19";
|
|
11
11
|
export declare const V19_X_NX_ANGULAR = "^22.0.0";
|
|
12
12
|
export declare const V19_X_NX_VITE = "^22.0.0";
|
|
13
13
|
export declare const V19_X_JSDOM = "^22.0.0";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
//#region packages/nx-plugin/src/utils/versions/ng_19_X/versions.ts
|
|
2
|
-
var V19_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.
|
|
3
|
-
var V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.
|
|
2
|
+
var V19_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.19";
|
|
3
|
+
var V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.19";
|
|
4
4
|
var V19_X_MARKED = "^15.0.7";
|
|
5
5
|
var V19_X_MARKED_GFM_HEADING_ID = "^4.1.1";
|
|
6
6
|
var V19_X_MARKED_HIGHLIGHT = "^2.2.1";
|
|
7
7
|
var V19_X_MARKED_MANGLE = "^1.1.10";
|
|
8
8
|
var V19_X_PRISMJS = "^1.29.0";
|
|
9
|
-
var V19_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.
|
|
10
|
-
var V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.
|
|
11
|
-
var V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.
|
|
9
|
+
var V19_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.19";
|
|
10
|
+
var V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.19";
|
|
11
|
+
var V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.19";
|
|
12
12
|
var V19_X_NX_VITE = "^22.0.0";
|
|
13
13
|
var V19_X_JSDOM = "^22.0.0";
|
|
14
14
|
var V19_X_VITE_TSCONFIG_PATHS = "^4.2.0";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/utils/versions/ng_19_X/versions.ts"],"sourcesContent":["// V19_X\nexport const V19_X_ANALOG_JS_ROUTER = '^3.0.0-alpha.
|
|
1
|
+
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/utils/versions/ng_19_X/versions.ts"],"sourcesContent":["// V19_X\nexport const V19_X_ANALOG_JS_ROUTER = '^3.0.0-alpha.19';\nexport const V19_X_ANALOG_JS_CONTENT = '^3.0.0-alpha.19';\nexport const V19_X_MARKED = '^15.0.7';\nexport const V19_X_MARKED_GFM_HEADING_ID = '^4.1.1';\nexport const V19_X_MARKED_HIGHLIGHT = '^2.2.1';\nexport const V19_X_MARKED_MANGLE = '^1.1.10';\nexport const V19_X_PRISMJS = '^1.29.0';\n\n// devDependencies\nexport const V19_X_ANALOG_JS_PLATFORM = '^3.0.0-alpha.19';\nexport const V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^3.0.0-alpha.19';\nexport const V19_X_ANALOG_JS_VITEST_ANGULAR = '^3.0.0-alpha.19';\nexport const V19_X_NX_ANGULAR = '^22.0.0';\nexport const V19_X_NX_VITE = '^22.0.0';\nexport const V19_X_JSDOM = '^22.0.0';\nexport const V19_X_VITE_TSCONFIG_PATHS = '^4.2.0';\nexport const V19_X_VITEST = '^3.0.0';\nexport const V19_X_VITE = '^6.0.0';\nexport const NX_X_LATEST_VITE = '^8.0.0';\nexport const NX_X_LATEST_VITEST = '^4.0.0';\n"],"mappings":";AACA,IAAa,yBAAyB;AACtC,IAAa,0BAA0B;AACvC,IAAa,eAAe;AAC5B,IAAa,8BAA8B;AAC3C,IAAa,yBAAyB;AACtC,IAAa,sBAAsB;AACnC,IAAa,gBAAgB;AAG7B,IAAa,2BAA2B;AACxC,IAAa,sCAAsC;AACnD,IAAa,iCAAiC;AAE9C,IAAa,gBAAgB;AAC7B,IAAa,cAAc;AAC3B,IAAa,4BAA4B;AACzC,IAAa,eAAe;AAC5B,IAAa,aAAa;AAC1B,IAAa,mBAAmB;AAChC,IAAa,qBAAqB"}
|