Skip to content

Commit

Permalink
add npm commands for build & development
Browse files Browse the repository at this point in the history
  • Loading branch information
canbax committed Feb 11, 2022
1 parent bb84e63 commit 94598c1
Show file tree
Hide file tree
Showing 3 changed files with 2,582 additions and 19 deletions.
11 changes: 8 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var gulp = require('gulp');
var path = require('path');
var watch = require('gulp-watch');
var replace = require('gulp-replace');
var child_process = require('child_process');
var fs = require('fs');
var shell = require('gulp-shell');
var jshint = require('gulp-jshint');
var jshStylish = require('jshint-stylish');
Expand Down Expand Up @@ -79,6 +77,13 @@ gulp.task('build', shell.task([
'browserify ./src/index.js -o cytoscape-grid-guide.js'
]));

// watch for changes in files, run build immediately
gulp.task('dev', ['build'], function () {
watch('src/*.js', () => {
gulp.run('build');
});
});

// http://www.jshint.com/docs/options/
gulp.task('lint', function(){
return gulp.src( 'cytoscape-*.js' )
Expand Down
Loading

0 comments on commit 94598c1

Please sign in to comment.