Created
May 28, 2019 15:51
-
-
Save illvart/b9374b5d53d91fffa6292421c13cdf36 to your computer and use it in GitHub Desktop.
Gulp ES6 with babel: yarn add --dev gulp @babel/core @babel/preset-env @babel/register iltorb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
presets: [ | |
[ | |
"@babel/preset-env", | |
{ | |
targets: { | |
node: "current" | |
} | |
} | |
] | |
] | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import fs from "fs"; | |
import gulp from "gulp"; | |
/* | |
import del from "del"; | |
import debug from "gulp-debug"; | |
import rename from "gulp-rename"; | |
import sourcemaps from "gulp-sourcemaps"; | |
*/ | |
// environment mode | |
const envMode = mode => cb => ((process.env.NODE_ENV = mode), cb()); | |
// serve | |
exports.serve = gulp.series( | |
// envMode("development") | |
); | |
// build (gulp) | |
exports.default = gulp.series( | |
// envMode("production") | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment