Socket
Book a DemoInstallSign in
Socket

angular-rollup-starter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-rollup-starter

Angular2 Starter based on Rollup

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Angular2 Rollup Seed

Build Status Build status

Angular2 starter seed based on Rollup. Production builds including AoT steps. Starter also comes with Universal support built-in.

Start

First, clone this repository.

git clone https://github.com/jkuri/angular-rollup-starter.git --depth 1

Move into cloned directory and run

npm install

Usage

Serve

npm start

Note Initial load takes some time so vendor files are generated. Then it runs like a charm with cached builds which happens to be really fast.

This serves your app with live-reload enabled.

Production Build

Production builds automatically includes AoT (Ahead of Time) compilation steps.

npm run roll

Universal (Isomorphic) Production Build

npm run roll:prerender

Routes stored in config.json as universalRoutes will be prerendered into dist/ directory. For example

{
  "externalPackages": { },
  "styles": ["css/app.css"],
  "universalRoutes": ["/", "/docs", "/docs/child"]
}

will generate prerendered content in dist/index.html dist/docs.html and dist/docs/child.html.

To properly serve prerendered content use below nginx configuration.

server {
  listen 80;
  server_name subdomain.example.com example.com;

  root /path/to/dist;

  location / {
    try_files $uri.html $uri $uri/ /index.html;
  }
}

Licence

MIT

Keywords

Angular2

FAQs

Package last updated on 18 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.