Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Should we have ng add @angular/universal similar to @angular/pwa? #1007

@matthewharwood

Description

@matthewharwood

I'm submitting a ...

- [x] feature request

For support of ng add @angular/universal schematic.

It would be great to get the boilerplate out of the box and support for features like lazy-loading and prerendering w/o minimal effort.

What modules are related to this Issue?

- [x] common
- [x] express-engine
- [x] module-map-ngfactory-loader
- [x] Prerender

Current behavior?

I would like to have a ng add @angular/universal schematic

ng new morningharwood --routing
ng generate universal --client-project morningharwood
ng generate app-shell  --route=app-shell-path --client-project=morningharwood
ng add @angular/pwa --project morningharwood
ng build --prod

Expected behavior?

ng new morningharwood --routing
ng add @angular/universal --prerender --express --project morningharwood
ng add @angular/pwa --project morningharwood
ng build --prod

From this, we could get the canonical files needed to do basic universal prerendering of an angular cli project.

Other information (optional)

it would be amazing if this could work with nx too (but we'll prob have to talk to them)!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions