Skip to content
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

feat(sandbox): create an Angular app using the new default bundler (ARCH-281) #2843

Merged
merged 3 commits into from
Sep 22, 2024

Conversation

tschaffter
Copy link
Member

@tschaffter tschaffter commented Sep 22, 2024

Closes https://sagebionetworks.jira.com/browse/ARCH-281

Changelog

  • Create the Angular app sandbox-angular-app
  • Pin the version of npm packages

Notes

  • Serving the app with esbuild is faster than with webpack
    • webpack: 7.8 seconds
    • esbuild: 4.3 seconds

Preview

Create the app

nx g @nx/angular:application sandbox-angular-app \
  --directory apps/sandbox/angular-app \
  --bundler esbuild \
  --addTailwind \
  --ssr \
  --projectNameAndRootFormat as-provided \
  --dry-run

Serve the app

nx serve sandbox-angular-app

With esbuild:

Application bundle generation complete. [4.415 seconds]

Navigate to localhost:4200:

image

@tschaffter tschaffter marked this pull request as ready for review September 22, 2024 23:00
@tschaffter tschaffter merged commit d5a21ee into Sage-Bionetworks:main Sep 22, 2024
9 of 10 checks passed
@tschaffter tschaffter deleted the sandbox/add-angular-app branch September 22, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant