Skip to content

Commit

Permalink
Merge pull request #46 from allmywant/master
Browse files Browse the repository at this point in the history
Transpiling ES6 to ES5 using gulp-babel before uglifying
  • Loading branch information
allmywant authored Dec 25, 2019
2 parents 4aca793 + f91bf74 commit 804aef1
Show file tree
Hide file tree
Showing 3 changed files with 1,159 additions and 3 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const gulp = require('gulp'),
fs = require('fs'),
through = require('through2'),
zlib = require('zlib'),
babel = require('gulp-babel'),
newCli = require('./scripts/cli-new'),
setCli = require('./scripts/cli-set');

Expand Down Expand Up @@ -73,6 +74,7 @@ function build()
.pipe(addsrc.append(['lib/waves/**/test-object.js']))
.pipe(addsrc.prepend(['license.txt', 'lib/mojito.js', 'lib/shared-code.js']))
.pipe(concat(containerName + '.pretty.js'))
.pipe(babel({presets: [['@babel/preset-env', { "modules": false, exclude:['@babel/plugin-transform-typeof-symbol'] }]]}))
.pipe(gulp.dest('dist/assets/js'))
.pipe(uglify())
.pipe(addsrc.prepend(['license.txt']))
Expand Down
Loading

0 comments on commit 804aef1

Please sign in to comment.