Skip to content

Commit

Permalink
update dependency packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pandanoir committed Jan 5, 2019
1 parent 60af9f3 commit ca4faa4
Show file tree
Hide file tree
Showing 5 changed files with 3,850 additions and 8,929 deletions.
11 changes: 6 additions & 5 deletions gulpfile.js
Expand Up @@ -8,7 +8,7 @@ compilerPackage.compiler.prototype.javaPath = './node_modules/.bin/closure-gun';
const rename = require("gulp-rename");
const gzip = require('gulp-gzip');

gulp.task('minify', () => {
gulp.task('minify', done => {
closureCompiler({
js: './dist/canvas.js',
compilation_level: 'SIMPLE',
Expand All @@ -30,10 +30,11 @@ gulp.task('minify', () => {
.on('end', () => {
const files = ['unitary.browser.js', 'unitary.browser.min.js', 'unitary.browser.min.js.gz'];
for (const file of files) {
gulp.src('./dist/' + file.replace('.browser', ''))
.pipe(rename(file))
.pipe(gulp.dest('./dist'));
gulp.src('./dist/' + file.replace('.browser', ''))
.pipe(rename(file))
.pipe(gulp.dest('./dist'));
}
done();
});
});
gulp.task('default', ['minify']);
gulp.task('default', gulp.series(gulp.parallel(['minify'])));

0 comments on commit ca4faa4

Please sign in to comment.