Chromium Code Reviews
DescriptionDevTools: Make eslint mandatory and check node.js/npm modules in presubmit
- Adds presubmit step to ensure users are running on node.js v4 or later
and installs node_modules using 'npm install'. If 'npm install' fails
(e.g. npm registry has an outage), it's a soft warning that doesn't fail
the presubmit check. Most likely, the user already has node_modules installed.
- Automatically installs local node.js for Linux users; Windows and Mac users
have official node.js installers
- Even though this runs 'npm install' with every presubmit, if it has been
installed once, running 'npm install' is a quick check (<1 sec to run)
- Makes eslint a mandatory presubmit step (before if it wasn't installed,
it would skip the step with a soft warning).
BUG=642046
Committed: https://crrev.com/6d7f23b089bcfd951446564995916395b579140d
Cr-Commit-Position: refs/heads/master@{#425777}
Patch Set 1 #Patch Set 2 : Fix copyright year #
Total comments: 4
Patch Set 3 : CL feedback #Patch Set 4 : auto-install local node.js for linux #
Total comments: 4
Patch Set 5 : address CL feedback #
Total comments: 10
Patch Set 6 : address CL feedback #Patch Set 7 : nit #
Total comments: 5
Patch Set 8 : address CL feedback #
Total comments: 2
Patch Set 9 : Fix node.py #Messages
Total messages: 31 (13 generated)
|