P0rzingod06 / the-draft

Used to hold all draft related UI files
2 stars 0 forks source link

Use Angular-CLI as build tool #25

Open racedale opened 7 years ago

racedale commented 7 years ago

Changes the app structure and build methods to be done the way the Angular 2 team recommends.

Biggest difference is that you probably need to npm install -g angular-cli to be able to start the app. Also the default port is 4200 instead of 8080.

There is now a proper test framework, linting, production code building, environments customization, etc... It will be easier to keep the app up to date by just updating angular-cli and having it update the dependencies it uses instead of updating manually and checking the whole app manually.

racedale commented 7 years ago

If there's weird errors when running ng serve / npm start delete the node_modules folder and redo an npm install. Fixed the problems for me