Skip to content

Instantly share code, notes, and snippets.

@BigAB

BigAB/bower.json Secret

Created September 8, 2015 21:38
Show Gist options
  • Save BigAB/c108bb0860c9cfee3d6a to your computer and use it in GitHub Desktop.
Save BigAB/c108bb0860c9cfee3d6a to your computer and use it in GitHub Desktop.
Using Bower and Steal to load the ES6-Collections repo as a global module
{
"name": "bower-steal-es6-collections",
"version": "0.0.0",
"private": true,
"dependencies": {
"es6-collections": "git://github.com/WebReflection/es6-collections.git",
"jquery": "~2.1.4",
"steal": "~0.10.5"
},
"system": {
"paths": {
"es6-collections": "bower_components/es6-collections/index.js"
},
"meta": {
"es6-collections": {
"format": "global"
}
},
"bowerIgnore": ["es6-collections"]
}
}
<!DOCTYPE html>
<script src="bower_components/steal/steal.js" main="main"></script>
import $ from 'jquery';
import 'es6-collections';
let myMap = new Map();
let myKey = {};
myMap.set(myKey, '<h1>Hello ES6 World</h1>');
$(()=>{
$('body').append(myMap.get(myKey));
});
@lguzzon
Copy link

lguzzon commented Oct 20, 2016

Hi,
I'm new about StealJS and here I've found a good working example ... thanks.
But this does not work with the latest StealJS ... can you help me to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment