File tree 3 files changed +30
-3
lines changed
3 files changed +30
-3
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,14 @@ npm install ngx-nullish
66
66
</p>
67
67
` ` `
68
68
69
+ ## Deployment
70
+
71
+ Please run a script:
72
+
73
+ ` ` ` bash
74
+ ./scripts/deploy.sh
75
+ ` ` `
76
+
69
77
## License
70
78
71
79
[The MIT License](https: // piecioshka.mit-license.org) @ 2020
Original file line number Diff line number Diff line change 6
6
"start" : " ng serve" ,
7
7
"prebuild" : " cp README.md projects/ngx-nullish && rm -rf dist/" ,
8
8
"build" : " ng build --prod" ,
9
+ "postbuild" : " rm projects/ngx-nullish/README.md" ,
9
10
"test" : " ng test --no-watch --no-progress --browsers ChromeHeadless" ,
10
11
"test:watch" : " ng test" ,
11
12
"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"
13
+ "e2e" : " ng e2e"
15
14
},
16
15
"private" : true ,
17
16
"dependencies" : {
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ npm run lint
4
+ npm run test
5
+
6
+ rm -rf dist/
7
+
8
+ cd projects/ngx-nullish
9
+ npm version patch
10
+
11
+ VERSION=$( jq -r ' .version' package.json)
12
+
13
+ cd ../../
14
+
15
+ git commit -am " $VERSION "
16
+ git tag " $VERSION "
17
+
18
+ npm run build
19
+
20
+ npm publish --folder ./dist/ngx-nullish
You can’t perform that action at this time.
0 commit comments