add babel
This commit is contained in:
parent
e47659b0a9
commit
10fe7cfbad
|
@ -1,6 +1,7 @@
|
||||||
const gulp = require('gulp')
|
const gulp = require('gulp')
|
||||||
|
|
||||||
// gulp plugins
|
// gulp plugins
|
||||||
|
const babel = require('gulp-babel');
|
||||||
const eslint = require('gulp-eslint')
|
const eslint = require('gulp-eslint')
|
||||||
const htmllint = require('gulp-html-linter')
|
const htmllint = require('gulp-html-linter')
|
||||||
const htmlmin = require('gulp-htmlmin')
|
const htmlmin = require('gulp-htmlmin')
|
||||||
|
@ -49,6 +50,7 @@ gulp.task('js', () =>
|
||||||
gulp.src('src/js/*.js')
|
gulp.src('src/js/*.js')
|
||||||
.pipe(eslint())
|
.pipe(eslint())
|
||||||
.pipe(eslint.format())
|
.pipe(eslint.format())
|
||||||
|
.pipe(babel())
|
||||||
.pipe(minify({
|
.pipe(minify({
|
||||||
ext:{
|
ext:{
|
||||||
src:'.js',
|
src:'.js',
|
||||||
|
|
3476
package-lock.json
generated
3476
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,7 @@
|
||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-core": "^6.26.3",
|
||||||
|
"babel-preset-env": "^1.7.0",
|
||||||
"browser-sync": "^2.23.7",
|
"browser-sync": "^2.23.7",
|
||||||
"eslint-config-standard": "^11.0.0",
|
"eslint-config-standard": "^11.0.0",
|
||||||
"eslint-plugin-import": "^2.11.0",
|
"eslint-plugin-import": "^2.11.0",
|
||||||
|
@ -7,6 +9,7 @@
|
||||||
"eslint-plugin-promise": "^3.7.0",
|
"eslint-plugin-promise": "^3.7.0",
|
||||||
"eslint-plugin-standard": "^3.0.1",
|
"eslint-plugin-standard": "^3.0.1",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
|
"gulp-babel": "^7.0.1",
|
||||||
"gulp-csso": "^3.0.1",
|
"gulp-csso": "^3.0.1",
|
||||||
"gulp-eslint": "^4.0.2",
|
"gulp-eslint": "^4.0.2",
|
||||||
"gulp-html-linter": "^1.0.0",
|
"gulp-html-linter": "^1.0.0",
|
||||||
|
@ -14,5 +17,6 @@
|
||||||
"gulp-less": "^4.0.0",
|
"gulp-less": "^4.0.0",
|
||||||
"gulp-lesshint": "^5.0.0",
|
"gulp-lesshint": "^5.0.0",
|
||||||
"gulp-minify": "^2.1.0"
|
"gulp-minify": "^2.1.0"
|
||||||
}
|
},
|
||||||
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue