Skip to content

Commit

Permalink
Tweak build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jenssegers committed Mar 30, 2018
1 parent 5b3d771 commit b6eea98
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ node_modules: package.json
lint: node_modules
docker run -it --init --rm -v $(PWD):/code -w /code node npm run lint

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

preview: apiary.html node_modules
Expand Down
2 changes: 1 addition & 1 deletion ci/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ run:
- -exec
- |
cd git-api
npm install && npm run lint
npm install && npm run build && npm run lint
4 changes: 0 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@ gulp.task('default', ['watch']);
gulp.task('watch', function() {
return gulp.watch('src/**/*.apib', ['preview'])
});

gulp.task('build', function() {
return run('npm run build', {verbosity: 0}).exec();
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "gulpfile.js",
"scripts": {
"lint": "apib-lint apiary.apib",
"build": "hercule src/apiary.apib -o apiary.apib && apib-lint apiary.apib",
"build": "hercule src/apiary.apib -o apiary.apib",
"watch": "gulp watch"
},
"repository": {
Expand Down

0 comments on commit b6eea98

Please sign in to comment.