Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

synth.py: follow synth scripts from other repos #113

Merged
merged 2 commits into from
Jul 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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=['src/index.js', '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'])