🏭 Babel task for Start
JavaScript
Latest commit 13ea74f Dec 31, 2016 @deepsweet deepsweet πŸ‘Ύ tweak CI
Permalink
Failed to load latest commit information.
lib πŸ”§ switch to `eslint-config-tough` Dec 26, 2016
test
.appveyor.yml
.babelrc
.editorconfig
.eslintrc
.gitignore πŸ”§ switch to start-start-preset Feb 8, 2016
.travis.yml
license.md πŸ“ πŸ’„ minor files renaming Feb 13, 2016
package.json
readme.md πŸ“ update readme Dec 26, 2016
yarn.lock ♻️ bump dev deps Dec 26, 2016

readme.md

start-babel

npm linux build windows build coverage deps

Babel task for Start.

Install

npm install --save-dev start-babel
# or
yarn add --dev start-babel

Usage

import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import watch from 'start-watch';
import clean from 'start-clean';
import read from 'start-read';
import babel from 'start-babel';
import write from 'start-write';

const start = Start(reporter());

export const build = () => start(
  files('build/'),
  clean(),
  files('lib/**/*.js'),
  read(),
  babel({ sourceMaps: true }),
  write('build/')
);

export const dev = () => start(
  files('build/'),
  clean(),
  files('lib/**/*.js'),
  watch(file => start(
    files(file),
    read(),
    babel(),
    write('build/')
  ))
);

This task relies on [{ path, data, map }] input and provides the same, see documentation for details.

Arguments

babel(options)