1.0.0 • Published 9 years ago
babel-preset-nite v1.0.0
babel-preset-nite
Babel preset for all Nite plugins.
Install
Install the CLI and this preset
npm install --save-dev babel-cli babel-preset-niteMake a .babelrc config file with the preset
echo '{ "presets": ["nite"] }' > .babelrcCreate a file to run on
echo '<h1>Hello, world!</h1>' > index.jsView the output
./node_modules/.bin/babel index.jsUsage
Via .babelrc (Recommended)
.babelrc
{
"presets": ["nite"]
}Via CLI
babel script.js --presets niteVia Node API
require("babel-core").transform("code", {
presets: ["nite"]
});1.0.0
9 years ago