0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
esnext adapter for the Rails asset pipeline.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
< 5.0, >= 4.0.0
 Project Readme

esnext-rails

esnext adapter for the Rails asset pipeline.

Installation

Add the esnext-rails to your Gemfile:

gem 'esnext-rails'

Usage

To have a JavaScript file compiled using esnext, append the .esn extension. For example:

// application.js.esn

class Point {
  constructor(x, y) {
    this.x = x;
    this.y = y;
  }
}

console.log(new Point(1, 2));

Requesting /assets/application.js will return the compiled version of this file.

Running tests

$ bundle install
$ bundle exec rake test

If you need to test against local gems, use Bundler's gem :path option in the Gemfile.

Code Status

  • Travis CI