https://github.com/epsitec-sa/babel-env
Environment for Babel projects
https://github.com/epsitec-sa/babel-env
babel
Last synced: 5 months ago
JSON representation
Environment for Babel projects
- Host: GitHub
- URL: https://github.com/epsitec-sa/babel-env
- Owner: epsitec-sa
- Created: 2016-02-25T15:44:41.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T07:20:02.000Z (about 9 years ago)
- Last Synced: 2025-08-09T02:00:07.274Z (11 months ago)
- Topics: babel
- Language: JavaScript
- Size: 14.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# babel-env
The `babel-env` npm package can be used to set up a consistent environment
for projects using Babel and running on node.js version 6 (at least).
```shell
npm install --save-dev babel-env
```
This will install all useful Babel packages and create a default `.babelrc`
file in the project root. The `.babelrc` file will automatically be updated
when updates of `babel-env` are installed.
See also [babel-env-test](https://github.com/epsitec-sa/babel-env-test) for
an example of how `babel-env` is used.
## Prevent automatic .babelrc overwrite
If you do not want your `.babelrc` to be overwritten by `babel-env`, add
a comment containing `babel-env-disable`, such as:
```json
// babel-env-disable
{
"presets": [
"es2015"
],
"plugins": [
"transform-es3-property-literals",
"transform-es3-member-expression-literals"
]
}
```