Giter Club home page Giter Club logo

jekyll-babel's Introduction

Jekyll::Babel

A Babel converter for Jekyll.

Build Status

Based on jekyll-coffeescript by @parkr.

Installation

Add this line to your application's Gemfile:

gem 'jekyll-babel'

Then execute:

$ bundle

You may also skip using a Gemfile and install it yourself as:

$ gem install jekyll-babel

Finally, in you Jekyll's _config.yml file, add:

gems:
  - jekyll-babel

Notes: jekyll-babel requires Ruby 1.9.3 or greater. Additionally, the dependency on execjs means you must also have a valid JavaScript runtime available to your project

Usage

In your Jekyll site, create Babel-aware files that start with the following lines:

---
---

You need those three dashes in order for Jekyll to recognize it as "convertible". They won't be included in the content passed to the Babel compiler.

Options

Files with extensions .js, .es6, .babel and .jsx will be processed. You may customize the list of white-listed extensions in your _config.yml, by providing a string of comma-separated values:

babel_js_extensions: 'es6, babel, jsx' # Do not process .js files

Contributing

  1. Fork it (http://github.com/thejameskyle/jekyll-babel/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am "Add some feature")
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

jekyll-babel's People

Contributors

jamiebuilds avatar chikamichi avatar

Watchers

Tony Primerano avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.