Skip to content
This repository was archived by the owner on Sep 16, 2018. It is now read-only.

Commit 6df57e6

Browse files
committed
- add getting started instructions
- add test-app test script
1 parent 45f7c22 commit 6df57e6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Jest Angular Schematic
22

3+
## Getting started
4+
5+
```shell
6+
npm install && npm run link
7+
```
8+
39
## Development
410

5-
### Test schematic changes against this repositories test-app
11+
### Test schematic changes against this repositories Angular CLI test-app
612

713
Schematic changes will be applied to the test app in the `./test-app` directory
814

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@
33
"version": "1.0.0",
44
"description": "Add jest to an Angular CLI project",
55
"scripts": {
6-
"build": "tsc -p tsconfig.json -w",
6+
"build": "tsc -p tsconfig.json -watch",
77
"build:once": "tsc -p tsconfig.json",
8-
"build:launch": "npm run build:once && npm run launch",
98
"clean:testApp": "git checkout HEAD -- test-app && git clean -f -d test-app",
109
"clean:launch": "npm run clean:testApp && npm run launch",
10+
"launch": "cd test-app && ng g add-jest:add-jest",
1111
"test": "npm run build:once && jasmine src/**/*_spec.js",
12-
"test:app:unit": "cd test-app && npm run test",
12+
"test:app": "cd test-app && npm run lint && npm run test && npm run e2e && npm run build",
1313
"link": "cd test-app && npm link ../",
14-
"debug": "echo \"debug not working with @angular/schematics\n> node --inspect-brk $(which schematics) .:addJest\"",
15-
"launch": "cd test-app && ng g add-jest:add-jest"
14+
"debug": "echo \"debug not setup with @angular/schematics\n> node --inspect-brk $(which schematics) .:addJest\""
1615
},
1716
"keywords": [
1817
"schematics"

0 commit comments

Comments
 (0)