]> khamidou — GitHub mirrors - electron.git/commitdiff
Should install node modules for default_app and spec when bootstrap.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 17 Jul 2013 08:29:40 +0000 (16:29 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 17 Jul 2013 08:29:40 +0000 (16:29 +0800)
script/bootstrap.py

index fa6797bca4585b6d13f4f7c28e5ec82d360a8cee..99f4c9178d38c0015a7879e69b27fa3b869a2ea9 100755 (executable)
@@ -56,7 +56,13 @@ def bootstrap_brightray(url):
 
 
 def update_node_modules():
-  subprocess.check_call(['npm', 'install', '--silent'])
+  for dirname in ['.', 'browser/default_app', 'spec']:
+    update_node_modules_for_dir(dirname);
+
+
+def update_node_modules_for_dir(dirname):
+  with scoped_cwd(dirname):
+    subprocess.check_call(['npm', 'install', '--silent'])
 
 
 def update_win32_python():