Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 501d327

Browse files
committed
link lib
1 parent 6e61079 commit 501d327

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/pr.yml

+3
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,8 @@ jobs:
3535
- name: build demo
3636
run: npm run build
3737

38+
- name: link lib
39+
run: npm run link
40+
3841
- name: e2e
3942
run: npm run cy:ci

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ See https://ngx-easy-table.eu/#/doc
3434
## Development
3535

3636
- 1st tab - `npm run watch:table`
37-
- 2nd tab - `cd dist/ngx-easy-table && npm link`
38-
- 2nd tab - go back to project root dir and `npm link ngx-easy-table`
37+
- 2nd tab - `npm run link`
3938
- 2nd tab - `npm run start`
4039

4140
At the end run `npm run cy:ci` to make sure everything works.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"publish:lib:next": "npm run build:lib && cd dist/ngx-easy-table && npm publish --tag next",
2626
"size": "npm run build:lib && cd dist/ngx-easy-table && npm pack && ls -lh *.tgz",
2727
"build:lib": "cd projects/ngx-easy-table && npm install && ng build ngx-easy-table && sass assets/style.scss ../../dist/ngx-easy-table/style.css",
28-
"prepare": "husky install"
28+
"prepare": "husky install",
29+
"link": "cd dist/ngx-easy-table && npm link && cd ../.. && npm link ngx-easy-table"
2930
},
3031
"license": "MIT",
3132
"dependencies": {

0 commit comments

Comments
 (0)