Skip to content

Commit

Permalink
build: update npm scripts (akveo#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhukaudev authored Nov 23, 2017
1 parent acf5f45 commit 3ee4f0b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ before_script:

script:
- npm run lint:ci
- npm run build:ci
- npm run build:prod
- npm run release:prepare
- npm run docs:ci

Expand Down
8 changes: 0 additions & 8 deletions docs/articles/install-starter-kit.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,12 @@ To run the local copy in a production mode and build the sources, execute:
```bash
npm run start:prod
```
or in AOT mode
```bash
npm run start:prod:aot
```

To create a bundle in production mode, execute:

```bash
npm run build:prod
```
or
```bash
npm run build:prod:aot
```

This will clear up your `dist` folder (where release files are located) and generate a release build.
Now you can copy the sources from the `dist` folder and use it with any backend framework or simply [put it under a web server](#/docs/guides/server-deployment).
Expand Down
21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,21 @@
"scripts": {
"ng": "ng",
"ngh": "ngh",
"gulp": "gulp",
"conventional-changelog": "conventional-changelog",
"start": "ng serve",
"start:hmr": "ng serve --hmr",
"start:aot": "ng serve --aot",
"start:wp:aot": "npm run start:aot -- --app playground-wp",
"start:prod": "npm run start -- --prod --aot",
"start:wp": "npm run start:prod -- --app playground-wp",
"docs:serve": "npm run docs:parse && npm run docs:start",
"docs:parse": "gulp docs",
"docs:start": "ng serve --app docs --port 4100",
"docs:build": "npm run docs:parse && rimraf docs/dist && npm run build:prod:aot -- --app docs --base-href https://akveo.github.io/nebular/",
"docs:build": "npm run docs:parse && rimraf docs/dist && npm run build:prod -- --app docs --base-href https://akveo.github.io/nebular/",
"docs:ci": "cd ./docs && ln -sf ../src/framework ./framework && cd ../ && npm run docs:build",
"docs:gh-pages": "npm run docs:build && npm run ngh -- --dir ./docs/dist",
"build": "rimraf dist && ng build",
"build:prod": "npm run build -- --prod",
"build:prod:aot": "npm run build:prod -- --aot",
"build:ci": "npm run build:prod && npm run build:prod:aot",
"build:wp:ci": "npm run build:prod -- --app playground-wp && npm run build:prod:aot -- --app playground-wp",
"build:ghpages": "npm run build:prod:aot -- --base-href \"https://akveo.github.io/nebular/\" && ngh",
"build": "ng build",
"build:prod": "npm run build -- --prod --aot",
"build:wp": "npm run build:prod -- --app playground-wp",
"build:ghpages": "npm run build:prod -- --base-href \"https://akveo.github.io/nebular/\" && ngh",
"build:package": "npm-run-all -s clean:tmp:lib gulp build:ts build:inline-resources build:bundle clean:tmp",
"build:ts": "tsc -p tsconfig.publish.json && ngc -p tsconfig.publish.json",
"build:inline-resources": "gulp inline-resources",
Expand All @@ -50,8 +48,7 @@
"release:prepare": "npm run build:package",
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s",
"release:validate": "npm run build:ci && npm run release:prepare && npm run lint:ci && npm run build:wp:ci && npm run e2e:wp && npm run test",
"release": "npm run version:bump && npm run release:prepare && npm run release:validate && npm run release:changelog && npm publish --access=public src/.lib/theme && npm publish --access=public src/.lib/auth",
"gulp": "gulp"
"release": "npm run version:bump && npm run release:prepare && npm run release:validate && npm run release:changelog && npm publish --access=public src/.lib/theme && npm publish --access=public src/.lib/auth"
},
"keywords": [
"angular",
Expand Down

0 comments on commit 3ee4f0b

Please sign in to comment.