https://github.com/dielduarte/babel-maker
A cli to create initial babel configuration in an easy way
https://github.com/dielduarte/babel-maker
Last synced: 10 months ago
JSON representation
A cli to create initial babel configuration in an easy way
- Host: GitHub
- URL: https://github.com/dielduarte/babel-maker
- Owner: dielduarte
- License: mit
- Created: 2018-01-19T02:27:34.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2022-06-29T00:07:13.000Z (over 3 years ago)
- Last Synced: 2024-10-02T09:21:27.016Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 37 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-maker
A cli to create initial babel configuration in a easy way
Install globally babel-maker
```
[sudo] npm i -g babel-maker
```
Now run `babel-maker` on folder that you want create intial babel config, see the babel-maker working bellow:

That's it! Choose your template and see the magic happening, babel-maker will create your .babelrc and install all dependencies required.
## Templates
#### Simple
```js
//.babelrc
{
presets: ['@babel/preset-env']
}
```
#### React Based
```js
//.babelrc
{
presets: ['@babel/preset-env', 'react']
}
```
#### Vue Based
```js
//.babelrc
{
presets: ['@babel/preset-env', 'vue'],
plugins: ['jsx-event-modifiers', 'jsx-v-model', 'transform-vue-jsx']
}
```