Skip to content

Commit

Permalink
chore: update npm scripts and synth.py (#385)
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 authored Apr 24, 2020
1 parent 2207fd4 commit 38f51dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/google-cloud-dns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"pretest": "npm run compile",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"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 packages/google-cloud-dns/synth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import synthtool as s
import synthtool.gcp as gcp
import synthtool.languages.node as node
import logging

logging.basicConfig(level=logging.DEBUG)
Expand All @@ -9,3 +10,5 @@
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
s.copy(templates)
node.install()
node.fix()

0 comments on commit 38f51dd

Please sign in to comment.