14fc6f3081
* chore: add GN linter * chore: fix GN lint errors * try some crazy bash to get a gn exe * base64 on linux is different * cloning build_tools doesn't download GN * download_from_google_storage needs depot_tools in the path * fixup! chore: add GN linter
22 lines
668 B
Text
22 lines
668 B
Text
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")
|
|
|
|
action(target_name) {
|
|
forward_variables_from(invoker,
|
|
[
|
|
"deps",
|
|
"public_deps",
|
|
"sources",
|
|
"inputs",
|
|
"outputs",
|
|
])
|
|
script = "//electron/build/npm-run.py"
|
|
args = [
|
|
"--silent",
|
|
invoker.script,
|
|
"--",
|
|
] + invoker.args
|
|
}
|
|
}
|