You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Page and content routes can be sourced from directories outside the main src/app/pages and src/content directories
Adds support for discovering page routes and content from projects in a monorepo
Adds support to the Vite plugin for Angular to include additional files in compilation
Allows the createRoutes function to be used with the Angular application builder without overrides
/// <reference types="vitest" />import{defineConfig}from'vite';importanalogfrom'@analogjs/platform';// https://vitejs.dev/config/exportdefaultdefineConfig(({ mode })=>({build: {target: ['es2020'],},resolve: {mainFields: ['module'],},plugins: [analog({// scans for `**/*.page.{ts,analog}`. Must be inside a `pages` directoryadditionalPagesDirs: ['/libs/shared/feature'],// scans for `**/*.{md,agx}`. Must be inside a `content` directoryadditionalContentDirs: ['/libs/shared/feature'],// scans for `**/*.{ts}`. Must be inside a `routes` directoryadditionalAPIDirs: ['/libs/shared/feature/src/api']})],test: {globals: true,environment: 'jsdom',setupFiles: ['src/test-setup.ts'],include: ['**/*.spec.ts'],reporters: ['default'],},define: {'import.meta.vitest': mode!=='production',},}));
Does this PR introduce a breaking change?
Yes
No
Other information
[optional] What gif best describes this PR or how it makes you feel?
brandonroberts
changed the title
feat: add support for configuring of additional page/content route sources
feat: add support for configuring additional page/content route sources
Jul 24, 2024
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Related to #904
What is the new behavior?
src/app/pages
andsrc/content
directoriescreateRoutes
function to be used with the Angular application builder without overridesDoes this PR introduce a breaking change?
Other information
[optional] What gif best describes this PR or how it makes you feel?