Skip to content

An example of an Angular CLI app running in NW.js

License

Notifications You must be signed in to change notification settings

ed4becky/nw-angular-cli-example

 
 

Repository files navigation

NW.js and Angular CLI example

This project was generated with Angular CLI version 8.0.3.

A Screenshot of the default app running on Windows

Running Locally for development

  1. npm install
  2. npm start
  3. An empty window will pop up while Webpack warm ups
  4. Once Webpack is running, refresh the window and you're golden

Building for distribution

  1. npm run build:clean will delete your ./dist and /dist-ng folders
  2. npm run build:ng will build just your Angular app for distribution (./dist-ng)
  3. npm run build:nw will build just your NW.js app (./dist)
  4. npm run build is your all-in-one command. It will clean out the old dist folders and build your Angular and NW.js app

IMPORTANT NOTE ABOUT BUILDS!!!

They take a long time. If you do npm run build expect it to take 10-15 minutes. This can be adjusted by changing the build params in the package.json. The more platforms and build types, the longer it takes.

Automated quality enforcment

  1. Linting: npm run lint - tslint.json
  2. Unit tests: npm test - Karma.
  3. End-to-end: npm run e2e - Accepting PR to fix these tests. - Protractor.

Code scaffolding

ng generate Docs

  1. npm run generate -- component component-name to generate a new component.
  2. npm run generate -- directive directive-name to generate a new directive.
  3. npm run generate -- pipe pipe-name to generate a new pipe.
  4. npm run generate -- service service-name to generate a new service.
  5. npm run generate -- class class-name to generate a new class.
  6. npm run generate -- guard guard-name to generate a new guard.
  7. npm run generate -- interface interface-name to generate a new interface.
  8. npm run generate -- enum enum-name to generate a new enum.
  9. npm run generate -- module module-name to generate a new module.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

An example of an Angular CLI app running in NW.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 66.4%
  • JavaScript 18.9%
  • HTML 12.0%
  • CSS 2.7%