diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-06-13 14:58:06 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-06-13 14:58:06 +0200 |
commit | bb6222c91872695cbe98aa2a75166265f52cec2e (patch) | |
tree | 142ee230756778b02da71cc6de5516f2298c9452 /deno2/js/run_node.py | |
parent | 1676822888ef6c75bb2afff3b7a93d030d63f2ea (diff) |
Clean up the build (replace browserify with parcel)
Diffstat (limited to 'deno2/js/run_node.py')
-rwxr-xr-x | deno2/js/run_node.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deno2/js/run_node.py b/deno2/js/run_node.py index 8f650a534..1a69dc502 100755 --- a/deno2/js/run_node.py +++ b/deno2/js/run_node.py @@ -1,6 +1,8 @@ #!/usr/bin/env python """ -gn can only run python scripts. +gn can only run python scripts. This launches a subprocess Node process. +The working dir of this program is out/Debug/ (AKA root_build_dir) +Before running node, we symlink js/node_modules to out/Debug/node_modules. """ import subprocess import sys @@ -23,7 +25,6 @@ def symlink(target, name, target_is_dir=False): js_path = os.path.dirname(os.path.realpath(__file__)) node_modules_path = os.path.join(js_path, "node_modules") -# root_out_dir if not os.path.exists("node_modules"): symlink(node_modules_path, "node_modules", True) |