electron/build/npm.gni

23 lines
668 B
Text
Raw Normal View History

2018-05-03 22:44:29 +00:00
template("npm_action") {
assert(defined(invoker.script),
"Need script name to run (must be defined in package.json)")
assert(defined(invoker.args), "Need script argumets")
2018-05-03 22:44:29 +00:00
action(target_name) {
forward_variables_from(invoker,
[
"deps",
"public_deps",
"sources",
"inputs",
"outputs",
])
2018-05-03 22:44:29 +00:00
script = "//electron/build/npm-run.py"
args = [
"--silent",
invoker.script,
"--",
] + invoker.args
2018-05-03 22:44:29 +00:00
}
}