Skip to content

Commit a1a700b

Browse files
committed
Deployment
1 parent f997eae commit a1a700b

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ npm install ngx-nullish
6666
</p>
6767
```
6868

69+
## Deployment
70+
71+
Please run a script:
72+
73+
```bash
74+
./scripts/deploy.sh
75+
```
76+
6977
## License
7078

7179
[The MIT License](https://piecioshka.mit-license.org) @ 2020

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"test": "ng test --no-watch --no-progress --browsers ChromeHeadless",
1010
"test:watch": "ng test",
1111
"lint": "ng lint",
12-
"e2e": "ng e2e",
13-
"predeploy": "npm run lint && npm run test && npm run build",
14-
"deploy": "npm publish --folder ./dist/ngx-nullish"
12+
"e2e": "ng e2e"
1513
},
1614
"private": true,
1715
"dependencies": {

scripts/deploy.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
npm run lint
4+
5+
npm run test
6+
7+
cd projects/ngx-nullish/ && npm version patch
8+
9+
npm run build
10+
11+
npm publish --folder ./dist/ngx-nullish

0 commit comments

Comments
 (0)