@dotcom-tool-kit/babel
v5.0.1
Published
A plugin to run [Babel](https://babeljs.io/) to compile ES2015+ syntax.
Downloads
416
Readme
@dotcom-tool-kit/babel
A plugin to run Babel to compile ES2015+ syntax.
Installation
With Tool Kit already set up, install this plugin as a dev dependency:
npm install --save-dev @dotcom-tool-kit/babelAnd add it to your repo's .toolkitrc.yml:
plugins:
- '@dotcom-tool-kit/babel'Tasks
Babel
Compile files with Babel
Task options
| Property | Description | Type | Default |
| :----------------- | :---------------------------------------------------------------------------- | :------------------------------ | :-------------- |
| files | a glob pattern of files to build in your repo | string | 'src/**/*.js' |
| outputPath | folder to output built files into | string | 'lib' |
| configFile | path to the Babel config file to use | string | |
| envName (*) | the Babel environment to use | 'production' \| 'development' | |
(*) Required.
