mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-27 13:59:01 -05:00
added examples build task
This commit is contained in:
parent
63b02cfbee
commit
6108a31f27
2 changed files with 13 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
|
||||
|
|
12
Gulpfile.js
12
Gulpfile.js
|
@ -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'],
|
||||
|
|
Loading…
Reference in a new issue