Skip to content

Instantly share code, notes, and snippets.

View Munter's full-sized avatar

Peter Müller Munter

View GitHub Profile
@OliverJAsh
OliverJAsh / a.rb
Created June 25, 2015 17:15
DI for SystemJS
export default class Injector {
constructor() {
this.loader = new System.constructor();
this.loader.config({
baseURL: System.baseURL,
defaultJSExtensions: true,
transpiler: System.transpiler,
paths: System.paths,
map: System.map,
// Map is transformed to packages
@OliverJAsh
OliverJAsh / gist:bcc676e381a06dbb3be0
Created October 28, 2014 11:34
webpack experiment and comparison against jspm

webpack: http://webpack.github.io/ jspm: http://jspm.io/

Nice introduction presentation: http://peerigon.github.io/presentations/2014-07-09-MNUG-webpack/

The watch seems intelligent in that it might be tracing the dependency graph. In my test case it seems to, at least. AMD and CommonJS modules are supported out of the box. In my test I was unable to get es6-loader working (see commit in link below).

Unlike jspm, it's not a registry. Instead it resolves dependencies from node_modules (i.e. npm) by default (like browserify), although according to this tutorial it's trivial to configure which directories the module resolver should read from.

@Munter
Munter / install_assetgraph.sh
Created July 12, 2011 22:28
Assetgraph bootstrap
#!/bin/sh
# Install dependencies
sudo apt-get install git libssl-dev libcairo2-dev libgif-dev libjpeg8-dev optipng pngcrush pngquant
# Install Node.js v0.4
git clone git://github.com/joyent/node
cd node
git checkout v0.4
make distclean # Only necessary if you've compiled from the same checkout before