Remove npm dependency

This commit is contained in:
Jesper Hess 2017-02-06 21:36:46 +01:00
parent 9d33f54d61
commit 6541877e37
Signed by: graffen
GPG Key ID: 351A89E40D763F0F
2 changed files with 0 additions and 52 deletions

View File

@ -1,46 +0,0 @@
var gulp = require('gulp');
var browserSync = require('browser-sync');
var cp = require('child_process');
var messages = {
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build'
};
/**
* Build the Jekyll Site
*/
gulp.task('jekyll-build', function (done) {
browserSync.notify(messages.jekyllBuild);
return cp.spawn('bundle', ['exec','jekyll','build'], {stdio: 'inherit'})
.on('close', done);
});
/**
* Rebuild Jekyll & do page reload
*/
gulp.task('jekyll-rebuild', ['jekyll-build'], function () {
browserSync.reload();
});
/**
* Wait for jekyll-build, then launch the Server
*/
gulp.task('browser-sync', ['jekyll-build'], function() {
browserSync.init({
server: '_site'
});
});
/**
* Watch html/md files, run jekyll & reload BrowserSync
* if you add folder for pages, collection or datas, add them to this list
*/
gulp.task('watch', function () {
gulp.watch(['./*', '_layouts/*', '_pages/*', '_includes/*', '_posts/*', 'blog/*', '_sass/*', 'assets/**/*'], ['jekyll-rebuild']);
});
/**
* Default task, running just `gulp` will compile the sass,
* compile the jekyll site, launch BrowserSync & watch files.
*/
gulp.task('default', ['browser-sync', 'watch']);

View File

@ -1,6 +0,0 @@
{
"devDependencies": {
"browser-sync": "^2.2.0",
"gulp": "^3.7"
}
}