Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

hanging-gardens/hanging_gardens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hanging Gardens — CommonJS for Sprockets

Usage

in your Gemfile:

gem 'hanging_gardens'

after setting up your Sprockets environment:

HangingGardens.register(env)

add your first CommonJS file 'app/assets/index.common':

var window = require('browser/window');
console.log(window);