Use my fork of the node_preamble package.

We'll go back to the published package once
mbullington/node_preamble.dart#1 lands.

Closes #51
This commit is contained in:
Natalie Weizenbaum 2016-12-02 14:22:06 -08:00
parent 70aa894b2e
commit 71264f83bb
2 changed files with 2 additions and 6 deletions

View File

@ -26,6 +26,6 @@ dev_dependencies:
grinder: "^0.8.0"
http: "^0.11.0"
js: "^0.6.0"
node_preamble: "^1.0.0"
node_preamble: {git: git://github.com/nex3/node_preamble.dart}
test: "^0.12.0"
yaml: "^2.0.0"

View File

@ -63,11 +63,7 @@ js() {
'-Ddart-version=$_dartVersion',
]);
var text = destination.readAsStringSync();
destination.writeAsStringSync("""
${preamble.getPreamble()}
global.exports = exports;
$text
""");
destination.writeAsStringSync(preamble.getPreamble() + text);
}
@Task('Build a pure-JS npm package.')