From 068d8bb664d2c9b07b1860bc0b6779d956262310 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 3 Jul 2018 14:04:20 -0700 Subject: [PATCH 1/2] gen: synth.py v2 --- synth.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/synth.py b/synth.py index 71789947..28881440 100644 --- a/synth.py +++ b/synth.py @@ -17,6 +17,9 @@ import synthtool as s import synthtool.gcp as gcp import subprocess +import logging + +logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() @@ -25,21 +28,11 @@ for version in versions: library = gapic.node_library('vision', version) - s.copy(library / 'protos') - s.copy(library / 'src' / version) - s.copy(library / 'samples') - s.copy(library / 'system-test') - s.copy(library / 'test') +s.copy(library, excludes=['README.md', 'package.json']) ''' Node.js specific cleanup ''' -# Repo Cleanup/Setup -subprocess.run(['npm', 'install']) - -# Generates scaffolding, enters contributors names -subprocess.run(['npm', 'run', 'generate-scaffolding']) - -# prettify and lint +subprocess.run(['npm', 'ci']) subprocess.run(['npm', 'run', 'prettier']) subprocess.run(['npm', 'run', 'lint']) From d07e7366d9bd34b524add77e47be2d1860f6b31c Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 3 Jul 2018 14:18:25 -0700 Subject: [PATCH 2/2] gen: synth.py excludes src/index.js for multi-version --- synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synth.py b/synth.py index 28881440..7e8fe46c 100644 --- a/synth.py +++ b/synth.py @@ -28,7 +28,7 @@ for version in versions: library = gapic.node_library('vision', version) -s.copy(library, excludes=['README.md', 'package.json']) +s.copy(library, excludes=['src/index.js', 'README.md', 'package.json']) ''' Node.js specific cleanup