Created
May 21, 2015 14:11
-
-
Save tgvashworth/30249b42376c1f7e4ed8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
var System = require('systemjs'); | |
global.System = System; // Blegh | |
require('../config/config.js'); | |
System.import('runner.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Maybe es5, maybe es6. | |
module.exports = { blah: true }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./run some-file-to-run.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment