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: Addressing Dave's comments Created Oct. 17, 2017, 12:41 p.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 | « README.md ('k') | package.json » ('j') | tests/README.md » ('J')
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')
tlucas 2017/10/17 12:45:50 The changes in this file are meant to enable tox t
kzar 2017/10/17 13:03:54 Yea I know what you mean, alternative I suppose to
Sebastian Noack 2017/10/17 22:19:06 Any particular reason, to not just call "npm insta
tlucas 2017/10/18 11:23:05 What i had in mind was to have the ensure_npm_depe
+ 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 | « README.md ('k') | package.json » ('j') | tests/README.md » ('J')

Powered by Google App Engine
This is Rietveld