A collection of default convention-based common tasks for modules using Babel.
npm i -D gulp-babel-tasks gulp
Add the following to your
var gulp =gulp
Or the following which will automatically add the tasks...
var gulp =var $ =$
gulp build - Cleans dist, then compiles
dist. Suitable as npm
prepublish script in
gulp watch - Watches for changes. Compiles
dist on file change. Only compiles changed files. Cleans on first run.
gulp test - Runs tests.
gulp test-transpiled - Runs transpiled tests. Faster.
gulp test-watch - Watches for changes, and compiles + runs transpiled tests.
gulp bootstrap - Boostraps a module. Modifies package.json, etc. Prompts for any file being overwritten.