Package Exports
- babil
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babil) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
____ __ ____ ____ __
( _ \ /__\ ( _ \(_ _)( )
) _ < /(__)\ ) _ < _)(_ )(__
(____/(__)(__)(____/(____)(____)
Summary
babil
is a helper module that transpiles your dependencies.
Requirements
I haven’t checked; though I’m sure you’ll need a recent version of Node.JS (> 5.x.x) because it’s using modern JavaScript syntax.
Feel free to create a PR to make it backwards-compatible.
Usage Example
First install babil
via npm
:
npm install babil --save-dev
Then use it in your scripts:
#!/usr/bin/env node
// file: PROJECT_ROOT/bin/transpile.js
var babil = require( 'babil' );
var transpile = babil.transpile;
var ROOT_PATH = require( 'path' ).join( __dirname, '..' );
//
// Assuming that `babel-cli` is “locally” installed in `PROJECT_ROOT/node_modules`
// the following call transpiles all JS files inside `PROJECT_ROOT/lib`,
// into `PROJECT_ROOT/release`.
// It adds source maps to help debugging, too.
//
babil
.initialize( { rootPath: ROOT_PATH } )
.then( transpile );
This module is in its early alpha stage; so feel free to add your comments and suggestions by creating an issue.
About This Repository
This repository is a part of Byte-Sized JavaScript Bi-Weekly VideoCast.
_ __
|_) _|_ _ __ (_ o _ _ _|
|_) \/ |_ (/_ __) | /_ (/__(_|
/ | _. _. (_ _ ._ o ._ _|_
\_| (_| \/ (_| __) (_ | | |_) |_
|
»» bit.ly/bytesized ««
Byte-Sized What?!
It is a compilation of short (more or less five minutes long) bi-weekly screencasts about JavaScript and related technologies.
Contact Information
- Project Owner: Volkan Özçelik
- Project Website: https://volkan.io
License
MIT-licensed. — See the license file for details.
Code of Conduct
We, as the community behind this project, are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of expertise, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion or nationality.
See the code of conduct for more details.