Babel preset for all Dulcet plugins.
You can also check out the Dulcet Getting Started page
For more info, check out the setup page on the cli and the usage docs.
Install the CLI and this preset
npm install --save-dev babel-cli babel-preset-dulcet
Make a .babelrc config file with the preset
echo '{ "presets": ["dulcet"] }' > .babelrc
Create a file to run on
echo '<h1>Hello, world!</h1>' > index.js
View the output
./node_modules/.bin/babel index.js
.babelrc
{
"presets": ["dulcet"]
}
babel script.js --presets dulcet
require("babel-core").transform("code", {
presets: ["dulcet"]
});