npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nguniversal/builders

v16.2.0

Published

Angular Universal builders package

Downloads

195,525

Readme

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

| Name | Type of Value | Description | Required | | ------------- | -------------------------------------------- | --------------------------------------------------------------------------------- | -------- | | browserTarget | Pattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$ | Target to build. | ✔️ | | serverTarget | Pattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$ | Server target to use for prerendering the app. | ✔️ | | routesFile | A Filename - Attention no schema validation! | The path to a file containing routes separated by newlines. | | | routes | Unique Strings | The routes to render. | | | guessRoutes | Bolean (default: true) | Whether or not the builder should extract routes and guess which paths to render. | | | numProcesses | Number (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

| Name | Type of Value | Description | Required | | ------------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | | browserTarget | Pattern: .+:.+(:.+)? | Target to build. | ✔️ | | serverTarget | Pattern: .+:.+(:.+)? | Server target to build. | ✔️ | | host | string (default: localhost) | Host to listen on. | | | port | number (default: 4200) | Port to start the development server at. Default is 4200. Pass 0 to get a dynamically assigned port. | | | publicHost | string | The 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. | | | open | boolean (default: false) | Opens the url in default browser. | | | progress | boolean (default: true) | Log progress to the console while building. | | | inspect | boolean (default: false) | Launch the development server in inspector mode and listen on address and port '127.0.0.1:9229'. | | | ssl | boolean (default: false) | Serve using HTTPS. | | | sslKey | string | SSL key to use for serving HTTPS. | | | sslCert | string | SSL certificate to use for serving HTTPS. | | | proxyConfig | string | Proxy 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

| Name | Type of Value | Description | Required | | ------------- | -------------------------------------- | --------------------------------------------------------------------------------- | -------- | | browserTarget | Pattern: ^[^:\s]+:[^:\s]+(:[^\s]+)?$ | Target to build. | ✔️ | | routesFile | string | The path to a file containing routes separated by newlines. | | | routes | array of Unique Strings | The routes to render. | | | guessRoutes | boolean (default: true) | Whether or not the builder should extract routes and guess which paths to render. | | | numProcesses | number (min: 1, default: 1) | The number of cpus to use. Defaults to all but one. | |