New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng4-starter-app

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

ng4-starter-app

A production-ready starter application.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ng4-starter-app

forked from pixelbits-mk/ng2-starter-app

An easy way to get started with an Angular4 application.

Demonstrates

  • Simple Hello World! Application that can be easily customized
  • AOT compilation for building applications in a production environment
  • JIT compilation with SystemJS for rapid development
  • Bundling, Compression, and Minification
  • Export to multiple module formats: UMD, AMD, and CJS.

Installation

Install the starter application from npm:

npm install ng4-starter-app

Usage

You can build the application in three modes:

  • Development
  • Production
  • Feature Module

Build Targets

Development

gulp dev

Compiles the application to CommonJS module format and deploys the generated Js files to the src folder.

Production

gulp app

Compiles the application, inlines the HTML templates, and creates three static bundles in the dist folder:

  • app.bundle.js (contains the application-specific code)
  • vendor.bundle.js (contains the vendor-specific libraries - i.e. zone.js, core-js)
  • styles.bundle.js (contains the CSS stylesheets)

Feature Module

gulp module

Compiles the application and deploys the generated Js files to the dist\src folder.
Three bundles under the dist folder target various module formats:

  • package.bundle.umd.js / package.bundle.umd.min.js
  • package.bundle.cjs.js / package.bundle.cjs.min.js
  • package.bundle.amd.js / package.bundle.amd.min.js

The bundles exclude external vendor libraries (i.e. @angular or rxjs)

Script Targets

Build

  • npm run app - Builds the application for production and launches a browser window.
  • npm run dev - Builds the application for development and launches a browser window.
  • npm run build-app - Builds the application for production.
  • npm run build-dev - Builds the application for development.
  • npm run serve-app - Launches a browser window and serves the application for production.
  • npm run serve-dev - Launches a browser window and serves the application for development.

Keywords

FAQs

Package last updated on 12 Apr 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc