Skip to content

Commit

Permalink
suggested gulpfile for semantic ui users
Browse files Browse the repository at this point in the history
this also works well when not using gulp-help
  • Loading branch information
fholzer committed Jul 21, 2015
1 parent 1003336 commit a8356f0
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
var gulp = require('gulp');
var gulp = require('gulp-help')(require('gulp'));
var console = require('better-console');
var watch = require('./semantic/tasks/watch');
var build = require('./semantic/tasks/build');

gulp.task('default', function(done) {
console.log("Run run gulp build and watch tasks to showcase the issue.");
done();
});

gulp.task('build', build);
gulp.task('watch', watch);
gulp.task('init', ['build:semantic']);

gulp.task('build:semantic', function(done) {
var build = require('./semantic/tasks/build');
build(done);

// instead they could even do this:
//require('./semantic/tasks/build')(done);
});


gulp.task('watch', function(done) {
// watch some project related files
// and also semantic ui files
var watch = require('./semantic/tasks/watch');
watch();

// instead they could even do this:
//require('./semantic/tasks/watch')(done);
});

0 comments on commit a8356f0

Please sign in to comment.