Skip to content

Instantly share code, notes, and snippets.

@tgvashworth
Created May 21, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tgvashworth/30249b42376c1f7e4ed8 to your computer and use it in GitHub Desktop.
Save tgvashworth/30249b42376c1f7e4ed8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
'use strict';
var System = require('systemjs');
global.System = System; // Blegh
require('../config/config.js');
System.import('runner.js');
import x from 'y';
// ... some stuff here
// This works except when this argument is not a subdirectory of our pwd
System.import(process.argv[3]) // WHY CAN'T I LOAD ANYTHING
.then(doSomethingWithIt);
// Maybe es5, maybe es6.
module.exports = { blah: true };
$ ./run some-file-to-run.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment