File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ before_install:
12
12
before_script :
13
13
- npm prune
14
14
script :
15
- - npm run clean
16
- - npm run build
17
- - npm run test
15
+ - npm run build-and-test
18
16
after_success :
19
17
- npm run semantic-release
20
18
branches :
Original file line number Diff line number Diff line change 8
8
"clean" : " rimraf src/**/*.js src/**/*.js.map" ,
9
9
"build" : " tsc -p src" ,
10
10
"test" : " karma start" ,
11
+ "build-and-test" : " npm run clean && npm run build && npm run test" ,
11
12
"semantic-release" : " semantic-release pre && npm publish && semantic-release post"
12
13
},
13
14
"repository" : {
32
33
"devDependencies" : {
33
34
"commitizen" : " ^2.4.6" ,
34
35
"cz-conventional-changelog" : " ^1.1.5" ,
36
+ "ghooks" : " ^1.0.1" ,
35
37
"jasmine-core" : " ^2.4.1" ,
36
38
"karma" : " ^0.13.15" ,
37
39
"karma-jasmine" : " ^0.3.6" ,
44
46
"config" : {
45
47
"commitizen" : {
46
48
"path" : " node_modules/cz-conventional-changelog"
49
+ },
50
+ "ghooks" : {
51
+ "pre-commit" : " npm run build-and-test"
47
52
}
48
53
}
49
54
}
You can’t perform that action at this time.
0 commit comments