Skip to content

fix: adapt publish directory based on builder #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 2, 2024
Merged

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Dec 11, 2023

In the Angular world, a builder is something like a bundling strategy, and they decide where to output static assets. Newly created Angular applications use the application builder, which emits static assets into dist/<project-name>/browser. Old applications that updated to NG17 can still use other builders, like the browser builder. Surprise: They output into dist/<project-name>! This PR adds two tests for application builder and browser builder, and adapts the publish directory we're expecting based on that.

@Skn0tt Skn0tt requested a review from JGAntunes December 11, 2023 14:58
@Skn0tt Skn0tt self-assigned this Dec 11, 2023
Copy link

netlify bot commented Dec 11, 2023

Deploy Preview for plugin-angular-universal-demo ready!

Name Link
🔨 Latest commit f35d72d
🔍 Latest deploy log https://app.netlify.com/sites/plugin-angular-universal-demo/deploys/65bcc7b7fd4f640008b67f63
😎 Deploy Preview https://deploy-preview-94--plugin-angular-universal-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Dec 11, 2023
Copy link
Contributor

@JGAntunes JGAntunes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code wise LGTM, but I think we still need to ignore prettier for the fixtures (failing on CI)

@Skn0tt
Copy link
Contributor Author

Skn0tt commented Dec 12, 2023

done!

@Skn0tt Skn0tt requested a review from JGAntunes February 2, 2024 10:56
@@ -9,7 +9,8 @@ const fixOutputDir = async function ({ failBuild, failPlugin, siteRoot, PUBLISH_

const { outputPath } = project.architect.build.options

const correctPublishDir = join(outputPath, 'browser')
const isApplicationBuilder = project.architect.build.builder.endsWith(':application')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you checked this with nx workspaces as well? 🤔

@Skn0tt Skn0tt merged commit 0d2b600 into main Feb 2, 2024
@mrstork mrstork deleted the browser-builder branch May 30, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants