From 45285c8c9ca1ef4fbabc2785bbd13259ddfdfa89 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 17 Jul 2013 16:29:40 +0800 Subject: [PATCH] Should install node modules for default_app and spec when bootstrap. --- script/bootstrap.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/script/bootstrap.py b/script/bootstrap.py index fa6797bca..99f4c9178 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -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():