Skip to content

Build an electron project scaffolded in @angular/cli

Notifications You must be signed in to change notification settings

dolanmiu/ng-cli-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

103dc2a · Jul 11, 2018

History

74 Commits
Jul 11, 2018
Aug 22, 2017
Aug 22, 2017
Aug 9, 2017
Aug 9, 2017
Mar 2, 2018
Jul 11, 2018
Jul 11, 2018
Jul 29, 2017
Dec 17, 2017

Repository files navigation

Build Status Dependency Status Known Vulnerabilities

ng-cli-electron

Build an electron project scaffolded in @angular/cli

This is an extention/plugin which allows @angular/cli users to create electron apps. It was made to address this:

#4227

Install

$ npm install ng-cli-electron electron awesome-typescript-loader --save

Usage

The commands are similar to @angular/cli's own ones.

Build

Add the following in your scripts section inside package.json:

"build-electron": "nge build"

If you only want to build the main part of Electron:

"build-electron-main": "nge build --main"

Using @angular/cli build flags

You can use a subset of the build flags here

More specifically:

  • aot
  • app
  • deploy-url
  • environment
  • extract-css
  • force
  • i18n-file
  • i18n-format
  • locale
  • missing-translation
  • output-hashing
  • progress
  • sourcemap
  • target
  • vendor-chunk
  • common-chunk
  • verbose

Serve

Add the following in your scripts section inside package.json:

"serve-electron": "nge serve"

Help

nge --help

Made with 💖 by Dolan