File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -59,25 +59,38 @@ Install dependencies for angular-playground:
59
59
npm i
60
60
```
61
61
62
+ Build angular-playground package and link it globally
63
+ ```
64
+ npm run clean
65
+ npm run build
66
+ npm link
67
+ ```
68
+
62
69
Then install dependencies for the example-app:
63
70
```
64
71
cd ./examples/cli-example/
65
72
npm i
73
+ npm link angular-playground
66
74
```
67
75
### Running the example app
68
76
From `./examples/cli-example`:
69
77
```
70
- npm run playground:build && npm run playground
78
+ npm run playground
71
79
```
72
80
73
81
From this point you can work on the Playground and make changes to the source code. You will need to stop the Playground
74
82
from running and build the app again (run `npm run restage` from the source code root after your changes). Then run `npm run playground`
75
83
in the example app root folder again to see the changes you made to the source code in action.
76
84
85
+ Rebuild Playground
77
86
```
78
87
Ctrl-C (stop playground)
79
88
cd ../../
80
- npm run restage
89
+ npm run rebuild
90
+ ```
91
+
92
+ Run the example App
93
+ ```
81
94
cd examples/cli-example/
82
95
npm run playground
83
96
```
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ from running and rebuild the angular-playground then run the example app again.
32
32
33
33
Rebuild Playground
34
34
```
35
+ Ctrl-C (stop playground)
35
36
cd ../..
36
37
npm run rebuild
37
38
```
Original file line number Diff line number Diff line change 13
13
"playground:prod" : " angular-playground --build" ,
14
14
"playground:prod-service-worker" : " angular-playground --build-with-service-worker" ,
15
15
"playground:check-errors" : " angular-playground --check-errors" ,
16
- "playground:build" : " (cd ../../ && sh ./scripts/build.sh)" ,
17
16
"verify-sandboxes" : " angular-playground --config .angular-playground/angular-playground.json --check-errors --report-path ./result.xml --report-type xml" ,
18
17
"check-snapshots" : " angular-playground --config .angular-playground/angular-playground.json --check-visual-regressions --visual-regression-mock-date 1577865600000" ,
19
18
"update-snapshots" : " angular-playground --config .angular-playground/angular-playground.json --check-visual-regressions --update-snapshots --path-to-sandboxes app/feature1" ,
You can’t perform that action at this time.
0 commit comments