Skip to content

Commit

Permalink
feat(build): add gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Jan 16, 2018
1 parent 300d962 commit 5d432b6
Show file tree
Hide file tree
Showing 7 changed files with 3,948 additions and 79 deletions.
3 changes: 2 additions & 1 deletion .bookignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ README.old.md
package.json
ecadoc.json
*.jpg
build.js
*.js
*.dxf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git
node_modules

images

# Book build output
_book

Expand Down
Binary file modified dist/perif-connectors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
'use strict'

const gulp = require('gulp')
const watch = require('gulp-watch')
const shell = require('gulp-shell')

gulp.task('images', function () {
return watch('images')
.pipe(shell(['npm run optimize:images']))
})

gulp.task('serve', shell.task('gitbook serve'))

gulp.task('default', ['serve', 'images'])
Loading

0 comments on commit 5d432b6

Please sign in to comment.