Skip to content

Commit 97e3409

Browse files
chore: update npm scripts and synth.py (#475)
Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool.
1 parent 4d859bf commit 97e3409

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"license-check": "jsgl --local .",
3131
"docs-test": "linkinator docs",
3232
"predocs-test": "npm run docs",
33-
"prelint": "cd samples; npm link ../; npm i"
33+
"prelint": "cd samples; npm link ../; npm install",
34+
"precompile": "gts clean"
3435
},
3536
"dependencies": {
3637
"@google-cloud/common": "^3.0.0",

synth.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import synthtool as s
1616
import synthtool.gcp as gcp
17+
import synthtool.languages.node as node
1718
import logging
1819

1920
logging.basicConfig(level=logging.DEBUG)
@@ -23,3 +24,5 @@
2324
common_templates = gcp.CommonTemplates()
2425
templates = common_templates.node_library()
2526
s.copy(templates)
27+
node.install()
28+
node.fix()

0 commit comments

Comments
 (0)