Skip to content

Commit

Permalink
added examples build task
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Jul 8, 2017
1 parent 63b02cf commit 6108a31
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ build/matter-dev.js
build/matter-dev.min.js
demo/js/lib/matter-dev.js
demo/js/Examples.js
examples/build
test/browser/diffs
test/browser/refs
test/node/diffs
Expand Down
12 changes: 12 additions & 0 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ gulp.task('build:release', function() {
return build(extend(extend({}, pkg), { version: pkg.version }));
});

gulp.task('build:examples', function() {
var options = extend(extend({}, pkg), { version: pkg.version + '-dev' });
options.name = options.name + '-examples';
options.date = options.date || new Date().toISOString().slice(0, 10);
options.author = '@liabru';

return gulp.src('examples/**/*.js')
.pipe(concat('examples.js'))
.pipe(header(banner, { context: options }))
.pipe(gulp.dest('examples/build'));
});

gulp.task('watch', function() {
var b = browserify({
entries: ['src/module/main.js'],
Expand Down

0 comments on commit 6108a31

Please sign in to comment.