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

Commit

Permalink
chore: update npm scripts and synth.py (#439)
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 e50ed88 commit 5380bb2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@
],
"scripts": {
"docs": "jsdoc -c .jsdoc.js",
"lint": "eslint '**/*.js'",
"lint": "gts check",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "mocha system-test/*.js --timeout 1200000",
"test": "c8 mocha",
"fix": "eslint --fix '**/*.js'",
"fix": "gts fix",
"docs-test": "linkinator docs",
"predocs-test": "npm run docs",
"prelint": "cd samples; npm link ../; npm i"
"prelint": "cd samples; npm link ../; npm install",
"clean": "gts clean",
"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
@@ -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()
s.copy(templates)
node.install()
node.fix()

0 comments on commit 5380bb2

Please sign in to comment.