setup babel

This commit is contained in:
Hakim El Hattab 2020-03-05 13:49:08 +01:00
parent 5dfaa32418
commit 5c24818b7e
3 changed files with 1126 additions and 3 deletions

View File

@ -1,6 +1,7 @@
const gulp = require('gulp')
const zip = require('gulp-zip')
const sass = require('gulp-sass')
const babel = require('gulp-babel')
const qunit = require('gulp-qunit')
const header = require('gulp-header')
const eslint = require('gulp-eslint')
@ -24,6 +25,7 @@ const license = `/*!
*/\n`
gulp.task('js', () => gulp.src(['./js/reveal.js'])
.pipe(babel({ presets: ['@babel/preset-env'] }))
.pipe(uglify())
.pipe(header(license, {pkg: pkg}))
.pipe(rename('reveal.min.js'))

1118
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -26,19 +26,22 @@
"devDependencies": {
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-babel": "^8.0.0",
"gulp-clean-css": "^4.2.0",
"gulp-connect": "^5.7.0",
"gulp-eslint": "^6.0.0",
"gulp-header": "^2.0.9",
"gulp-qunit": "^2.1.1",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
"gulp-uglify": "^3.0.2",
"gulp-header": "^2.0.9",
"gulp-zip": "^5.0.1",
"yargs": "^15.1.0",
"express": "^4.17.1",
"mustache": "^4.0.0",
"socket.io": "^2.3.0"
"socket.io": "^2.3.0",
"yargs": "^15.1.0",
"@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.7"
},
"eslintConfig": {
"env": {