@analogjs/platform 3.0.0-alpha.6 → 3.0.0-alpha.60
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/migrations/migration.json +7 -1
- package/package.json +33 -20
- package/src/index.d.ts +11 -2
- package/src/index.js +12 -3
- package/src/index.js.map +1 -0
- package/src/lib/clear-client-page-endpoint.d.ts +2 -2
- package/src/lib/clear-client-page-endpoint.js +22 -32
- package/src/lib/clear-client-page-endpoint.js.map +1 -0
- package/src/lib/content/marked/index.d.ts +5 -5
- package/src/lib/content/marked/index.js +10 -6
- package/src/lib/content/marked/index.js.map +1 -0
- package/src/lib/content/marked/marked-content-highlighter.d.ts +2 -2
- package/src/lib/content/marked/marked-content-highlighter.js +6 -3
- package/src/lib/content/marked/marked-content-highlighter.js.map +1 -0
- package/src/lib/content/marked/marked-setup.service.d.ts +8 -8
- package/src/lib/content/marked/marked-setup.service.js +44 -54
- package/src/lib/content/marked/marked-setup.service.js.map +1 -0
- package/src/lib/content/prism/angular.js +18 -19
- package/src/lib/content/prism/angular.js.map +1 -0
- package/src/lib/content/prism/index.d.ts +1 -1
- package/src/lib/content/prism/index.js +10 -7
- package/src/lib/content/prism/index.js.map +1 -0
- package/src/lib/content/prism/options.d.ts +1 -1
- package/src/lib/content/prism/prism-highlighter.d.ts +5 -5
- package/src/lib/content/prism/prism-highlighter.js +33 -33
- package/src/lib/content/prism/prism-highlighter.js.map +1 -0
- package/src/lib/content/shiki/index.d.ts +3 -3
- package/src/lib/content/shiki/index.js +22 -28
- package/src/lib/content/shiki/index.js.map +1 -0
- package/src/lib/content/shiki/options.d.ts +8 -7
- package/src/lib/content/shiki/shiki-highlighter.d.ts +14 -13
- package/src/lib/content/shiki/shiki-highlighter.js +49 -43
- package/src/lib/content/shiki/shiki-highlighter.js.map +1 -0
- package/src/lib/content-plugin.d.ts +19 -19
- package/src/lib/content-plugin.js +181 -196
- package/src/lib/content-plugin.js.map +1 -0
- package/src/lib/deps-plugin.d.ts +2 -2
- package/src/lib/deps-plugin.js +77 -82
- package/src/lib/deps-plugin.js.map +1 -0
- package/src/lib/discover-library-routes.d.ts +22 -0
- package/src/lib/discover-library-routes.js +75 -0
- package/src/lib/discover-library-routes.js.map +1 -0
- package/src/lib/i18n-component-registry-plugin.d.ts +17 -0
- package/src/lib/i18n-component-registry-plugin.js +100 -0
- package/src/lib/i18n-component-registry-plugin.js.map +1 -0
- package/src/lib/i18n-extract-plugin.d.ts +33 -0
- package/src/lib/json-ld-manifest-plugin.d.ts +41 -0
- package/src/lib/json-ld-manifest-plugin.js +84 -0
- package/src/lib/json-ld-manifest-plugin.js.map +1 -0
- package/src/lib/nitro/analog-nitro-plugin.d.ts +8 -0
- package/src/lib/nitro/analog-nitro-plugin.js +502 -0
- package/src/lib/nitro/analog-nitro-plugin.js.map +1 -0
- package/src/lib/nitro/angular-linker-plugin.d.ts +17 -0
- package/src/lib/nitro/angular-linker-plugin.js +51 -0
- package/src/lib/nitro/angular-linker-plugin.js.map +1 -0
- package/src/lib/nitro/build-sitemap.d.ts +23 -0
- package/src/lib/nitro/build-sitemap.js +137 -0
- package/src/lib/nitro/build-sitemap.js.map +1 -0
- package/src/lib/nitro/debug.d.ts +5 -0
- package/src/lib/nitro/debug.js +11 -0
- package/src/lib/nitro/debug.js.map +1 -0
- package/src/lib/nitro/get-content-files.d.ts +13 -0
- package/src/lib/nitro/get-content-files.js +52 -0
- package/src/lib/nitro/get-content-files.js.map +1 -0
- package/src/lib/nitro/get-page-handlers.d.ts +23 -0
- package/src/lib/nitro/get-page-handlers.js +34 -0
- package/src/lib/nitro/get-page-handlers.js.map +1 -0
- package/src/lib/nitro/i18n-prerender.d.ts +29 -0
- package/src/lib/nitro/i18n-prerender.js +61 -0
- package/src/lib/nitro/i18n-prerender.js.map +1 -0
- package/src/lib/nitro/page-endpoints-plugin.d.ts +7 -0
- package/src/lib/nitro/page-endpoints-plugin.js +72 -0
- package/src/lib/nitro/page-endpoints-plugin.js.map +1 -0
- package/src/lib/nitro/post-rendering-hook.d.ts +2 -0
- package/src/lib/nitro/post-rendering-hook.js +10 -0
- package/src/lib/nitro/post-rendering-hook.js.map +1 -0
- package/src/lib/nitro/renderers.d.ts +53 -0
- package/src/lib/nitro/renderers.js +22 -0
- package/src/lib/nitro/renderers.js.map +1 -0
- package/src/lib/nitro/types.d.ts +122 -0
- package/src/lib/nx-plugin/_virtual/_rolldown/runtime.js +23 -0
- package/src/lib/nx-plugin/builders.json +15 -0
- package/src/lib/nx-plugin/executors.json +13 -5
- package/src/lib/nx-plugin/generators.json +25 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.js +13 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.js.map +1 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.js +8 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.js.map +1 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.js +9 -0
- package/src/lib/nx-plugin/node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.js.map +1 -0
- package/src/lib/nx-plugin/package.json +1 -5
- package/src/lib/nx-plugin/src/builders/vite/schema.json +39 -0
- package/src/lib/nx-plugin/src/builders/vite/vite-build.d.ts +11 -0
- package/src/lib/nx-plugin/src/builders/vite/vite-build.js +18 -0
- package/src/lib/nx-plugin/src/builders/vite/vite-build.js.map +1 -0
- package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.d.ts +7 -0
- package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.js +14 -0
- package/src/lib/nx-plugin/src/builders/vite-dev-server/dev-server.js.map +1 -0
- package/src/lib/nx-plugin/src/builders/vite-dev-server/schema.json +27 -0
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js +7 -7
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/schema.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js +6 -4
- package/src/lib/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/compat.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/compat.js +7 -7
- package/src/lib/nx-plugin/src/executors/vitest/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/schema.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js +6 -4
- package/src/lib/nx-plugin/src/executors/vitest/vitest.impl.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/compat.d.ts +9 -3
- package/src/lib/nx-plugin/src/generators/app/compat.js +18 -7
- package/src/lib/nx-plugin/src/generators/app/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/files/root/tsconfig.base.json +3 -6
- 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/files/template-angular/tsconfig.app.json__template__ +1 -3
- package/src/lib/nx-plugin/src/generators/app/files/template-angular/tsconfig.json__template__ +2 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular/vite.config.ts__template__ +6 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/src/app/app.config.ts__template__ +0 -6
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/tsconfig.json__template__ +4 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v17/vite.config.ts__template__ +1 -21
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/src/app/app.config.ts__template__ +0 -6
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/tsconfig.json__template__ +4 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v18/vite.config.ts__template__ +2 -22
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/src/app/app.config.ts__template__ +0 -6
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/tsconfig.app.json__template__ +1 -3
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/tsconfig.json__template__ +4 -2
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v19/vite.config.ts__template__ +1 -12
- package/src/lib/nx-plugin/src/generators/app/generator.d.ts +11 -11
- package/src/lib/nx-plugin/src/generators/app/generator.js +79 -92
- package/src/lib/nx-plugin/src/generators/app/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js +73 -81
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-project-config.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.js +25 -58
- package/src/lib/nx-plugin/src/generators/app/lib/add-angular-app.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/add-files.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/add-files.js +16 -16
- package/src/lib/nx-plugin/src/generators/app/lib/add-files.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.js +15 -13
- package/src/lib/nx-plugin/src/generators/app/lib/add-home-page.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.d.ts +7 -7
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.js +19 -29
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-config.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.d.ts +4 -5
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js +61 -103
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.js +17 -20
- package/src/lib/nx-plugin/src/generators/app/lib/cleanup-files.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.js +15 -18
- package/src/lib/nx-plugin/src/generators/app/lib/update-index-html.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.d.ts +2 -3
- package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.js +7 -10
- package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.d.ts +0 -3
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.d.ts +1 -6
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.d.ts +12 -17
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js +11 -37
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js +11 -15
- package/src/lib/nx-plugin/src/generators/app/versions/tailwind-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/app/versions.d.ts +0 -28
- package/src/lib/nx-plugin/src/generators/init/compat.d.ts +9 -3
- package/src/lib/nx-plugin/src/generators/init/compat.js +18 -7
- package/src/lib/nx-plugin/src/generators/init/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/files/vite.config.ts__template__ +2 -6
- package/src/lib/nx-plugin/src/generators/init/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/init/generator.js +55 -65
- package/src/lib/nx-plugin/src/generators/init/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.js +20 -20
- package/src/lib/nx-plugin/src/generators/init/lib/add-analog-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js +21 -21
- package/src/lib/nx-plugin/src/generators/init/lib/update-app-tsconfig.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.js +57 -66
- package/src/lib/nx-plugin/src/generators/init/lib/update-build-target.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.js +12 -11
- package/src/lib/nx-plugin/src/generators/init/lib/update-git-ignore.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js +18 -21
- package/src/lib/nx-plugin/src/generators/init/lib/update-index-html.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-main.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-main.js +13 -15
- package/src/lib/nx-plugin/src/generators/init/lib/update-main.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.js +20 -31
- package/src/lib/nx-plugin/src/generators/init/lib/update-package-json.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.js +44 -51
- package/src/lib/nx-plugin/src/generators/init/lib/update-serve-target.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.js +28 -34
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-target.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.js +20 -20
- package/src/lib/nx-plugin/src/generators/init/lib/update-test-tsconfig.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/page/__snapshots__/generator.spec.ts.snap +0 -7
- package/src/lib/nx-plugin/src/generators/page/compat.d.ts +9 -0
- package/src/lib/nx-plugin/src/generators/page/compat.js +19 -0
- package/src/lib/nx-plugin/src/generators/page/compat.js.map +1 -0
- package/src/lib/nx-plugin/src/generators/page/files/__fileName__.page.ts__template__ +0 -1
- package/src/lib/nx-plugin/src/generators/page/generator.d.ts +3 -4
- package/src/lib/nx-plugin/src/generators/page/generator.js +35 -44
- package/src/lib/nx-plugin/src/generators/page/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/preset/__snapshots__/generator.spec.ts.snap +5 -4
- package/src/lib/nx-plugin/src/generators/preset/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/preset/generator.js +18 -43
- package/src/lib/nx-plugin/src/generators/preset/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.d.ts +9 -3
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js +18 -7
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/files/src/test-setup.ts__template__ +1 -0
- package/src/lib/nx-plugin/src/generators/setup-vitest/files/vite.config.mts__template__ +0 -6
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js +33 -42
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.d.ts +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js +8 -7
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/add-analog-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.js +21 -27
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-test-target.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.d.ts +2 -2
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js +20 -22
- package/src/lib/nx-plugin/src/generators/setup-vitest/lib/update-tsconfig.js.map +1 -1
- package/src/lib/nx-plugin/src/index.js +0 -2
- package/src/lib/nx-plugin/src/utils/version-utils.d.ts +1 -1
- package/src/lib/nx-plugin/src/utils/version-utils.js +21 -27
- package/src/lib/nx-plugin/src/utils/version-utils.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/dependencies.js +43 -62
- package/src/lib/nx-plugin/src/utils/versions/dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js +50 -83
- package/src/lib/nx-plugin/src/utils/versions/dev-dependencies.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.d.ts +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.js +33 -20
- package/src/lib/nx-plugin/src/utils/versions/ng_17_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.d.ts +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js +33 -20
- package/src/lib/nx-plugin/src/utils/versions/ng_18_X/versions.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.d.ts +9 -8
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js +39 -23
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js.map +1 -1
- package/src/lib/options.d.ts +169 -80
- package/src/lib/platform-plugin.d.ts +2 -2
- package/src/lib/platform-plugin.js +54 -62
- package/src/lib/platform-plugin.js.map +1 -0
- package/src/lib/route-file-discovery.d.ts +23 -0
- package/src/lib/route-file-discovery.js +114 -0
- package/src/lib/route-file-discovery.js.map +1 -0
- package/src/lib/route-generation-plugin.d.ts +3 -0
- package/src/lib/route-generation-plugin.js +45 -0
- package/src/lib/route-generation-plugin.js.map +1 -0
- package/src/lib/route-idiom-diagnostics.d.ts +13 -0
- package/src/lib/route-idiom-diagnostics.js +160 -0
- package/src/lib/route-idiom-diagnostics.js.map +1 -0
- package/src/lib/route-manifest.d.ts +122 -0
- package/src/lib/route-manifest.js +431 -0
- package/src/lib/route-manifest.js.map +1 -0
- package/src/lib/router-plugin.d.ts +19 -19
- package/src/lib/router-plugin.js +234 -168
- package/src/lib/router-plugin.js.map +1 -0
- package/src/lib/ssr/inject-html-plugin.d.ts +1 -1
- package/src/lib/ssr/inject-html-plugin.js +25 -25
- package/src/lib/ssr/inject-html-plugin.js.map +1 -0
- package/src/lib/ssr/ssr-build-plugin.d.ts +31 -2
- package/src/lib/ssr/ssr-build-plugin.js +54 -30
- package/src/lib/ssr/ssr-build-plugin.js.map +1 -0
- package/src/lib/style-pipeline.d.ts +33 -0
- package/src/lib/style-pipeline.js +32 -0
- package/src/lib/style-pipeline.js.map +1 -0
- package/src/lib/style-preprocessor.d.ts +28 -0
- package/src/lib/style-preprocessor.js +35 -0
- package/src/lib/style-preprocessor.js.map +1 -0
- package/src/lib/tailwind-preprocessor.d.ts +23 -0
- package/src/lib/tailwind-preprocessor.js +153 -0
- package/src/lib/tailwind-preprocessor.js.map +1 -0
- package/src/lib/typed-routes-plugin.d.ts +50 -0
- package/src/lib/typed-routes-plugin.js +234 -0
- package/src/lib/typed-routes-plugin.js.map +1 -0
- package/src/lib/utils/debug-harness.d.ts +23 -0
- package/src/lib/utils/debug-harness.js +88 -0
- package/src/lib/utils/debug-harness.js.map +1 -0
- package/src/lib/utils/debug-log-file.d.ts +5 -0
- package/src/lib/utils/debug-log-file.js +56 -0
- package/src/lib/utils/debug-log-file.js.map +1 -0
- package/src/lib/utils/debug.d.ts +22 -0
- package/src/lib/utils/debug.js +27 -0
- package/src/lib/utils/debug.js.map +1 -0
- package/src/lib/utils/rolldown.d.ts +3 -0
- package/src/lib/utils/rolldown.js +15 -0
- package/src/lib/utils/rolldown.js.map +1 -0
- package/src/server-mode-plugin.d.ts +6 -6
- package/src/server-mode-plugin.js +16 -18
- package/src/server-mode-plugin.js.map +1 -0
- package/src/style-pipeline.d.ts +1 -0
- package/src/style-pipeline.js +2 -0
- package/src/style-preprocessor.d.ts +1 -0
- package/src/style-preprocessor.js +2 -0
- package/README.md +0 -5
- package/src/lib/content/prism/options.js +0 -1
- package/src/lib/content/shiki/options.js +0 -1
- package/src/lib/nx-plugin/README.md +0 -23
- package/src/lib/nx-plugin/src/executors/vite/compat.d.ts +0 -3
- package/src/lib/nx-plugin/src/executors/vite/compat.js +0 -8
- package/src/lib/nx-plugin/src/executors/vite/compat.js.map +0 -1
- package/src/lib/nx-plugin/src/executors/vite/schema.d.ts +0 -2
- package/src/lib/nx-plugin/src/executors/vite/schema.json +0 -147
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.d.ts +0 -2
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js +0 -5
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/files/tailwind/v4/.postcssrc.json +0 -5
- package/src/lib/nx-plugin/src/generators/app/files/tailwind/v4/tailwind.config.ts__template__ +0 -14
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/index.html__template__ +0 -15
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/app/app.component.spec.ts__template__ +0 -17
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/app/app.component.ts__template__ +0 -10
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/favicon.ico__template__ +0 -0
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.providers.ts__template__ +0 -5
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.server.ts__template__ +0 -23
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/main.ts__template__ +0 -17
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/.gitkeep__template__ +0 -0
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/analog.svg__template__ +0 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/public/assets/vite.svg__template__ +0 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/server/routes/v1/hello.ts__template__ +0 -3
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/styles.css__template__ +0 -4
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/test-setup.ts__template__ +0 -12
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/src/vite-env.d.ts__template__ +0 -1
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.app.json__template__ +0 -16
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.editor.json__template__ +0 -7
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.json__template__ +0 -32
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/tsconfig.spec.json__template__ +0 -14
- package/src/lib/nx-plugin/src/generators/app/files/template-angular-v15/vite.config.ts__template__ +0 -69
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.js +0 -15
- package/src/lib/nx-plugin/src/generators/app/lib/add-analog-dependencies.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js +0 -58
- package/src/lib/nx-plugin/src/generators/app/lib/add-eslint.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.js +0 -47
- package/src/lib/nx-plugin/src/generators/app/lib/add-vite-plugin.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js +0 -110
- package/src/lib/nx-plugin/src/generators/app/lib/initialize-analog-workspace.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js +0 -56
- package/src/lib/nx-plugin/src/generators/app/versions/dependencies.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/versions/dev-dependencies.js +0 -72
- package/src/lib/nx-plugin/src/generators/app/versions/dev-dependencies.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.js +0 -46
- package/src/lib/nx-plugin/src/generators/app/versions/nx-dependencies.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js +0 -37
- package/src/lib/nx-plugin/src/generators/app/versions/nx_17_X/versions.js.map +0 -1
- package/src/lib/nx-plugin/src/generators/app/versions.js +0 -43
- package/src/lib/nx-plugin/src/generators/app/versions.js.map +0 -1
- package/src/lib/nx-plugin/src/index.d.ts +0 -0
- package/src/lib/nx-plugin/src/index.js.map +0 -1
- package/src/lib/options.js +0 -1
- package/src/lib/ssr/ssr-xhr-plugin.d.ts +0 -2
- package/src/lib/ssr/ssr-xhr-plugin.js +0 -28
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code snippet emitted into virtual modules to create a request-scoped
|
|
3
|
+
* fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.
|
|
4
|
+
*
|
|
5
|
+
* Shared between the SSR renderer and page-endpoint virtual modules so
|
|
6
|
+
* the fetch-wiring logic stays in sync.
|
|
7
|
+
*
|
|
8
|
+
* The emitted variable is named `serverFetch` — callers should reference it
|
|
9
|
+
* by that name.
|
|
10
|
+
*/
|
|
11
|
+
export declare const SERVER_FETCH_FACTORY_SNIPPET = "\n const serverFetch = createFetch({\n fetch: (resource, init) => {\n const url = resource instanceof Request ? resource.url : resource.toString();\n return fetchWithEvent(event, url, init);\n }\n });";
|
|
12
|
+
/**
|
|
13
|
+
* SSR renderer virtual module content.
|
|
14
|
+
*
|
|
15
|
+
* This code runs inside Nitro's server runtime (Node.js context) where
|
|
16
|
+
* event.node is always populated. In h3 v2, event.node is typed as optional,
|
|
17
|
+
* so we use h3's first-class event properties (event.path, event.method) where
|
|
18
|
+
* possible and apply optional chaining when accessing the Node.js context for
|
|
19
|
+
* the Angular renderer which requires raw req/res objects.
|
|
20
|
+
*
|
|
21
|
+
* h3 v2 idiomatic APIs used:
|
|
22
|
+
* - defineHandler (replaces defineEventHandler / eventHandler)
|
|
23
|
+
* - event.path (replaces event.node.req.url)
|
|
24
|
+
* - getResponseHeader compat shim (still available in h3 v2)
|
|
25
|
+
*/
|
|
26
|
+
export declare function ssrRenderer(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Client-only renderer virtual module content.
|
|
29
|
+
*
|
|
30
|
+
* Used when SSR is disabled — simply serves the static index.html template
|
|
31
|
+
* for every route, letting the client-side Angular router handle navigation.
|
|
32
|
+
*/
|
|
33
|
+
export declare function clientRenderer(): string;
|
|
34
|
+
/**
|
|
35
|
+
* API middleware virtual module content.
|
|
36
|
+
*
|
|
37
|
+
* Intercepts requests matching the configured API prefix and either:
|
|
38
|
+
* - Uses event-bound internal forwarding for GET requests (except .xml routes)
|
|
39
|
+
* - Uses request proxying for all other methods to forward the full request
|
|
40
|
+
*
|
|
41
|
+
* h3 v2 idiomatic APIs used:
|
|
42
|
+
* - defineHandler (replaces defineEventHandler / eventHandler)
|
|
43
|
+
* - event.path (replaces event.node.req.url)
|
|
44
|
+
* - event.method (replaces event.node.req.method)
|
|
45
|
+
* - proxyRequest is retained internally because it preserves Nitro route
|
|
46
|
+
* matching for event-bound server requests during SSR/prerender
|
|
47
|
+
* - Object.fromEntries(event.req.headers.entries()) replaces direct event.node.req.headers access
|
|
48
|
+
*
|
|
49
|
+
* `fetchWithEvent` keeps the active event context while forwarding to a
|
|
50
|
+
* rewritten path, which avoids falling through to the HTML renderer when
|
|
51
|
+
* SSR code makes relative API requests.
|
|
52
|
+
*/
|
|
53
|
+
export declare const apiMiddleware = "\nimport { defineHandler, fetchWithEvent, proxyRequest } from 'nitro/h3';\nimport { useRuntimeConfig } from 'nitro/runtime-config';\n\nexport default defineHandler(async (event) => {\n const prefix = useRuntimeConfig().prefix;\n const apiPrefix = `${prefix}/${useRuntimeConfig().apiPrefix}`;\n\n // Match the configured prefix as a full path segment. A bare\n // startsWith would false-match /apiary against an apiPrefix of /api.\n if (\n event.path === apiPrefix ||\n event.path?.startsWith(apiPrefix + '/')\n ) {\n const reqUrl = event.path?.replace(apiPrefix, '');\n\n if (\n event.method === 'GET' &&\n // in the case of XML routes, we want to proxy the request so that nitro gets the correct headers\n // and can render the XML correctly as a static asset\n !event.path?.endsWith('.xml')\n ) {\n return fetchWithEvent(event, reqUrl, {\n headers: Object.fromEntries(event.req.headers.entries()),\n });\n }\n\n return proxyRequest(event, reqUrl);\n }\n});";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region packages/platform/src/lib/nitro/renderers.ts
|
|
2
|
+
/**
|
|
3
|
+
* Code snippet emitted into virtual modules to create a request-scoped
|
|
4
|
+
* fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.
|
|
5
|
+
*
|
|
6
|
+
* Shared between the SSR renderer and page-endpoint virtual modules so
|
|
7
|
+
* the fetch-wiring logic stays in sync.
|
|
8
|
+
*
|
|
9
|
+
* The emitted variable is named `serverFetch` — callers should reference it
|
|
10
|
+
* by that name.
|
|
11
|
+
*/
|
|
12
|
+
var SERVER_FETCH_FACTORY_SNIPPET = `
|
|
13
|
+
const serverFetch = createFetch({
|
|
14
|
+
fetch: (resource, init) => {
|
|
15
|
+
const url = resource instanceof Request ? resource.url : resource.toString();
|
|
16
|
+
return fetchWithEvent(event, url, init);
|
|
17
|
+
}
|
|
18
|
+
});`;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { SERVER_FETCH_FACTORY_SNIPPET };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=renderers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderers.js","names":[],"sources":["../../../../src/lib/nitro/renderers.ts"],"sourcesContent":["/**\n * Code snippet emitted into virtual modules to create a request-scoped\n * fetch using ofetch's `createFetch` + h3's `fetchWithEvent`.\n *\n * Shared between the SSR renderer and page-endpoint virtual modules so\n * the fetch-wiring logic stays in sync.\n *\n * The emitted variable is named `serverFetch` — callers should reference it\n * by that name.\n */\nexport const SERVER_FETCH_FACTORY_SNIPPET = `\n const serverFetch = createFetch({\n fetch: (resource, init) => {\n const url = resource instanceof Request ? resource.url : resource.toString();\n return fetchWithEvent(event, url, init);\n }\n });`;\n\n/**\n * SSR renderer virtual module content.\n *\n * This code runs inside Nitro's server runtime (Node.js context) where\n * event.node is always populated. In h3 v2, event.node is typed as optional,\n * so we use h3's first-class event properties (event.path, event.method) where\n * possible and apply optional chaining when accessing the Node.js context for\n * the Angular renderer which requires raw req/res objects.\n *\n * h3 v2 idiomatic APIs used:\n * - defineHandler (replaces defineEventHandler / eventHandler)\n * - event.path (replaces event.node.req.url)\n * - getResponseHeader compat shim (still available in h3 v2)\n */\nexport function ssrRenderer() {\n return `\nimport { createFetch } from 'ofetch';\nimport { defineHandler, fetchWithEvent } from 'nitro/h3';\n// @ts-ignore\nimport renderer from '#analog/ssr';\nimport template from '#analog/index';\n\nconst normalizeHtmlRequestUrl = (url) =>\n url.replace(/\\\\/index\\\\.html(?=$|[?#])/, '/');\n\nexport default defineHandler(async (event) => {\n event.res.headers.set('content-type', 'text/html; charset=utf-8');\n const noSSR = event.res.headers.get('x-analog-no-ssr');\n const requestPath = normalizeHtmlRequestUrl(event.path);\n\n if (noSSR === 'true') {\n return template;\n }\n\n // event.path is the canonical h3 v2 way to access the request URL.\n // event.node?.req and event.node?.res are needed by the Angular SSR renderer\n // which operates on raw Node.js request/response objects.\n // During prerendering (Nitro v3 fetch-based pipeline), event.node is undefined.\n // The Angular renderer requires a req object with at least { headers, url },\n // so we provide a minimal stub to avoid runtime errors in prerender context.\n const req = event.node?.req\n ? {\n ...event.node.req,\n url: requestPath,\n originalUrl: requestPath,\n }\n : {\n headers: { host: 'localhost' },\n url: requestPath,\n originalUrl: requestPath,\n connection: {},\n };\n const res = event.node?.res;\n${SERVER_FETCH_FACTORY_SNIPPET}\n\n const html = await renderer(requestPath, template, { req, res, fetch: serverFetch });\n\n return html;\n});`;\n}\n\n/**\n * Client-only renderer virtual module content.\n *\n * Used when SSR is disabled — simply serves the static index.html template\n * for every route, letting the client-side Angular router handle navigation.\n */\nexport function clientRenderer() {\n return `\nimport { defineHandler } from 'nitro/h3';\nimport template from '#analog/index';\n\nexport default defineHandler(async (event) => {\n event.res.headers.set('content-type', 'text/html; charset=utf-8');\n return template;\n});\n`;\n}\n\n/**\n * API middleware virtual module content.\n *\n * Intercepts requests matching the configured API prefix and either:\n * - Uses event-bound internal forwarding for GET requests (except .xml routes)\n * - Uses request proxying for all other methods to forward the full request\n *\n * h3 v2 idiomatic APIs used:\n * - defineHandler (replaces defineEventHandler / eventHandler)\n * - event.path (replaces event.node.req.url)\n * - event.method (replaces event.node.req.method)\n * - proxyRequest is retained internally because it preserves Nitro route\n * matching for event-bound server requests during SSR/prerender\n * - Object.fromEntries(event.req.headers.entries()) replaces direct event.node.req.headers access\n *\n * `fetchWithEvent` keeps the active event context while forwarding to a\n * rewritten path, which avoids falling through to the HTML renderer when\n * SSR code makes relative API requests.\n */\nexport const apiMiddleware = `\nimport { defineHandler, fetchWithEvent, proxyRequest } from 'nitro/h3';\nimport { useRuntimeConfig } from 'nitro/runtime-config';\n\nexport default defineHandler(async (event) => {\n const prefix = useRuntimeConfig().prefix;\n const apiPrefix = \\`\\${prefix}/\\${useRuntimeConfig().apiPrefix}\\`;\n\n // Match the configured prefix as a full path segment. A bare\n // startsWith would false-match /apiary against an apiPrefix of /api.\n if (\n event.path === apiPrefix ||\n event.path?.startsWith(apiPrefix + '/')\n ) {\n const reqUrl = event.path?.replace(apiPrefix, '');\n\n if (\n event.method === 'GET' &&\n // in the case of XML routes, we want to proxy the request so that nitro gets the correct headers\n // and can render the XML correctly as a static asset\n !event.path?.endsWith('.xml')\n ) {\n return fetchWithEvent(event, reqUrl, {\n headers: Object.fromEntries(event.req.headers.entries()),\n });\n }\n\n return proxyRequest(event, reqUrl);\n }\n});`;\n"],"mappings":";;;;;;;;;;;AAUA,IAAa,+BAA+B"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { PrerenderRoute } from "nitro/types";
|
|
2
|
+
export interface I18nPrerenderOptions {
|
|
3
|
+
/**
|
|
4
|
+
* The default/source locale for the application.
|
|
5
|
+
*/
|
|
6
|
+
defaultLocale: string;
|
|
7
|
+
/**
|
|
8
|
+
* List of supported locale identifiers.
|
|
9
|
+
* Each route will be prerendered once per locale with a locale prefix.
|
|
10
|
+
*/
|
|
11
|
+
locales: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface PrerenderOptions {
|
|
14
|
+
/**
|
|
15
|
+
* Add additional routes to prerender through crawling page links.
|
|
16
|
+
*/
|
|
17
|
+
discover?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* List of routes to prerender resolved statically or dynamically.
|
|
20
|
+
*/
|
|
21
|
+
routes?: (string | PrerenderContentDir | PrerenderRouteConfig)[] | (() => Promise<(string | PrerenderContentDir | PrerenderRouteConfig | undefined)[]>);
|
|
22
|
+
sitemap?: SitemapConfig;
|
|
23
|
+
/** List of functions that run for each route after pre-rendering is complete. */
|
|
24
|
+
postRenderingHooks?: ((routes: PrerenderRoute) => Promise<void>)[];
|
|
25
|
+
}
|
|
26
|
+
export type SitemapPriority = number | `${number}`;
|
|
27
|
+
export interface SitemapRouteDefinition {
|
|
28
|
+
route: string;
|
|
29
|
+
lastmod?: string;
|
|
30
|
+
changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
|
|
31
|
+
priority?: SitemapPriority;
|
|
32
|
+
}
|
|
33
|
+
export interface SitemapEntry extends SitemapRouteDefinition {
|
|
34
|
+
loc: string;
|
|
35
|
+
}
|
|
36
|
+
export type SitemapRouteInput = string | SitemapRouteDefinition | undefined;
|
|
37
|
+
export type SitemapRouteSource = SitemapRouteInput[] | (() => Promise<SitemapRouteInput[]>);
|
|
38
|
+
export type SitemapExcludeRule = string | RegExp | ((entry: SitemapEntry) => boolean | Promise<boolean>);
|
|
39
|
+
export type SitemapTransform = (entry: SitemapEntry) => SitemapRouteDefinition | false | Promise<SitemapRouteDefinition | false>;
|
|
40
|
+
export interface SitemapConfig {
|
|
41
|
+
host: string;
|
|
42
|
+
include?: SitemapRouteSource;
|
|
43
|
+
exclude?: SitemapExcludeRule[];
|
|
44
|
+
defaults?: PrerenderSitemapConfig;
|
|
45
|
+
transform?: SitemapTransform;
|
|
46
|
+
}
|
|
47
|
+
export interface PrerenderContentDir {
|
|
48
|
+
/**
|
|
49
|
+
* The directory where files should be grabbed from.
|
|
50
|
+
* @example `/src/contents/blog`
|
|
51
|
+
*/
|
|
52
|
+
contentDir: string;
|
|
53
|
+
/**
|
|
54
|
+
* Transform the matching content files path into a route.
|
|
55
|
+
* The function is called for each matching content file within the specified contentDir.
|
|
56
|
+
* @param file information of the matching file (`path`, `name`, `extension`, `attributes`, `content`)
|
|
57
|
+
* @returns a string with the route should be returned (e. g. `/blog/<slug>`) or the value `false`, when the route should not be prerendered.
|
|
58
|
+
*/
|
|
59
|
+
transform: (file: PrerenderContentFile) => string | false;
|
|
60
|
+
/**
|
|
61
|
+
* Customize the sitemap definition for the prerendered route
|
|
62
|
+
*
|
|
63
|
+
* https://www.sitemaps.org/protocol.html#xmlTagDefinitions
|
|
64
|
+
*/
|
|
65
|
+
sitemap?: PrerenderSitemapConfig | ((file: PrerenderContentFile) => PrerenderSitemapConfig);
|
|
66
|
+
/**
|
|
67
|
+
* Output the source markdown content alongside the prerendered route.
|
|
68
|
+
* The source file will be accessible at the route path with a .md extension.
|
|
69
|
+
* @param file information of the matching file including its content
|
|
70
|
+
* @returns the markdown content string to output, or `false` to skip outputting for this file
|
|
71
|
+
*/
|
|
72
|
+
outputSourceFile?: (file: PrerenderContentFile) => string | false;
|
|
73
|
+
/**
|
|
74
|
+
* Recurse into subdirectories of `contentDir` when discovering files.
|
|
75
|
+
* When enabled, the matching file's directory relative to `contentDir`
|
|
76
|
+
* is exposed via `PrerenderContentFile.relativePath` so transforms can
|
|
77
|
+
* disambiguate identically-named files across subdirectories.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
recursive?: boolean;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @param path the path to the content file
|
|
84
|
+
* @param name the basename of the matching content file without the file extension
|
|
85
|
+
* @param extension the file extension
|
|
86
|
+
* @param attributes the frontmatter attributes extracted from the frontmatter section of the file
|
|
87
|
+
* @param content the raw file content including frontmatter
|
|
88
|
+
* @param relativePath when `recursive` is enabled, the directory of the file relative to `contentDir` (empty string for files at the top level)
|
|
89
|
+
* @returns a string with the route should be returned (e. g. `/blog/<slug>`) or the value `false`, when the route should not be prerendered.
|
|
90
|
+
*/
|
|
91
|
+
export interface PrerenderContentFile {
|
|
92
|
+
path: string;
|
|
93
|
+
attributes: Record<string, any>;
|
|
94
|
+
name: string;
|
|
95
|
+
extension: string;
|
|
96
|
+
content: string;
|
|
97
|
+
relativePath?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface PrerenderSitemapConfig {
|
|
100
|
+
lastmod?: string;
|
|
101
|
+
changefreq?: "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never";
|
|
102
|
+
priority?: SitemapPriority;
|
|
103
|
+
}
|
|
104
|
+
export interface PrerenderRouteConfig {
|
|
105
|
+
route: string;
|
|
106
|
+
/**
|
|
107
|
+
* Customize the sitemap definition for the prerendered route
|
|
108
|
+
*
|
|
109
|
+
* https://www.sitemaps.org/protocol.html#xmlTagDefinitions
|
|
110
|
+
*/
|
|
111
|
+
sitemap?: PrerenderSitemapConfig | (() => PrerenderSitemapConfig);
|
|
112
|
+
/**
|
|
113
|
+
* Prerender static data for the prerendered route
|
|
114
|
+
*/
|
|
115
|
+
staticData?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Path to the source markdown file to output alongside the prerendered route.
|
|
118
|
+
* The source file will be accessible at the route path with a .md extension.
|
|
119
|
+
* @example 'src/content/overview.md'
|
|
120
|
+
*/
|
|
121
|
+
outputSourceFile?: string;
|
|
122
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"builders": {
|
|
3
|
+
"vite-dev-server": {
|
|
4
|
+
"implementation": "./src/builders/vite-dev-server/dev-server.js",
|
|
5
|
+
"schema": "./src/builders/vite-dev-server/schema.json",
|
|
6
|
+
"description": "Vite dev server."
|
|
7
|
+
},
|
|
8
|
+
"vite": {
|
|
9
|
+
"implementation": "./src/builders/vite/vite-build.js",
|
|
10
|
+
"schema": "./src/builders/vite/schema.json",
|
|
11
|
+
"description": "Build with Vite."
|
|
12
|
+
},
|
|
13
|
+
"vitest": "@analogjs/vitest-angular:test"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"builders": {
|
|
3
3
|
"vite-dev-server": {
|
|
4
|
-
"implementation": "./src/
|
|
5
|
-
"schema": "./src/
|
|
4
|
+
"implementation": "./src/builders/vite-dev-server/dev-server.js",
|
|
5
|
+
"schema": "./src/builders/vite-dev-server/schema.json",
|
|
6
6
|
"description": "Vite dev server."
|
|
7
7
|
},
|
|
8
8
|
"vite": {
|
|
9
|
-
"implementation": "./src/
|
|
10
|
-
"schema": "./src/
|
|
9
|
+
"implementation": "./src/builders/vite/vite-build.js",
|
|
10
|
+
"schema": "./src/builders/vite/schema.json",
|
|
11
11
|
"description": "Build with Vite."
|
|
12
12
|
},
|
|
13
|
+
"vitest": "@analogjs/vitest-angular:test"
|
|
14
|
+
},
|
|
15
|
+
"executors": {
|
|
16
|
+
"vite-dev-server": {
|
|
17
|
+
"implementation": "./src/executors/vite-dev-server/vite-dev-server.impl",
|
|
18
|
+
"schema": "./src/executors/vite-dev-server/schema.json",
|
|
19
|
+
"description": "Vite dev server."
|
|
20
|
+
},
|
|
13
21
|
"vitest": {
|
|
14
22
|
"implementation": "./src/executors/vitest/vitest.impl",
|
|
15
23
|
"schema": "./src/executors/vitest/schema.json",
|
|
@@ -33,5 +33,30 @@
|
|
|
33
33
|
"description": "Migrate and configure an Angular SPA to use Analog.",
|
|
34
34
|
"aliases": ["migrate"]
|
|
35
35
|
}
|
|
36
|
+
},
|
|
37
|
+
"schematics": {
|
|
38
|
+
"application": {
|
|
39
|
+
"factory": "./src/generators/app/compat#applicationSchematic",
|
|
40
|
+
"schema": "./src/generators/app/schema.json",
|
|
41
|
+
"description": "Generates an Analog application",
|
|
42
|
+
"aliases": ["app"]
|
|
43
|
+
},
|
|
44
|
+
"page": {
|
|
45
|
+
"factory": "./src/generators/page/compat#pageSchematic",
|
|
46
|
+
"schema": "./src/generators/page/schema.json",
|
|
47
|
+
"description": "Creates a new Analog page in the given or default project.",
|
|
48
|
+
"aliases": ["p"]
|
|
49
|
+
},
|
|
50
|
+
"setup-vitest": {
|
|
51
|
+
"factory": "./src/generators/setup-vitest/compat#setupVitestSchematic",
|
|
52
|
+
"schema": "./src/generators/setup-vitest/schema.json",
|
|
53
|
+
"description": "Setup the Vitest configuration."
|
|
54
|
+
},
|
|
55
|
+
"init": {
|
|
56
|
+
"factory": "./src/generators/init/compat#initSchematic",
|
|
57
|
+
"schema": "./src/generators/init/schema.json",
|
|
58
|
+
"description": "Migrate and configure an Angular SPA to use Analog.",
|
|
59
|
+
"aliases": ["migrate"]
|
|
60
|
+
}
|
|
36
61
|
}
|
|
37
62
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_capitalize = require("./capitalize.js");
|
|
2
|
+
const require_words = require("./words.js");
|
|
3
|
+
//#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.mjs
|
|
4
|
+
function camelCase(str) {
|
|
5
|
+
const words$1 = require_words.words(str);
|
|
6
|
+
if (words$1.length === 0) return "";
|
|
7
|
+
const [first, ...rest] = words$1;
|
|
8
|
+
return `${first.toLowerCase()}${rest.map((word) => require_capitalize.capitalize(word)).join("")}`;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
exports.camelCase = camelCase;
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=camelCase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"camelCase.js","names":["words","capitalize"],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/camelCase.mjs"],"sourcesContent":["import { capitalize } from './capitalize.mjs';\nimport { words } from './words.mjs';\n\nfunction camelCase(str) {\n const words$1 = words(str);\n if (words$1.length === 0) {\n return '';\n }\n const [first, ...rest] = words$1;\n return `${first.toLowerCase()}${rest.map(word => capitalize(word)).join('')}`;\n}\n\nexport { camelCase };\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,SAAS,UAAU,KAAK;CACpB,MAAM,UAAUA,cAAAA,MAAM,IAAI;AAC1B,KAAI,QAAQ,WAAW,EACnB,QAAO;CAEX,MAAM,CAAC,OAAO,GAAG,QAAQ;AACzB,QAAO,GAAG,MAAM,aAAa,GAAG,KAAK,KAAI,SAAQC,mBAAAA,WAAW,KAAK,CAAC,CAAC,KAAK,GAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.mjs
|
|
2
|
+
function capitalize(str) {
|
|
3
|
+
return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase();
|
|
4
|
+
}
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.capitalize = capitalize;
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=capitalize.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capitalize.js","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/capitalize.mjs"],"sourcesContent":["function capitalize(str) {\n return (str.charAt(0).toUpperCase() + str.slice(1).toLowerCase());\n}\n\nexport { capitalize };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,SAAS,WAAW,KAAK;AACrB,QAAQ,IAAI,OAAO,EAAE,CAAC,aAAa,GAAG,IAAI,MAAM,EAAE,CAAC,aAAa"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.mjs
|
|
2
|
+
var CASE_SPLIT_PATTERN = /\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;
|
|
3
|
+
function words(str) {
|
|
4
|
+
return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
exports.words = words;
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=words.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"words.js","names":[],"sources":["../../../../../../../../../../../../../node_modules/.pnpm/es-toolkit@1.45.1/node_modules/es-toolkit/dist/string/words.mjs"],"sourcesContent":["const CASE_SPLIT_PATTERN = /\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+/gu;\nfunction words(str) {\n return Array.from(str.match(CASE_SPLIT_PATTERN) ?? []);\n}\n\nexport { CASE_SPLIT_PATTERN, words };\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAM,qBAAqB;AAC3B,SAAS,MAAM,KAAK;AAChB,QAAO,MAAM,KAAK,IAAI,MAAM,mBAAmB,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Vite Prod Builder",
|
|
5
|
+
"cli": "nx",
|
|
6
|
+
"description": "Builds a Vite.js application for production.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"outputPath": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The output path of the generated files.",
|
|
12
|
+
"x-completion-type": "directory",
|
|
13
|
+
"x-priority": "important"
|
|
14
|
+
},
|
|
15
|
+
"configFile": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the Vite.js configuration file.",
|
|
18
|
+
"x-completion-type": "file",
|
|
19
|
+
"x-completion-glob": "vite.config.@(js|ts)"
|
|
20
|
+
},
|
|
21
|
+
"sourcemap": {
|
|
22
|
+
"description": "Output sourcemaps. Use 'hidden' for use with error reporting tools without generating sourcemap comment.",
|
|
23
|
+
"oneOf": [
|
|
24
|
+
{
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"type": "string"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"mode": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Mode to run the build in."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"definitions": {},
|
|
38
|
+
"required": ["outputPath"]
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin shim that re-exports the Angular Devkit Architect build builder
|
|
3
|
+
* shipped by `@analogjs/vite-plugin-angular`. Architect resolves the
|
|
4
|
+
* implementation from the local `builders.json` entry without traversing a
|
|
5
|
+
* cross-package string redirect, so the user-facing `@analogjs/platform:vite`
|
|
6
|
+
* identifier stays stable while the real implementation continues to live in
|
|
7
|
+
* `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s
|
|
8
|
+
* pattern for surfacing `@storybook/angular`'s builders.
|
|
9
|
+
*/
|
|
10
|
+
import viteBuilder from "@analogjs/vite-plugin-angular/builders/vite";
|
|
11
|
+
export default viteBuilder;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
let _analogjs_vite_plugin_angular_builders_vite = require("@analogjs/vite-plugin-angular/builders/vite");
|
|
3
|
+
_analogjs_vite_plugin_angular_builders_vite = require_runtime.__toESM(_analogjs_vite_plugin_angular_builders_vite);
|
|
4
|
+
//#region packages/nx-plugin/src/builders/vite/vite-build.ts
|
|
5
|
+
/**
|
|
6
|
+
* Thin shim that re-exports the Angular Devkit Architect build builder
|
|
7
|
+
* shipped by `@analogjs/vite-plugin-angular`. Architect resolves the
|
|
8
|
+
* implementation from the local `builders.json` entry without traversing a
|
|
9
|
+
* cross-package string redirect, so the user-facing `@analogjs/platform:vite`
|
|
10
|
+
* identifier stays stable while the real implementation continues to live in
|
|
11
|
+
* `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s
|
|
12
|
+
* pattern for surfacing `@storybook/angular`'s builders.
|
|
13
|
+
*/
|
|
14
|
+
var vite_build_default = _analogjs_vite_plugin_angular_builders_vite.default;
|
|
15
|
+
//#endregion
|
|
16
|
+
module.exports = vite_build_default;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=vite-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vite-build.js","names":[],"sources":["../../../../../../../../nx-plugin/src/builders/vite/vite-build.ts"],"sourcesContent":["/**\n * Thin shim that re-exports the Angular Devkit Architect build builder\n * shipped by `@analogjs/vite-plugin-angular`. Architect resolves the\n * implementation from the local `builders.json` entry without traversing a\n * cross-package string redirect, so the user-facing `@analogjs/platform:vite`\n * identifier stays stable while the real implementation continues to live in\n * `@analogjs/vite-plugin-angular`. Mirrors `@analogjs/storybook-angular`'s\n * pattern for surfacing `@storybook/angular`'s builders.\n */\nimport viteBuilder from '@analogjs/vite-plugin-angular/builders/vite';\n\nexport default viteBuilder;\n"],"mappings":";;;;;;;;;;;;;AAWA,IAAA,qBAAe,4CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Thin shim that re-exports the Angular Devkit Architect dev-server builder
|
|
3
|
+
* shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for
|
|
4
|
+
* the rationale; mirrors `@analogjs/storybook-angular`'s pattern.
|
|
5
|
+
*/
|
|
6
|
+
import devServerBuilder from "@analogjs/vite-plugin-angular/builders/vite-dev-server";
|
|
7
|
+
export default devServerBuilder;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
let _analogjs_vite_plugin_angular_builders_vite_dev_server = require("@analogjs/vite-plugin-angular/builders/vite-dev-server");
|
|
3
|
+
_analogjs_vite_plugin_angular_builders_vite_dev_server = require_runtime.__toESM(_analogjs_vite_plugin_angular_builders_vite_dev_server);
|
|
4
|
+
//#region packages/nx-plugin/src/builders/vite-dev-server/dev-server.ts
|
|
5
|
+
/**
|
|
6
|
+
* Thin shim that re-exports the Angular Devkit Architect dev-server builder
|
|
7
|
+
* shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for
|
|
8
|
+
* the rationale; mirrors `@analogjs/storybook-angular`'s pattern.
|
|
9
|
+
*/
|
|
10
|
+
var dev_server_default = _analogjs_vite_plugin_angular_builders_vite_dev_server.default;
|
|
11
|
+
//#endregion
|
|
12
|
+
module.exports = dev_server_default;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=dev-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dev-server.js","names":[],"sources":["../../../../../../../../nx-plugin/src/builders/vite-dev-server/dev-server.ts"],"sourcesContent":["/**\n * Thin shim that re-exports the Angular Devkit Architect dev-server builder\n * shipped by `@analogjs/vite-plugin-angular`. See `../vite/vite-build.ts` for\n * the rationale; mirrors `@analogjs/storybook-angular`'s pattern.\n */\nimport devServerBuilder from '@analogjs/vite-plugin-angular/builders/vite-dev-server';\n\nexport default devServerBuilder;\n"],"mappings":";;;;;;;;;AAOA,IAAA,qBAAe,uDAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "Vite Dev Server",
|
|
5
|
+
"description": "Starts a dev server using Vite.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"buildTarget": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Target which builds the application. Only used to retrieve the configuration as the dev-server does not build the code.",
|
|
11
|
+
"x-priority": "important"
|
|
12
|
+
},
|
|
13
|
+
"port": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 1,
|
|
16
|
+
"maximum": 65535,
|
|
17
|
+
"description": "Port to listen on.",
|
|
18
|
+
"x-priority": "important"
|
|
19
|
+
},
|
|
20
|
+
"hmr": {
|
|
21
|
+
"description": "Enable hot module replacement. For more options, use the 'hmr' option in the Vite configuration file.",
|
|
22
|
+
"type": "boolean"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"definitions": {},
|
|
26
|
+
"required": ["buildTarget"]
|
|
27
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_src_executors_vite_dev_server_vite_dev_server_impl = require("./vite-dev-server.impl.js");
|
|
3
|
+
//#region packages/nx-plugin/src/executors/vite-dev-server/compat.ts
|
|
4
|
+
var compat = (0, require("@nx/devkit").convertNxExecutor)(require_src_executors_vite_dev_server_vite_dev_server_impl);
|
|
5
|
+
//#endregion
|
|
6
|
+
module.exports = compat;
|
|
7
|
+
|
|
8
8
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","
|
|
1
|
+
{"version":3,"file":"compat.js","names":[],"sources":["../../../../../../../../nx-plugin/src/executors/vite-dev-server/compat.ts"],"sourcesContent":["import { convertNxExecutor } from '@nx/devkit';\n\nimport viteDevServerExecutor from './vite-dev-server.impl';\n\nconst compat: ReturnType<typeof convertNxExecutor> = convertNxExecutor(\n viteDevServerExecutor,\n);\nexport default compat;\n"],"mappings":";;;AAIA,IAAM,UAAA,yBAAA,mBACJ,2DACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ViteDevServerExecutorOptions } from '@nx/vite/executors';
|
|
1
|
+
export type { ViteDevServerExecutorOptions } from '@nx/vite/executors';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { viteDevServerExecutor } from
|
|
1
|
+
import { viteDevServerExecutor } from "@nx/vite/executors";
|
|
2
2
|
export default viteDevServerExecutor;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
//#region packages/nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.ts
|
|
3
|
+
var vite_dev_server_impl_default = require("@nx/vite/executors").viteDevServerExecutor;
|
|
4
|
+
//#endregion
|
|
5
|
+
module.exports = vite_dev_server_impl_default;
|
|
6
|
+
|
|
5
7
|
//# sourceMappingURL=vite-dev-server.impl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vite-dev-server.impl.js","
|
|
1
|
+
{"version":3,"file":"vite-dev-server.impl.js","names":[],"sources":["../../../../../../../../nx-plugin/src/executors/vite-dev-server/vite-dev-server.impl.ts"],"sourcesContent":["import { viteDevServerExecutor } from '@nx/vite/executors';\n\nexport default viteDevServerExecutor;\n"],"mappings":";;AAEA,IAAA,6DAAe"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
const require_src_executors_vitest_vitest_impl = require("./vitest.impl.js");
|
|
3
|
+
//#region packages/nx-plugin/src/executors/vitest/compat.ts
|
|
4
|
+
var compat = (0, require("@nx/devkit").convertNxExecutor)(require_src_executors_vitest_vitest_impl);
|
|
5
|
+
//#endregion
|
|
6
|
+
module.exports = compat;
|
|
7
|
+
|
|
8
8
|
//# sourceMappingURL=compat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compat.js","
|
|
1
|
+
{"version":3,"file":"compat.js","names":[],"sources":["../../../../../../../../nx-plugin/src/executors/vitest/compat.ts"],"sourcesContent":["import { convertNxExecutor } from '@nx/devkit';\n\nimport vitestExecutor from './vitest.impl';\n\nconst compat: ReturnType<typeof convertNxExecutor> =\n convertNxExecutor(vitestExecutor);\nexport default compat;\n"],"mappings":";;;AAIA,IAAM,UAAA,yBAAA,mBACc,yCAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { VitestExecutorOptions } from '@nx/vite/executors';
|
|
1
|
+
export type { VitestExecutorOptions } from '@nx/vite/executors';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { vitestExecutor } from
|
|
1
|
+
import { vitestExecutor } from "@nx/vitest/executors";
|
|
2
2
|
export default vitestExecutor;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
require("../../../_virtual/_rolldown/runtime.js");
|
|
2
|
+
//#region packages/nx-plugin/src/executors/vitest/vitest.impl.ts
|
|
3
|
+
var vitest_impl_default = require("@nx/vitest/executors").vitestExecutor;
|
|
4
|
+
//#endregion
|
|
5
|
+
module.exports = vitest_impl_default;
|
|
6
|
+
|
|
5
7
|
//# sourceMappingURL=vitest.impl.js.map
|