@analogjs/platform 3.0.0-alpha.2 → 3.0.0-alpha.20
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 +13 -17
- package/src/index.d.ts +5 -2
- package/src/index.js +9 -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 -4
- 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.d.ts +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 +19 -28
- package/src/lib/content/shiki/index.js.map +1 -0
- package/src/lib/content/shiki/options.d.ts +7 -7
- package/src/lib/content/shiki/shiki-highlighter.d.ts +13 -13
- package/src/lib/content/shiki/shiki-highlighter.js +45 -44
- 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 +178 -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 +73 -82
- package/src/lib/deps-plugin.js.map +1 -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/nx-plugin/builders.json +7 -0
- package/src/lib/nx-plugin/executors.json +5 -0
- package/src/lib/nx-plugin/generators.json +25 -0
- package/src/lib/nx-plugin/package.json +1 -5
- package/src/lib/nx-plugin/src/executors/vite/compat.d.ts +3 -2
- package/src/lib/nx-plugin/src/executors/vite/compat.js +6 -6
- package/src/lib/nx-plugin/src/executors/vite/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vite/schema.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.d.ts +1 -1
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js +5 -4
- package/src/lib/nx-plugin/src/executors/vite/vite.impl.js.map +1 -1
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.d.ts +3 -2
- package/src/lib/nx-plugin/src/executors/vite-dev-server/compat.js +6 -6
- 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 +5 -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 +3 -2
- package/src/lib/nx-plugin/src/executors/vitest/compat.js +6 -6
- 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 +5 -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 -2
- package/src/lib/nx-plugin/src/generators/app/compat.js +17 -6
- 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 -0
- 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__ +0 -18
- 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__ +0 -18
- 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__ +0 -9
- package/src/lib/nx-plugin/src/generators/app/generator.d.ts +11 -11
- package/src/lib/nx-plugin/src/generators/app/generator.js +78 -88
- 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 +72 -89
- 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 +24 -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 +15 -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 +14 -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 +15 -30
- 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 +3 -5
- package/src/lib/nx-plugin/src/generators/app/lib/add-tailwind-helpers.js +49 -147
- 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 +14 -12
- 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 +4 -5
- package/src/lib/nx-plugin/src/generators/app/versions/minimum-supported-versions.js +6 -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 +0 -5
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.d.ts +9 -16
- package/src/lib/nx-plugin/src/generators/app/versions/nx_18_X/versions.js +7 -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 +9 -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 -2
- package/src/lib/nx-plugin/src/generators/init/compat.js +17 -6
- package/src/lib/nx-plugin/src/generators/init/compat.js.map +1 -1
- package/src/lib/nx-plugin/src/generators/init/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/init/generator.js +54 -55
- 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 +19 -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 +20 -18
- 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 +56 -57
- 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 +17 -15
- 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 +12 -12
- 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 +19 -25
- 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 +43 -45
- 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 +27 -28
- 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 +19 -17
- 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/compat.d.ts +9 -0
- package/src/lib/nx-plugin/src/generators/page/compat.js +18 -0
- package/src/lib/nx-plugin/src/generators/page/compat.js.map +1 -0
- package/src/lib/nx-plugin/src/generators/page/generator.d.ts +3 -4
- package/src/lib/nx-plugin/src/generators/page/generator.js +33 -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 -3
- package/src/lib/nx-plugin/src/generators/preset/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/preset/generator.js +17 -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 -2
- package/src/lib/nx-plugin/src/generators/setup-vitest/compat.js +17 -6
- 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/generator.d.ts +3 -3
- package/src/lib/nx-plugin/src/generators/setup-vitest/generator.js +35 -32
- 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 +7 -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 +20 -21
- 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 +19 -19
- 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 -1
- package/src/lib/nx-plugin/src/utils/version-utils.d.ts +1 -1
- package/src/lib/nx-plugin/src/utils/version-utils.js +20 -18
- package/src/lib/nx-plugin/src/utils/version-utils.js.map +1 -1
- package/src/lib/nx-plugin/src/utils/versions/dependencies.js +42 -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 +49 -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.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.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 +7 -7
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js +37 -23
- package/src/lib/nx-plugin/src/utils/versions/ng_19_X/versions.js.map +1 -1
- package/src/lib/options.d.ts +158 -80
- package/src/lib/platform-plugin.d.ts +2 -2
- package/src/lib/platform-plugin.js +67 -61
- 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 +34 -0
- package/src/lib/route-generation-plugin.js.map +1 -0
- package/src/lib/route-manifest.d.ts +118 -0
- package/src/lib/route-manifest.js +377 -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 +193 -150
- 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 +18 -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/tailwind-preprocessor.d.ts +23 -0
- package/src/lib/tailwind-preprocessor.js +33 -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 +204 -0
- package/src/lib/typed-routes-plugin.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/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/generators/app/files/tailwind/v2/postcss.config.cjs__template__ +0 -10
- package/src/lib/nx-plugin/src/generators/app/files/tailwind/v2/tailwind.config.cjs__template__ +0 -14
- package/src/lib/nx-plugin/src/generators/app/files/tailwind/v3/postcss.config.cjs__template__ +0 -10
- package/src/lib/nx-plugin/src/generators/app/files/tailwind/v3/tailwind.config.ts__template__ +0 -14
- 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 -107
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","
|
|
1
|
+
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/utils/versions/ng_17_X/versions.ts"],"sourcesContent":["// V17_X\nexport const V17_X_ANALOG_JS_ROUTER = '^1.7.0';\nexport const V17_X_ANALOG_JS_CONTENT = '^1.7.0';\nexport const V17_X_MARKED = '^5.0.2';\nexport const V17_X_MARKED_GFM_HEADING_ID = '^4.1.1';\nexport const V17_X_MARKED_HIGHLIGHT = '^2.2.1';\nexport const V17_X_MARKED_MANGLE = '^1.1.10';\nexport const V17_X_PRISMJS = '^1.29.0';\n\n// devDependencies\nexport const V17_X_ANALOG_JS_PLATFORM = '^1.7.0';\nexport const V17_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^1.7.0';\nexport const V17_X_ANALOG_JS_VITEST_ANGULAR = '^1.7.0';\nexport const V17_X_NX_ANGULAR = '~18.0.0';\nexport const V17_X_NX_VITE = '~18.0.0';\nexport const V17_X_JSDOM = '^22.0.0';\nexport const V17_X_VITE_TSCONFIG_PATHS = '^4.2.0';\nexport const V17_X_VITEST = '^1.3.1';\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;AAC9C,IAAa,mBAAmB;AAChC,IAAa,gBAAgB;AAC7B,IAAa,cAAc;AAC3B,IAAa,4BAA4B;AACzC,IAAa,eAAe"}
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
1
|
+
//#region packages/nx-plugin/src/utils/versions/ng_18_X/versions.ts
|
|
2
|
+
var V18_X_ANALOG_JS_ROUTER = "^1.7.0";
|
|
3
|
+
var V18_X_ANALOG_JS_CONTENT = "^1.7.0";
|
|
4
|
+
var V18_X_MARKED = "^15.0.7";
|
|
5
|
+
var V18_X_MARKED_GFM_HEADING_ID = "^4.1.1";
|
|
6
|
+
var V18_X_MARKED_HIGHLIGHT = "^2.2.1";
|
|
7
|
+
var V18_X_MARKED_MANGLE = "^1.1.10";
|
|
8
|
+
var V18_X_PRISMJS = "^1.29.0";
|
|
9
|
+
var V18_X_ANALOG_JS_PLATFORM = "^1.7.0";
|
|
10
|
+
var V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^1.7.0";
|
|
11
|
+
var V18_X_ANALOG_JS_VITEST_ANGULAR = "^1.7.0";
|
|
12
|
+
var V18_X_NX_ANGULAR = "~19.1.0";
|
|
13
|
+
var V18_X_NX_VITE = "~19.1.0";
|
|
14
|
+
var V18_X_JSDOM = "^22.0.0";
|
|
15
|
+
var V18_X_VITE_TSCONFIG_PATHS = "^4.2.0";
|
|
16
|
+
var V18_X_VITEST = "^1.3.1";
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.V18_X_ANALOG_JS_CONTENT = V18_X_ANALOG_JS_CONTENT;
|
|
19
|
+
exports.V18_X_ANALOG_JS_PLATFORM = V18_X_ANALOG_JS_PLATFORM;
|
|
20
|
+
exports.V18_X_ANALOG_JS_ROUTER = V18_X_ANALOG_JS_ROUTER;
|
|
21
|
+
exports.V18_X_ANALOG_JS_VITEST_ANGULAR = V18_X_ANALOG_JS_VITEST_ANGULAR;
|
|
22
|
+
exports.V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR;
|
|
23
|
+
exports.V18_X_JSDOM = V18_X_JSDOM;
|
|
24
|
+
exports.V18_X_MARKED = V18_X_MARKED;
|
|
25
|
+
exports.V18_X_MARKED_GFM_HEADING_ID = V18_X_MARKED_GFM_HEADING_ID;
|
|
26
|
+
exports.V18_X_MARKED_HIGHLIGHT = V18_X_MARKED_HIGHLIGHT;
|
|
27
|
+
exports.V18_X_MARKED_MANGLE = V18_X_MARKED_MANGLE;
|
|
28
|
+
exports.V18_X_NX_ANGULAR = V18_X_NX_ANGULAR;
|
|
29
|
+
exports.V18_X_NX_VITE = V18_X_NX_VITE;
|
|
30
|
+
exports.V18_X_PRISMJS = V18_X_PRISMJS;
|
|
31
|
+
exports.V18_X_VITEST = V18_X_VITEST;
|
|
32
|
+
exports.V18_X_VITE_TSCONFIG_PATHS = V18_X_VITE_TSCONFIG_PATHS;
|
|
33
|
+
|
|
21
34
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","
|
|
1
|
+
{"version":3,"file":"versions.js","names":[],"sources":["../../../../../../../../../nx-plugin/src/utils/versions/ng_18_X/versions.ts"],"sourcesContent":["// V18_X\nexport const V18_X_ANALOG_JS_ROUTER = '^1.7.0';\nexport const V18_X_ANALOG_JS_CONTENT = '^1.7.0';\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_PRISMJS = '^1.29.0';\n\n// devDependencies\nexport const V18_X_ANALOG_JS_PLATFORM = '^1.7.0';\nexport const V18_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^1.7.0';\nexport const V18_X_ANALOG_JS_VITEST_ANGULAR = '^1.7.0';\nexport const V18_X_NX_ANGULAR = '~19.1.0';\nexport const V18_X_NX_VITE = '~19.1.0';\nexport const V18_X_JSDOM = '^22.0.0';\nexport const V18_X_VITE_TSCONFIG_PATHS = '^4.2.0';\nexport const V18_X_VITEST = '^1.3.1';\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;AAC9C,IAAa,mBAAmB;AAChC,IAAa,gBAAgB;AAC7B,IAAa,cAAc;AAC3B,IAAa,4BAA4B;AACzC,IAAa,eAAe"}
|
|
@@ -1,18 +1,18 @@
|
|
|
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.20";
|
|
2
|
+
export declare const V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.20";
|
|
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.20";
|
|
9
|
+
export declare const V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.20";
|
|
10
|
+
export declare const V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.20";
|
|
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";
|
|
14
14
|
export declare const V19_X_VITE_TSCONFIG_PATHS = "^4.2.0";
|
|
15
15
|
export declare const V19_X_VITEST = "^3.0.0";
|
|
16
|
-
export declare const V19_X_VITE = "^
|
|
17
|
-
export declare const NX_X_LATEST_VITE = "^
|
|
16
|
+
export declare const V19_X_VITE = "^6.0.0";
|
|
17
|
+
export declare const NX_X_LATEST_VITE = "^8.0.0";
|
|
18
18
|
export declare const NX_X_LATEST_VITEST = "^4.0.0";
|
|
@@ -1,24 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
1
|
+
//#region packages/nx-plugin/src/utils/versions/ng_19_X/versions.ts
|
|
2
|
+
var V19_X_ANALOG_JS_ROUTER = "^3.0.0-alpha.20";
|
|
3
|
+
var V19_X_ANALOG_JS_CONTENT = "^3.0.0-alpha.20";
|
|
4
|
+
var V19_X_MARKED = "^15.0.7";
|
|
5
|
+
var V19_X_MARKED_GFM_HEADING_ID = "^4.1.1";
|
|
6
|
+
var V19_X_MARKED_HIGHLIGHT = "^2.2.1";
|
|
7
|
+
var V19_X_MARKED_MANGLE = "^1.1.10";
|
|
8
|
+
var V19_X_PRISMJS = "^1.29.0";
|
|
9
|
+
var V19_X_ANALOG_JS_PLATFORM = "^3.0.0-alpha.20";
|
|
10
|
+
var V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = "^3.0.0-alpha.20";
|
|
11
|
+
var V19_X_ANALOG_JS_VITEST_ANGULAR = "^3.0.0-alpha.20";
|
|
12
|
+
var V19_X_NX_VITE = "^22.0.0";
|
|
13
|
+
var V19_X_JSDOM = "^22.0.0";
|
|
14
|
+
var V19_X_VITE_TSCONFIG_PATHS = "^4.2.0";
|
|
15
|
+
var V19_X_VITEST = "^3.0.0";
|
|
16
|
+
var V19_X_VITE = "^6.0.0";
|
|
17
|
+
var NX_X_LATEST_VITE = "^8.0.0";
|
|
18
|
+
var NX_X_LATEST_VITEST = "^4.0.0";
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.NX_X_LATEST_VITE = NX_X_LATEST_VITE;
|
|
21
|
+
exports.NX_X_LATEST_VITEST = NX_X_LATEST_VITEST;
|
|
22
|
+
exports.V19_X_ANALOG_JS_CONTENT = V19_X_ANALOG_JS_CONTENT;
|
|
23
|
+
exports.V19_X_ANALOG_JS_PLATFORM = V19_X_ANALOG_JS_PLATFORM;
|
|
24
|
+
exports.V19_X_ANALOG_JS_ROUTER = V19_X_ANALOG_JS_ROUTER;
|
|
25
|
+
exports.V19_X_ANALOG_JS_VITEST_ANGULAR = V19_X_ANALOG_JS_VITEST_ANGULAR;
|
|
26
|
+
exports.V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR;
|
|
27
|
+
exports.V19_X_JSDOM = V19_X_JSDOM;
|
|
28
|
+
exports.V19_X_MARKED = V19_X_MARKED;
|
|
29
|
+
exports.V19_X_MARKED_GFM_HEADING_ID = V19_X_MARKED_GFM_HEADING_ID;
|
|
30
|
+
exports.V19_X_MARKED_HIGHLIGHT = V19_X_MARKED_HIGHLIGHT;
|
|
31
|
+
exports.V19_X_MARKED_MANGLE = V19_X_MARKED_MANGLE;
|
|
32
|
+
exports.V19_X_NX_VITE = V19_X_NX_VITE;
|
|
33
|
+
exports.V19_X_PRISMJS = V19_X_PRISMJS;
|
|
34
|
+
exports.V19_X_VITE = V19_X_VITE;
|
|
35
|
+
exports.V19_X_VITEST = V19_X_VITEST;
|
|
36
|
+
exports.V19_X_VITE_TSCONFIG_PATHS = V19_X_VITE_TSCONFIG_PATHS;
|
|
37
|
+
|
|
24
38
|
//# sourceMappingURL=versions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","
|
|
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.20';\nexport const V19_X_ANALOG_JS_CONTENT = '^3.0.0-alpha.20';\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.20';\nexport const V19_X_ANALOG_JS_VITE_PLUGIN_ANGULAR = '^3.0.0-alpha.20';\nexport const V19_X_ANALOG_JS_VITEST_ANGULAR = '^3.0.0-alpha.20';\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"}
|
package/src/lib/options.d.ts
CHANGED
|
@@ -1,85 +1,163 @@
|
|
|
1
|
-
import type { PluginOptions } from
|
|
2
|
-
import type { NitroConfig, PrerenderRoute } from
|
|
3
|
-
import type { SitemapConfig, PrerenderContentDir, PrerenderContentFile, PrerenderRouteConfig } from
|
|
4
|
-
import { ContentPluginOptions } from
|
|
5
|
-
declare module
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import type { PluginOptions } from "@analogjs/vite-plugin-angular";
|
|
2
|
+
import type { NitroConfig, PrerenderRoute } from "nitro/types";
|
|
3
|
+
import type { SitemapConfig, SitemapEntry, SitemapExcludeRule, SitemapPriority, SitemapRouteDefinition, SitemapRouteInput, SitemapRouteSource, SitemapTransform, PrerenderContentDir, PrerenderContentFile, PrerenderSitemapConfig, PrerenderRouteConfig } from "@analogjs/vite-plugin-nitro";
|
|
4
|
+
import type { ContentPluginOptions } from "./content-plugin.js";
|
|
5
|
+
declare module "nitro/types" {
|
|
6
|
+
interface NitroRouteConfig {
|
|
7
|
+
ssr?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface NitroRouteRules {
|
|
10
|
+
ssr?: boolean;
|
|
11
|
+
}
|
|
12
12
|
}
|
|
13
13
|
export interface PrerenderOptions {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
25
|
}
|
|
26
26
|
export interface Options {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
27
|
+
ssr?: boolean;
|
|
28
|
+
ssrBuildDir?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Prerender the static pages without producing the server output.
|
|
31
|
+
*/
|
|
32
|
+
static?: boolean;
|
|
33
|
+
prerender?: PrerenderOptions;
|
|
34
|
+
entryServer?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Pass configuration options to the internal `@analogjs/vite-plugin-angular`
|
|
37
|
+
* plugin. Set to `false` to disable the internal vite plugin (e.g. when
|
|
38
|
+
* using an alternative compiler like `@oxc-angular/vite`).
|
|
39
|
+
*
|
|
40
|
+
* `vite.build` uses Vite's native config shape and is forwarded to the
|
|
41
|
+
* internal Nitro/Vite build pipeline, while the remaining fields are passed
|
|
42
|
+
* to `@analogjs/vite-plugin-angular`.
|
|
43
|
+
*
|
|
44
|
+
* When `false`, the following top-level options are ignored because they
|
|
45
|
+
* are only forwarded to the internal Angular plugin: `jit`,
|
|
46
|
+
* `disableTypeChecking`, `liveReload`, `inlineStylesExtension`,
|
|
47
|
+
* `fileReplacements`, and `include`.
|
|
48
|
+
*
|
|
49
|
+
* Use this to configure the embedded Angular integration itself, not as the
|
|
50
|
+
* primary home for Analog-owned experimental features.
|
|
51
|
+
*/
|
|
52
|
+
vite?: PluginOptions | false;
|
|
53
|
+
nitro?: NitroConfig;
|
|
54
|
+
apiPrefix?: string;
|
|
55
|
+
jit?: boolean;
|
|
56
|
+
index?: string;
|
|
57
|
+
workspaceRoot?: string;
|
|
58
|
+
content?: ContentPluginOptions;
|
|
59
|
+
/**
|
|
60
|
+
* Extension applied for inline styles
|
|
61
|
+
*/
|
|
62
|
+
inlineStylesExtension?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Enables Angular's HMR during development
|
|
65
|
+
*/
|
|
66
|
+
liveReload?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Additional page paths to include
|
|
69
|
+
*/
|
|
70
|
+
additionalPagesDirs?: string[];
|
|
71
|
+
/**
|
|
72
|
+
* Additional page paths to include
|
|
73
|
+
*/
|
|
74
|
+
additionalContentDirs?: string[];
|
|
75
|
+
/**
|
|
76
|
+
* Additional API paths to include
|
|
77
|
+
*/
|
|
78
|
+
additionalAPIDirs?: string[];
|
|
79
|
+
/**
|
|
80
|
+
* Additional files to include in compilation
|
|
81
|
+
*/
|
|
82
|
+
include?: string[];
|
|
83
|
+
/**
|
|
84
|
+
* Toggles internal API middleware.
|
|
85
|
+
* If disabled, a proxy request is used to route /api
|
|
86
|
+
* requests to / in the production server build.
|
|
87
|
+
*/
|
|
88
|
+
useAPIMiddleware?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Disable type checking diagnostics by the Angular compiler
|
|
91
|
+
*/
|
|
92
|
+
disableTypeChecking?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* File replacements
|
|
95
|
+
*/
|
|
96
|
+
fileReplacements?: PluginOptions["fileReplacements"];
|
|
97
|
+
/**
|
|
98
|
+
* Experimental features. These APIs are subject to change.
|
|
99
|
+
*
|
|
100
|
+
* `@analogjs/platform` is the default rollout and orchestration surface for
|
|
101
|
+
* Analog-owned experiments. These flags may delegate to dedicated feature
|
|
102
|
+
* plugins or forward options into lower-level integrations while preserving
|
|
103
|
+
* a single Analog-first authoring surface.
|
|
104
|
+
*/
|
|
105
|
+
experimental?: {
|
|
106
|
+
/**
|
|
107
|
+
* Use Angular's experimental compilation API.
|
|
108
|
+
*
|
|
109
|
+
* This is forwarded to `@analogjs/vite-plugin-angular`'s
|
|
110
|
+
* `experimental.useAngularCompilationAPI`.
|
|
111
|
+
*
|
|
112
|
+
* Also accepted at `vite.experimental.useAngularCompilationAPI`
|
|
113
|
+
* for backwards compatibility.
|
|
114
|
+
*
|
|
115
|
+
* Has no effect when `vite` is set to `false`.
|
|
116
|
+
*/
|
|
117
|
+
useAngularCompilationAPI?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Enable typed route table generation for type-safe navigation.
|
|
120
|
+
*
|
|
121
|
+
* When enabled, `@analogjs/platform` generates a single route module
|
|
122
|
+
* that augments `AnalogRouteTable` with typed params and query for each
|
|
123
|
+
* file-based route. JSON-LD manifest generation is configured on the same
|
|
124
|
+
* object so both codegen features share one generated file.
|
|
125
|
+
*
|
|
126
|
+
* - `true` — generates `src/routeTree.gen.ts` with `routeJsonLdManifest`
|
|
127
|
+
* - `TypedRouterOptions` — customize output path or disable just the
|
|
128
|
+
* JSON-LD manifest piece
|
|
129
|
+
*
|
|
130
|
+
* Unlocks type-safe usage of:
|
|
131
|
+
* - `routePath()` — build route link objects for `[routerLink]`
|
|
132
|
+
* - `injectNavigate()` — typed navigation
|
|
133
|
+
* - `injectParams(from)` — typed params signal
|
|
134
|
+
* - `injectQuery(from)` — typed query signal
|
|
135
|
+
*
|
|
136
|
+
* Inspired by TanStack Router's `routeTree.gen.ts` codegen.
|
|
137
|
+
*/
|
|
138
|
+
typedRouter?: boolean | TypedRouterOptions;
|
|
139
|
+
};
|
|
84
140
|
}
|
|
85
|
-
export
|
|
141
|
+
export interface TypedRouterOptions {
|
|
142
|
+
/**
|
|
143
|
+
* Output path for the single generated route module,
|
|
144
|
+
* relative to the app root.
|
|
145
|
+
*
|
|
146
|
+
* @default 'src/routeTree.gen.ts'
|
|
147
|
+
*/
|
|
148
|
+
outFile?: string;
|
|
149
|
+
/**
|
|
150
|
+
* Include generated `routeJsonLdManifest` data in the generated route file.
|
|
151
|
+
*
|
|
152
|
+
* @default true
|
|
153
|
+
*/
|
|
154
|
+
jsonLdManifest?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Fail production builds after regenerating a stale checked-in route file.
|
|
157
|
+
* Development and watch mode continue to update the file automatically.
|
|
158
|
+
*
|
|
159
|
+
* @default true
|
|
160
|
+
*/
|
|
161
|
+
verifyOnBuild?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export type { PrerenderContentDir, PrerenderContentFile, PrerenderSitemapConfig, SitemapConfig, SitemapEntry, SitemapExcludeRule, SitemapPriority, SitemapRouteDefinition, SitemapRouteInput, SitemapRouteSource, SitemapTransform };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Plugin } from
|
|
2
|
-
import { Options } from
|
|
1
|
+
import { Plugin } from "vite";
|
|
2
|
+
import { Options } from "./options.js";
|
|
3
3
|
export declare function platformPlugin(opts?: Options): Plugin[];
|
|
@@ -1,62 +1,68 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
ssr: true,
|
|
15
|
-
...opts,
|
|
16
|
-
};
|
|
17
|
-
let nitroOptions = platformOptions?.nitro;
|
|
18
|
-
if (nitroOptions?.routeRules) {
|
|
19
|
-
nitroOptions = {
|
|
20
|
-
...nitroOptions,
|
|
21
|
-
routeRules: Object.keys(nitroOptions.routeRules).reduce((config, curr) => {
|
|
22
|
-
return {
|
|
23
|
-
...config,
|
|
24
|
-
[curr]: {
|
|
25
|
-
...config[curr],
|
|
26
|
-
headers: {
|
|
27
|
-
...config[curr].headers,
|
|
28
|
-
'x-analog-no-ssr': config[curr]?.ssr === false ? 'true' : undefined,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
}, nitroOptions.routeRules),
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
return [
|
|
36
|
-
...viteNitroPlugin(platformOptions, nitroOptions),
|
|
37
|
-
...(platformOptions.ssr ? [ssrBuildPlugin(), ...injectHTMLPlugin()] : []),
|
|
38
|
-
...(!isTest ? depsPlugin(platformOptions) : []),
|
|
39
|
-
...routerPlugin(platformOptions),
|
|
40
|
-
...contentPlugin(platformOptions?.content, platformOptions),
|
|
41
|
-
...(opts?.vite === false
|
|
42
|
-
? []
|
|
43
|
-
: angular({
|
|
44
|
-
jit: platformOptions.jit,
|
|
45
|
-
workspaceRoot: platformOptions.workspaceRoot,
|
|
46
|
-
disableTypeChecking: platformOptions.disableTypeChecking ?? false,
|
|
47
|
-
include: [
|
|
48
|
-
...(platformOptions.include ?? []),
|
|
49
|
-
...(platformOptions.additionalPagesDirs ?? []).map((pageDir) => `${pageDir}/**/*.page.ts`),
|
|
50
|
-
],
|
|
51
|
-
additionalContentDirs: platformOptions.additionalContentDirs,
|
|
52
|
-
liveReload: platformOptions.liveReload,
|
|
53
|
-
inlineStylesExtension: platformOptions.inlineStylesExtension,
|
|
54
|
-
fileReplacements: platformOptions.fileReplacements,
|
|
55
|
-
...(opts?.vite ?? {}),
|
|
56
|
-
})),
|
|
57
|
-
serverModePlugin(),
|
|
58
|
-
ssrXhrBuildPlugin(),
|
|
59
|
-
clearClientPageEndpointsPlugin(),
|
|
60
|
-
];
|
|
1
|
+
import { routerPlugin } from "./router-plugin.js";
|
|
2
|
+
import { ssrBuildPlugin } from "./ssr/ssr-build-plugin.js";
|
|
3
|
+
import { contentPlugin } from "./content-plugin.js";
|
|
4
|
+
import { clearClientPageEndpointsPlugin } from "./clear-client-page-endpoint.js";
|
|
5
|
+
import { depsPlugin } from "./deps-plugin.js";
|
|
6
|
+
import { injectHTMLPlugin } from "./ssr/inject-html-plugin.js";
|
|
7
|
+
import { serverModePlugin } from "../server-mode-plugin.js";
|
|
8
|
+
import { routeGenerationPlugin } from "./route-generation-plugin.js";
|
|
9
|
+
import viteNitroPlugin from "@analogjs/vite-plugin-nitro";
|
|
10
|
+
import angular from "@analogjs/vite-plugin-angular";
|
|
11
|
+
//#region packages/platform/src/lib/platform-plugin.ts
|
|
12
|
+
function externalPlugins(plugins) {
|
|
13
|
+
return plugins;
|
|
61
14
|
}
|
|
62
|
-
|
|
15
|
+
function platformPlugin(opts = {}) {
|
|
16
|
+
const isTest = process.env.NODE_ENV === "test" || !!process.env["VITEST"];
|
|
17
|
+
const viteOptions = opts?.vite === false ? void 0 : opts?.vite;
|
|
18
|
+
const { ...platformOptions } = {
|
|
19
|
+
ssr: true,
|
|
20
|
+
...opts
|
|
21
|
+
};
|
|
22
|
+
const useAngularCompilationAPI = platformOptions.experimental?.useAngularCompilationAPI ?? viteOptions?.experimental?.useAngularCompilationAPI;
|
|
23
|
+
let nitroOptions = platformOptions?.nitro;
|
|
24
|
+
if (nitroOptions?.routeRules) nitroOptions = {
|
|
25
|
+
...nitroOptions,
|
|
26
|
+
routeRules: Object.keys(nitroOptions.routeRules).reduce((config, curr) => {
|
|
27
|
+
return {
|
|
28
|
+
...config,
|
|
29
|
+
[curr]: {
|
|
30
|
+
...config[curr],
|
|
31
|
+
headers: {
|
|
32
|
+
...config[curr].headers,
|
|
33
|
+
"x-analog-no-ssr": config[curr]?.ssr === false ? "true" : void 0
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}, nitroOptions.routeRules)
|
|
38
|
+
};
|
|
39
|
+
return [
|
|
40
|
+
...externalPlugins(viteNitroPlugin(platformOptions, nitroOptions)),
|
|
41
|
+
...platformOptions.ssr ? [...ssrBuildPlugin(), ...injectHTMLPlugin()] : [],
|
|
42
|
+
...!isTest ? depsPlugin(platformOptions) : [],
|
|
43
|
+
...routerPlugin(platformOptions),
|
|
44
|
+
routeGenerationPlugin(platformOptions),
|
|
45
|
+
...contentPlugin(platformOptions?.content, platformOptions),
|
|
46
|
+
...opts?.vite === false ? [] : externalPlugins(angular({
|
|
47
|
+
jit: platformOptions.jit,
|
|
48
|
+
workspaceRoot: platformOptions.workspaceRoot,
|
|
49
|
+
disableTypeChecking: platformOptions.disableTypeChecking,
|
|
50
|
+
include: [...platformOptions.include ?? [], ...(platformOptions.additionalPagesDirs ?? []).map((pageDir) => `${pageDir}/**/*.page.ts`)],
|
|
51
|
+
additionalContentDirs: platformOptions.additionalContentDirs,
|
|
52
|
+
liveReload: platformOptions.liveReload,
|
|
53
|
+
inlineStylesExtension: platformOptions.inlineStylesExtension,
|
|
54
|
+
fileReplacements: platformOptions.fileReplacements,
|
|
55
|
+
...viteOptions ?? {},
|
|
56
|
+
experimental: {
|
|
57
|
+
...viteOptions?.experimental ?? {},
|
|
58
|
+
useAngularCompilationAPI
|
|
59
|
+
}
|
|
60
|
+
})),
|
|
61
|
+
...serverModePlugin(),
|
|
62
|
+
...clearClientPageEndpointsPlugin()
|
|
63
|
+
];
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
export { platformPlugin };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=platform-plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platform-plugin.js","names":[],"sources":["../../../src/lib/platform-plugin.ts"],"sourcesContent":["import { Plugin } from 'vite';\nimport viteNitroPlugin from '@analogjs/vite-plugin-nitro';\nimport angular from '@analogjs/vite-plugin-angular';\n\nimport { Options } from './options.js';\nimport { routerPlugin } from './router-plugin.js';\nimport { ssrBuildPlugin } from './ssr/ssr-build-plugin.js';\nimport { contentPlugin } from './content-plugin.js';\nimport { clearClientPageEndpointsPlugin } from './clear-client-page-endpoint.js';\nimport { depsPlugin } from './deps-plugin.js';\nimport { injectHTMLPlugin } from './ssr/inject-html-plugin.js';\nimport { serverModePlugin } from '../server-mode-plugin.js';\nimport { routeGenerationPlugin } from './route-generation-plugin.js';\n\n// Bridge Plugin types from external @analogjs packages that resolve a different vite instance\nfunction externalPlugins(plugins: unknown): Plugin[] {\n return plugins as Plugin[];\n}\n\nexport function platformPlugin(opts: Options = {}): Plugin[] {\n const isTest = process.env['NODE_ENV'] === 'test' || !!process.env['VITEST'];\n const viteOptions = opts?.vite === false ? undefined : opts?.vite;\n const { ...platformOptions } = {\n ssr: true,\n ...opts,\n };\n const useAngularCompilationAPI =\n platformOptions.experimental?.useAngularCompilationAPI ??\n viteOptions?.experimental?.useAngularCompilationAPI;\n let nitroOptions = platformOptions?.nitro;\n\n if (nitroOptions?.routeRules) {\n nitroOptions = {\n ...nitroOptions,\n routeRules: Object.keys(nitroOptions.routeRules).reduce(\n (config, curr) => {\n return {\n ...config,\n [curr]: {\n ...config[curr],\n headers: {\n ...config[curr].headers,\n 'x-analog-no-ssr':\n config[curr]?.ssr === false ? 'true' : undefined,\n } as any,\n },\n };\n },\n nitroOptions.routeRules,\n ),\n };\n }\n\n return [\n ...externalPlugins(viteNitroPlugin(platformOptions as any, nitroOptions)),\n ...(platformOptions.ssr\n ? [...ssrBuildPlugin(), ...injectHTMLPlugin()]\n : []),\n ...(!isTest ? depsPlugin(platformOptions) : []),\n ...routerPlugin(platformOptions),\n routeGenerationPlugin(platformOptions),\n ...contentPlugin(platformOptions?.content, platformOptions),\n ...(opts?.vite === false\n ? []\n : externalPlugins(\n angular({\n jit: platformOptions.jit,\n workspaceRoot: platformOptions.workspaceRoot,\n // Let the Angular plugin keep its own dev-friendly default unless the\n // app explicitly opts into stricter serve-time diagnostics.\n disableTypeChecking: platformOptions.disableTypeChecking,\n include: [\n ...(platformOptions.include ?? []),\n ...(platformOptions.additionalPagesDirs ?? []).map(\n (pageDir) => `${pageDir}/**/*.page.ts`,\n ),\n ],\n additionalContentDirs: platformOptions.additionalContentDirs,\n liveReload: platformOptions.liveReload,\n inlineStylesExtension: platformOptions.inlineStylesExtension,\n fileReplacements: platformOptions.fileReplacements,\n ...(viteOptions ?? {}),\n experimental: {\n ...(viteOptions?.experimental ?? {}),\n useAngularCompilationAPI,\n },\n }),\n )),\n ...serverModePlugin(),\n ...clearClientPageEndpointsPlugin(),\n ];\n}\n"],"mappings":";;;;;;;;;;;AAeA,SAAS,gBAAgB,SAA4B;AACnD,QAAO;;AAGT,SAAgB,eAAe,OAAgB,EAAE,EAAY;CAC3D,MAAM,SAAA,QAAA,IAAA,aAAqC,UAAU,CAAC,CAAC,QAAQ,IAAI;CACnE,MAAM,cAAc,MAAM,SAAS,QAAQ,KAAA,IAAY,MAAM;CAC7D,MAAM,EAAE,GAAG,oBAAoB;EAC7B,KAAK;EACL,GAAG;EACJ;CACD,MAAM,2BACJ,gBAAgB,cAAc,4BAC9B,aAAa,cAAc;CAC7B,IAAI,eAAe,iBAAiB;AAEpC,KAAI,cAAc,WAChB,gBAAe;EACb,GAAG;EACH,YAAY,OAAO,KAAK,aAAa,WAAW,CAAC,QAC9C,QAAQ,SAAS;AAChB,UAAO;IACL,GAAG;KACF,OAAO;KACN,GAAG,OAAO;KACV,SAAS;MACP,GAAG,OAAO,MAAM;MAChB,mBACE,OAAO,OAAO,QAAQ,QAAQ,SAAS,KAAA;MAC1C;KACF;IACF;KAEH,aAAa,WACd;EACF;AAGH,QAAO;EACL,GAAG,gBAAgB,gBAAgB,iBAAwB,aAAa,CAAC;EACzE,GAAI,gBAAgB,MAChB,CAAC,GAAG,gBAAgB,EAAE,GAAG,kBAAkB,CAAC,GAC5C,EAAE;EACN,GAAI,CAAC,SAAS,WAAW,gBAAgB,GAAG,EAAE;EAC9C,GAAG,aAAa,gBAAgB;EAChC,sBAAsB,gBAAgB;EACtC,GAAG,cAAc,iBAAiB,SAAS,gBAAgB;EAC3D,GAAI,MAAM,SAAS,QACf,EAAE,GACF,gBACE,QAAQ;GACN,KAAK,gBAAgB;GACrB,eAAe,gBAAgB;GAG/B,qBAAqB,gBAAgB;GACrC,SAAS,CACP,GAAI,gBAAgB,WAAW,EAAE,EACjC,IAAI,gBAAgB,uBAAuB,EAAE,EAAE,KAC5C,YAAY,GAAG,QAAQ,eACzB,CACF;GACD,uBAAuB,gBAAgB;GACvC,YAAY,gBAAgB;GAC5B,uBAAuB,gBAAgB;GACvC,kBAAkB,gBAAgB;GAClC,GAAI,eAAe,EAAE;GACrB,cAAc;IACZ,GAAI,aAAa,gBAAgB,EAAE;IACnC;IACD;GACF,CAAC,CACH;EACL,GAAG,kBAAkB;EACrB,GAAG,gCAAgC;EACpC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface RouteFileDiscoveryOptions {
|
|
2
|
+
root: string;
|
|
3
|
+
workspaceRoot: string;
|
|
4
|
+
additionalPagesDirs: string[];
|
|
5
|
+
additionalContentDirs: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface RouteFileDiscovery {
|
|
8
|
+
getRouteFiles(): string[];
|
|
9
|
+
getContentFiles(): string[];
|
|
10
|
+
getDiscoveredFileKind(path: string): "route" | "content" | null;
|
|
11
|
+
updateDiscoveredFile(path: string, event: "add" | "change" | "unlink"): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns true if the normalized filename was discovered from an app-local
|
|
14
|
+
* glob (under the configured root) rather than from an additional directory.
|
|
15
|
+
*
|
|
16
|
+
* Used by collision priority to prefer app-local routes over shared/external
|
|
17
|
+
* routes based on actual configured roots instead of hard-coded path
|
|
18
|
+
* substrings.
|
|
19
|
+
*/
|
|
20
|
+
isAppLocal(normalizedFilename: string): boolean;
|
|
21
|
+
reset(): void;
|
|
22
|
+
}
|
|
23
|
+
export declare function createRouteFileDiscovery(options: RouteFileDiscoveryOptions): RouteFileDiscovery;
|