Skip to content

Commit 262ba96

Browse files
committed
update readme and create shortcut to build and publish
1 parent 5e11d1f commit 262ba96

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"test": "ng test",
99
"lint": "ng lint",
1010
"e2e": "ng e2e",
11+
"watch-keyboard": "ng build angular-keyboard --watch",
1112
"build-keyboard": "ng build angular-keyboard",
12-
"watch-keyboard": "ng build angular-keyboard --watch"
13+
"publish-keyboard": "cd dist/angular-keyboard && npm publish",
14+
"build-and-publish-keyboard": "npm run build-keyboard && npm run publish-keyboard"
1315
},
1416
"private": true,
1517
"dependencies": {

projects/angular-keyboard/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ Run `ng build angular-keyboard --watch` from the repository root, then run `npm
6464

6565
## Build and Publish
6666

67-
Update the package version in the `package.json` in this folder. Run `ng build angular-keyboard` to build the project. The build artifacts will be stored in the `dist/` directory.
68-
69-
After building your library, go to the dist folder `cd dist/angular-keyboard` and run `npm publish`.
67+
Update the package version in the `package.json` in this folder. Then run `npm run build-and-publish-keyboard` in the repository root.
7068

7169
## Running unit tests
7270

projects/angular-keyboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@taskbase/angular-keyboard",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"peerDependencies": {
55
"@angular/common": "^8.1.3",
66
"@angular/core": "^8.1.3"

0 commit comments

Comments
 (0)