Skip to content

Commit

Permalink
chore: update npm scripts and synth.py (#1162)
Browse files Browse the repository at this point in the history
Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool.
  • Loading branch information
alexander-fenster committed Apr 24, 2020
1 parent 5877cc7 commit 5a8eea3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"benchwrapper": "node bin/benchwrapper.js",
"prelint": "cd samples; npm link ../; npm i"
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean"
},
"dependencies": {
"@google-cloud/common": "^3.0.0",
Expand Down
3 changes: 3 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

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

logging.basicConfig(level=logging.DEBUG)
Expand All @@ -30,3 +31,5 @@
".circleci/config.yml",
"command: npm run system-test",
"command: mkdir $HOME/.config && npm run system-test")
node.install()
node.fix()

0 comments on commit 5a8eea3

Please sign in to comment.