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

chore: update npm scripts and synth.py #167

Merged
merged 1 commit into from
Apr 24, 2020
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"webpack-cli": "^3.3.10"
},
"scripts": {
"lint": "gts fix",
"lint": "gts check",
"fix": "gts fix",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"system-test": "mocha build/system-test",
Expand All @@ -59,7 +59,8 @@
"compile-protos": "compileProtos src",
"predocs-test": "npm run docs",
"prepare": "npm run compile",
"prelint": "cd samples; npm link ../; npm install"
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean"
},
"license": "Apache-2.0",
"engines": {
Expand Down
7 changes: 2 additions & 5 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

import synthtool as s
import synthtool.gcp as gcp
import subprocess
import synthtool.languages.node as node
import logging

logging.basicConfig(level=logging.DEBUG)
Expand Down Expand Up @@ -43,7 +43,4 @@
templates = common_templates.node_library(source_location='build/src')
s.copy(templates)

# Node.js specific cleanup
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'fix'])
subprocess.run(['npx', 'compileProtos', 'src'])
node.postprocess_gapic_library()