Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerotohero-dev/babil
[UNMAINTAINED] Babil transpiles all your dependencies without needing grunt or gulp.
https://github.com/zerotohero-dev/babil
babel babil bitesized-tv byte-sized bytesized-javascript bytesized-tv demos education experimental javascript learning podcast screencast trainings tutorials vidcast videos
Last synced: about 2 months ago
JSON representation
[UNMAINTAINED] Babil transpiles all your dependencies without needing grunt or gulp.
- Host: GitHub
- URL: https://github.com/zerotohero-dev/babil
- Owner: zerotohero-dev
- License: other
- Created: 2016-04-16T18:01:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-20T20:55:31.000Z (over 7 years ago)
- Last Synced: 2024-10-04T11:06:38.204Z (3 months ago)
- Topics: babel, babil, bitesized-tv, byte-sized, bytesized-javascript, bytesized-tv, demos, education, experimental, javascript, learning, podcast, screencast, trainings, tutorials, vidcast, videos
- Language: JavaScript
- Homepage: https://bytesized.tv/
- Size: 55.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
## Unmaintained Software
This was just an **experimental** project, and there’s no need to reinvent [`babel`](https://babeljs.io) 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](mailto:volkan.io).
Thanks,
Volkan.
----
```
____ __ ____ ____ __
( _ \ /__\ ( _ \(_ _)( )
) _ < /(__)\ ) _ < _)(_ )(__
(____/(__)(__)(____/(____)(____)
```## About `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](https://github.com/jsbites/babil/issues/30). 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](https://github.com/jsbites/babil/issues/new).
## 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 );
```## Wanna Help?
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](https://github.com/jsbites/babil/issues/new).
## I’ve Found a Bug; I Have an Idea
[For bug reports and suggestions, please file an issue](https://github.com/jsbites/babil/issues/new).
## Contact Information
* **Project Maintainer**: [Volkan Özçelik](https://volkan.io/)
* **Project Website**: [bytesized.tv](https://bytesized.tv/)## License
MIT-licensed. — [See the license file for details](LICENSE.md).
## Code of Conduct
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.
[See the code of conduct for details](CODE_OF_CONDUCT.md).
[vidcast]: https://bytesized.tv/
[ticket]: https://github.com/jsbites/babil/issues/new## A [ByteSized.TV][vidcast] Project
This repository is a part of the [Byte-Sized JavaScript VideoCasts][vidcast].
It is a compilation of short (*around ten minutes*) screencasts about **JavaScript** and related technologies.
[**Learn**, **explore**, and **have fun**][vidcast]!
[vidcast]: https://bytesized.tv/ "ByteSized.TV"