Skip to content

Commit b6eea98

Browse files
committed
Tweak build scripts
1 parent 5b3d771 commit b6eea98

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ node_modules: package.json
88
lint: node_modules
99
docker run -it --init --rm -v $(PWD):/code -w /code node npm run lint
1010

11-
build: apiary.apib node_modules
11+
build: src node_modules
1212
docker run -it --init --rm -v $(PWD):/code -w /code node npm run build
1313

1414
preview: apiary.html node_modules

ci/linting.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ run:
1919
- -exec
2020
- |
2121
cd git-api
22-
npm install && npm run lint
22+
npm install && npm run build && npm run lint

gulpfile.js

-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@ gulp.task('default', ['watch']);
77
gulp.task('watch', function() {
88
return gulp.watch('src/**/*.apib', ['preview'])
99
});
10-
11-
gulp.task('build', function() {
12-
return run('npm run build', {verbosity: 0}).exec();
13-
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "gulpfile.js",
66
"scripts": {
77
"lint": "apib-lint apiary.apib",
8-
"build": "hercule src/apiary.apib -o apiary.apib && apib-lint apiary.apib",
8+
"build": "hercule src/apiary.apib -o apiary.apib",
99
"watch": "gulp watch"
1010
},
1111
"repository": {

0 commit comments

Comments
 (0)