One more verbose_mode
`bootstrap.py` new variable `verbose_mode` to run `npm install` with --verbose option
This commit is contained in:
parent
bf4c219766
commit
19bba5c18c
1 changed files with 9 additions and 1 deletions
|
@ -14,12 +14,17 @@ PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26'
|
||||||
NPM = 'npm.cmd' if sys.platform in ['win32', 'cygwin'] else 'npm'
|
NPM = 'npm.cmd' if sys.platform in ['win32', 'cygwin'] else 'npm'
|
||||||
|
|
||||||
|
|
||||||
|
verbose_mode = False
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
os.chdir(SOURCE_ROOT)
|
os.chdir(SOURCE_ROOT)
|
||||||
|
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
if args.verbose:
|
if args.verbose:
|
||||||
enable_verbose_execute()
|
enable_verbose_execute()
|
||||||
|
global verbose_mode
|
||||||
|
verbose_mode = True
|
||||||
update_submodules()
|
update_submodules()
|
||||||
update_node_modules('.')
|
update_node_modules('.')
|
||||||
update_atom_modules('spec')
|
update_atom_modules('spec')
|
||||||
|
@ -61,7 +66,10 @@ def bootstrap_brightray(url):
|
||||||
|
|
||||||
def update_node_modules(dirname):
|
def update_node_modules(dirname):
|
||||||
with scoped_cwd(dirname):
|
with scoped_cwd(dirname):
|
||||||
execute_stdout([NPM, 'install'])
|
if verbose_mode:
|
||||||
|
execute_stdout([NPM, 'install', '--verbose'])
|
||||||
|
else:
|
||||||
|
execute_stdout([NPM, 'install'])
|
||||||
|
|
||||||
|
|
||||||
def update_atom_modules(dirname):
|
def update_atom_modules(dirname):
|
||||||
|
|
Loading…
Reference in a new issue