MCPcopy Create free account
hub / github.com/ampproject/amphtml / InstallNodeDependencies

Function InstallNodeDependencies

validator/js/webui/build.py:77–86  ·  view source on GitHub ↗

Installs the dependencies using npm install.

()

Source from the content-addressed store, hash-verified

75
76
77def InstallNodeDependencies():
78 """Installs the dependencies using npm install."""
79 logging.info('entering ...')
80 # Install the project dependencies specified in package.json into
81 # node_modules.
82 logging.info('installing AMP Validator webui dependencies ...')
83 subprocess.check_call(
84 ['npm', 'install', '--userconfig', '../../../.npmrc'],
85 stdout=(open(os.devnull, 'wb') if os.environ.get('CI') else sys.stdout))
86 logging.info('... done')
87
88
89def CreateWebuiAppengineDist(out_dir):

Callers 1

MainFunction · 0.70

Calls 3

openFunction · 0.85
infoMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected