Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
This was just an experimental project, and there’s no need to reinvent babel
and/or create a wrapper around babel
.
I’m not planning to contribute to this project for a while.
If you are interested in being a contributor, please let me know.
Thanks,
Volkan.
____ __ ____ ____ __
( _ \ /__\ ( _ \(_ _)( )
) _ < /(__)\ ) _ < _)(_ )(__
(____/(__)(__)(____/(____)(____)
This repository is a part of the Byte-Sized JavaScript VideoCasts.
_ __
|_) _|_ _ __ (_ o _ _ _|
|_) \/ |_ (/_ __) | /_ (/__(_|
/ | _. _. (_ _ ._ o ._ _|_
\_| (_| \/ (_| __) (_ | | |_) |_
|
»» bytesized.tv ««
It is a compilation of short (around ten minutes) monthly screencasts about JavaScript and related technologies.
babil
babil
is a helper module that transpiles your dependencies.
Currently you can do what babil
can do with a simple babel
command when you set things up correctly. So this is more like an experimental projects that wraps around babel
.
So putting something like…
"scripts": {
…
"build": "babel lib --source-maps -d release"
},
in your package.json
is a much leaner option than using babil
.
That said,
babil.initialize().then(babil.transpile)
does not look that bad either.
If you have any recommendations and thoughts, feel free to create an issue.
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.
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 );
Any help is more than appreciated.
If you want to contribute to the source code, fork this repository and create a pull request.
In lieu of a formal style guide, take care to maintain the existing coding style.
Also, don’t forget to add unit tests for any new or changed functionality.
If you want to report a bug; or share a comment or suggestion, file an issue.
For bug reports and suggestions, please file an issue.
MIT-licensed. — See the license file for details.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of the level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
FAQs
Babil transpiles all your dependencies without needing grunt or gulp.
The npm package babil receives a total of 3 weekly downloads. As such, babil popularity was classified as not popular.
We found that babil demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.