Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: ensure_dependencies.py

Issue 29501558: Issue 5383 - Add tests for the Chrome and Firefox packagers (Closed)
Patch Set: NO CHANGE Rebasing against #4720 @ PS 4 Created Oct. 18, 2017, 11:18 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build.py ('k') | package.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ensure_dependencies.py
diff --git a/ensure_dependencies.py b/ensure_dependencies.py
index 9c9a9ca83dc7efe936204802a8b344b0159174cc..9481a081edecf9eff309b221befa664366b9afbb 100755
--- a/ensure_dependencies.py
+++ b/ensure_dependencies.py
@@ -426,13 +426,21 @@ if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Verify dependencies for a set of repositories, by default the repository of this script.')
parser.add_argument('repos', metavar='repository', type=str, nargs='*', help='Repository path')
parser.add_argument('-q', '--quiet', action='store_true', help='Suppress informational output')
+ parser.add_argument(
+ '--nodejs-only',
+ action='store_true',
+ help='Install Node.js production-only dependencies only'
+ )
args = parser.parse_args()
if args.quiet:
logging.disable(logging.INFO)
- repos = args.repos
- if not len(repos):
- repos = [os.path.dirname(__file__)]
- for repo in repos:
- resolve_deps(repo)
+ if args.nodejs_only:
+ resolve_npm_dependencies('.', get_repo_type('.'))
+ else:
+ repos = args.repos
+ if not len(repos):
+ repos = [os.path.dirname(__file__)]
+ for repo in repos:
+ resolve_deps(repo)
« no previous file with comments | « build.py ('k') | package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld