diff --git a/gulpfile.js b/gulpfile.js index 3f4655075611e7549aab24ddf96d590b3eee30af..386030bfdab41b07c6d1ca793ebf09ca14282277 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -2,6 +2,7 @@ var minimist = require('minimist'); var fs = require('fs'); var lazypipe = require('lazypipe'); +var babel = require('gulp-babel'); // command line arguments var varg = minimist(process.argv.slice(2), { @@ -98,6 +99,7 @@ var pipes = (function () { .pipe(cssPipe); var jsPipe = lazypipe() + .pipe(babel, { presets: ['es2015'] }) .pipe(options.opt ? uglify : prettify); var twigPipe = empty; diff --git a/package.json b/package.json index 2cc3f203b2b98eb3179746e9c0ced40fd8ce7d2d..863a86b8d9a25a1b148550814c592001527bfc7c 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,17 @@ "version": "0.0.0", "dependencies": {}, "devDependencies": { + "babel-preset-es2015": "^6.9.0", "gulp": "^3.9.1", - "gulp-changed": "^1.3.0", "gulp-autoprefixer": "^3.1.0", + "gulp-babel": "^6.1.2", + "gulp-changed": "^1.3.0", "gulp-filter": "^4.0.0", - "gulp-less": "^3.1.0", "gulp-jsbeautifier": "^2.0.3", + "gulp-less": "^3.1.0", "gulp-minify-css": "^1.2.4", - "lazypipe": "^1.0.1", "gulp-uglify": "^1.5.3", + "lazypipe": "^1.0.1", "minimist": "^1.2.0", "through": "^2.3.8" }