wdqs-editor
Version:
Wikidata Query Service Editor
22 lines (20 loc) • 540 B
JavaScript
var gulp = require('gulp'),
connect = require('gulp-connect'),
paths = require('./paths.js'),
livereload = require('gulp-livereload');
gulp.task('watch', function() {
gulp.watch(["./src/**/*.js", './lib/*.js', './lib/grammar/*.js'], [ 'browserifyForDebug' ]);
gulp.watch("./src/**/*.scss", [ 'makeCss' ]);
gulp.watch(
'./*.html'
, function(files) {
gulp.src(files.path).pipe(connect.reload());
});
});
gulp.task('connect', function() {
connect.server({
root: __dirname + '/../',
port : 4000,
livereload: true
});
});