feat: next

This commit is contained in:
calebboyd
2017-04-09 14:26:29 -05:00
parent 72afbe68a4
commit 7668d7b471
50 changed files with 1932 additions and 1563 deletions
+17
View File
@@ -0,0 +1,17 @@
function * disableNodeCli (compiler, next) {
if (compiler.options.enableNodeCli) {
return next()
}
const nodecc = yield compiler.readFileAsync('src/node.cc'),
nodeccMarker = "argv[index][0] == '-'"
nodecc.contents = nodecc.contents.replace(
nodeccMarker,
nodeccMarker.replace('-', ']')
)
return next()
}
module.exports.disableNodeCli = disableNodeCli