• Stars
    star
    304
  • Rank 134,183 (Top 3 %)
  • Language
    Ruby
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sprockets ES6 transformer

Sprockets ES6

Experimental

A Sprockets transformer that converts ES6 code into vanilla ES5 with Babel JS.

Usage

# Gemfile
gem 'sprockets', '>= 3.0.0'
gem 'sprockets-es6'
# application.rb
# [...]
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
require 'sprockets/es6'
# [...]
// app.es6

let square = (x) => x * x

class Animal {
  constructor(name) {
    this.name = name
  }
}

Releases

This plugin is primarily experimental and will never reach a stable 1.0. The purpose is to test out BabelJS features on Sprockets 3.x and include it by default in Sprockets 4.x.

Asset manifests required for precompiling

.es6 won't work directly with config.assets.precompile = %w( foo.es6 ) for annoying compatibility reasons with Sprockets 2.x. Besides, you should look into moving away from config.assets.precompile and using manifests instead. See Sprockets 3.x UPGRADING guide.

More Repositories

1

love.js

LÖVE ported to the web using Emscripten
JavaScript
490
star
2

punchdrunk

An attempt to replicate the LÖVE API in the browser using moonshine.
JavaScript
81
star
3

love2d_template

A base template for any Love2D game including a bunch of libraries and structure.
Lua
21
star
4

lua-poly2tri

A Lua wrapper around poly2tri.
C
11
star
5

polyline.lua

A polyline implementation in pure Lua
Lua
7
star
6

Friendshape

A cute, coop 2D platformer
Lua
6
star
7

tokio-tungstenite-wasm

A wrapper around websys and tokio-tungstenite that makes it easy to use websockets cross-platform.
Rust
6
star
8

morguelike

Lua
5
star
9

Stratcave

2D platform strategy game
Lua
4
star
10

Demoloops

A framework for making quick looping animations
C++
4
star
11

tannerrogalsky.github.com

Personal site repo
JavaScript
4
star
12

catenary.lua

A catenary implementation in Lua
Lua
4
star
13

NomicBot

A IRC bot to facilitate the playing of Nomic
Python
3
star
14

Robocode

A colleciton of robots for robocode competitions.
Java
2
star
15

vidispine.js

API helper for Vidispine in JS
JavaScript
2
star
16

LVLG

The LittleViking level generator
Java
2
star
17

CoffeeScript-Heroku-IRC

An IRC bot, written in CoffeeScript, designed to run on Heroku.
JavaScript
2
star
18

big_trouble

Prototypes for a top-down adventure/mystery game.
Lua
2
star
19

make-stateful

Turns your JavaScript objects into little state machines.
JavaScript
2
star
20

eisenscript

A programming language designed for generating awesome structures.
Rust
2
star
21

sportball

Multiplayer physics sport game
Lua
1
star
22

GravityGame

Gravity-based simulation
Java
1
star
23

suits

A sub-1KB set of playing cards.
JavaScript
1
star
24

VerticesFromImage

This is a small tool for obtaining vertices from an image.
Java
1
star
25

raf-runner

Simple API for running a function in a requestAnimationFrame loop.
JavaScript
1
star
26

XChat-Foobar2000-NowPlayingScript

An XChat now playing script written to work with foobar2000
C
1
star
27

GRIDPHREAK

Love2D schmup
Lua
1
star
28

sharecart1000

http://sharecart1000.com/
Lua
1
star
29

GGJ2017

Global Game Jam 2017
Lua
1
star
30

prevention-game

A private game jam game by Tanner and Chris
Lua
1
star
31

winit_minimal_example

A minimal window + GL example that works on native & wasm
Rust
1
star
32

LoveZip

An implementation of the Zip File Format in Lua
Lua
1
star
33

dungeon_generation_unity_talk

Dungeon Generation Talk written for http://www.meetup.com/Toronto-Unity-Developers/events/159614512/
Ruby
1
star
34

kamasutris

TGGJ 2013
Lua
1
star
35

wogademo_2013

Game for WOGADEMO 2013
Lua
1
star
36

wherehouse

Where?House game
Lua
1
star
37

gbcjam6

GBC Jam #6
Lua
1
star
38

ROMJAM2016

A game made for the 2016 ROMJAM
Lua
1
star
39

jsonschema-to-ts

Rust
1
star
40

wasm-raytracer

wasm shared memory raytracer
Rust
1
star
41

wasm-micro-rs

minimalist wasm from rust
Rust
1
star
42

hades

A Hades save editor
Rust
1
star
43

youre_next_hackathon

Repo for the game I made in solidarity with the contestant in the You're Next Hackathon
Lua
1
star
44

Whyday-Hackathon

Lua
1
star