diff --git a/.gitignore b/.gitignore index 81bd92d..b409461 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Gulpfile.js b/Gulpfile.js index 21161de..3464897 100644 --- a/Gulpfile.js +++ b/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'],