16.2.0 • Published 8 months ago

@nguniversal/builders v16.2.0

Weekly downloads
67,191
License
MIT
Repository
github
Last release
8 months ago

Angular Universal Builders

Angular Universal comes with some custom Builders. All Parameters are also specified in their schema.json file.

Builders

  • prerender
  • ssr-dev-server
  • static-generator

Prerender

Description

This builder is used to prerender pages of your application. Prerendering is the process where a dynamic page is processed at build time generating static HTML.

For more information about this see: https://angular.io/guide/prerendering

Use this if you want to serve fast Pages, where you don't have changing Content on each request.

Options

NameType of ValueDescriptionRequired
browserTargetPattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$Target to build.✔️
serverTargetPattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$Server target to use for prerendering the app.✔️
routesFileA Filename - Attention no schema validation!The path to a file containing routes separated by newlines.
routesUnique StringsThe routes to render.
guessRoutesBolean (default: true)Whether or not the builder should extract routes and guess which paths to render.
numProcessesNumber (min: 1, default: 1)The number of cpus to use. Defaults to all but one.

SSR Dev Server

Summary

This command is similar to ng serve, which offers live reload during development, but uses server-side rendering. The application runs in watch mode and refreshes the browser after every change. This command is slower than the actual ng serve command.

Attention: This builder is only for local development.

Options

NameType of ValueDescriptionRequired
browserTargetPattern: .+:.+(:.+)?Target to build.✔️
serverTargetPattern: .+:.+(:.+)?Server target to build.✔️
hoststring (default: localhost)Host to listen on.
portnumber (default: 4200)Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port.
publicHoststringThe URL that the browser client should use to connect to the development server. Use for a complex dev server setup, such as one with reverse proxies.
openboolean (default: false)Opens the url in default browser.
progressboolean (default: true)Log progress to the console while building.
inspectboolean (default: false)Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'.
sslboolean (default: false)Serve using HTTPS.
sslKeystringSSL key to use for serving HTTPS.
sslCertstringSSL certificate to use for serving HTTPS.
proxyConfigstringProxy configuration file.

Static Generator

Description

This builder is used to prerender pages of your application using the experimental Clover implementation. Prerendering is the process where a dynamic page is processed at build time generating static HTML.

Attention: Use this if you don't have any server side Code - as "serverTarget" is not configurable.

Option

NameType of ValueDescriptionRequired
browserTargetPattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$Target to build.✔️
routesFilestringThe path to a file containing routes separated by newlines.
routesarray of Unique StringsThe routes to render.
guessRoutesboolean (default: true)Whether or not the builder should extract routes and guess which paths to render.
numProcessesnumber (min: 1, default: 1)The number of cpus to use. Defaults to all but one.
16.1.3

8 months ago

16.1.2

9 months ago

16.2.0-rc.0

9 months ago

16.2.0

8 months ago

16.1.1

10 months ago

16.1.0

10 months ago

16.1.0-rc.0

11 months ago

16.1.0-next.0

11 months ago

16.0.2

11 months ago

16.0.1

11 months ago

16.0.0

12 months ago

16.0.0-next.0

1 year ago

16.0.0-rc.0

1 year ago

16.0.0-rc.1

1 year ago

16.0.0-rc.2

12 months ago

15.2.1

1 year ago

15.2.0-rc.0

1 year ago

15.2.0

1 year ago

15.1.0

1 year ago

15.1.0-rc.0

1 year ago

15.0.0-rc.0

1 year ago

15.0.0-rc.1

1 year ago

15.0.0

1 year ago

14.2.2

1 year ago

14.2.3

1 year ago

14.2.1

1 year ago

15.0.0-next.1

1 year ago

15.0.0-next.0

2 years ago

14.2.0-rc.0

2 years ago

14.2.0

2 years ago

14.1.0-rc.0

2 years ago

14.1.0

2 years ago

14.1.0-next.2

2 years ago

14.1.0-next.1

2 years ago

14.1.0-next.0

2 years ago

14.0.1

2 years ago

14.0.2

2 years ago

14.0.3

2 years ago

14.2.0-next.0

2 years ago

13.1.1

2 years ago

14.0.0-next.0

2 years ago

14.0.0-rc.1

2 years ago

14.0.0-rc.0

2 years ago

14.0.0

2 years ago

13.1.0

2 years ago

13.0.2

2 years ago

13.1.0-next.1

2 years ago

13.0.1

2 years ago

13.0.0

2 years ago

13.0.0-rc.2

2 years ago

12.1.3

2 years ago

13.1.0-next.0

2 years ago

12.1.2

2 years ago

13.0.0-rc.1

2 years ago

13.0.0-rc.0

3 years ago

12.1.1

3 years ago

12.1.0

3 years ago

12.1.0-next.0

3 years ago

12.0.2

3 years ago

12.0.1

3 years ago

12.0.0

3 years ago

12.0.0-rc.1

3 years ago

12.0.0-rc.0

3 years ago

12.0.0-next.1

3 years ago

11.2.1

3 years ago

12.0.0-next.0

3 years ago

11.2.0

3 years ago

11.1.2

3 years ago

11.1.1

3 years ago

11.1.0

3 years ago

11.1.0-next.0

3 years ago

11.0.1

3 years ago

11.0.0

3 years ago

11.0.0-rc.0

3 years ago

11.0.0-next.2

3 years ago

11.0.0-next.1

4 years ago

11.0.0-next.0

4 years ago

10.1.0

4 years ago

10.1.0-rc.0

4 years ago

10.0.2

4 years ago

10.0.1

4 years ago

10.0.0

4 years ago

10.0.0-rc.1

4 years ago

10.0.0-rc.0

4 years ago

9.1.1

4 years ago

10.0.0-next.0

4 years ago

9.1.0

4 years ago

9.0.2

4 years ago

9.0.1

4 years ago

9.0.0

4 years ago

9.0.0-rc.1

4 years ago

9.0.0-rc.0

4 years ago

9.0.0-next.14

4 years ago

9.0.0-next.13

4 years ago

9.0.0-next.9

4 years ago

9.0.0-next.8

4 years ago

9.0.0-next.7

4 years ago