mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-28 14:09: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
|
build/matter-dev.min.js
|
||||||
demo/js/lib/matter-dev.js
|
demo/js/lib/matter-dev.js
|
||||||
demo/js/Examples.js
|
demo/js/Examples.js
|
||||||
|
examples/build
|
||||||
test/browser/diffs
|
test/browser/diffs
|
||||||
test/browser/refs
|
test/browser/refs
|
||||||
test/node/diffs
|
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 }));
|
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() {
|
gulp.task('watch', function() {
|
||||||
var b = browserify({
|
var b = browserify({
|
||||||
entries: ['src/module/main.js'],
|
entries: ['src/module/main.js'],
|
||||||
|
|
Loading…
Reference in a new issue