Skip to content

Commit 7147161

Browse files
Build steps
1 parent 93a74a3 commit 7147161

6 files changed

Lines changed: 625 additions & 126 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ testem.log
4444
# System Files
4545
.DS_Store
4646
Thumbs.db
47+
48+
/dist-ng

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,24 @@ This project was generated with [Angular CLI](https://github.com/angular/angular
1717
1. Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
1818

1919

20-
* * *
20+
## Build
2121

22-
The following instructions came from the Angular CLI, I haven't tested them yet though.
22+
1. `npm run build:clean` will delete your `./dist` and `/dist-ng` folders
23+
1. `npm run build:ng` will build just your Angular app for distribution (`./dist-ng`)
24+
1. `npm run build:nw` will build just your NW.js app (`./dist`)
25+
1. `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
2326

24-
* * *
2527

28+
# **IMPORTANT NOTE ABOUT BUILDS!!!**
29+
30+
They take a long time. If you do `npm run build` expect it to take 10-15 minutes. This can be changed based on changing the build params in the `package.json`.
2631

27-
## Build
2832

29-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
33+
* * *
34+
35+
The following instructions came from the Angular CLI, I haven't tested them yet though.
36+
37+
* * *
3038

3139

3240
## Running unit tests

0 commit comments

Comments
 (0)