exportarts / angular-universal-utils

Collection of utilities we commonly use in Angular Universal projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

angular-universal-utils (deprecated)

Deprecation Notice

This project has been discontinued in favor of two better alternatives:

npm

Work in Progress... More featues and docs are coming in the future.

Installation

npm install --save-dev @exportarts/angular-universal-utils

# or

yarn add -D @exportarts/angular-universal-utils

Usage

Use the prerenderApplication() function to prerender an Angular Universal App.

All you have to provide is an array of routes to render and your compiled Universal App (similar to this example).

Optionally, a simple sitemap can be generated. This feature is really basic at the moment and more configuration options will eventually be available.

The easiest way is to run the function with ts-node. Alternatively, you can build it with webpack and run it with regular node.

Dependency Management

The project in ./lib has several peer-dependencies. Those are installed as dev-dependencies in the main project to have them available during development, but to not have them included in the final package.json.

About

Collection of utilities we commonly use in Angular Universal projects

License:MIT License


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%