File tree Expand file tree Collapse file tree
packages/google-cloud-translate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 "scripts" : {
3131 "docs" : " jsdoc -c .jsdoc.js" ,
3232 "predocs" : " npm run compile" ,
33- "lint" : " gts fix " ,
33+ "lint" : " gts check " ,
3434 "samples-test" : " cd samples/ && npm link ../ && npm test && cd ../" ,
3535 "system-test" : " mocha build/system-test --timeout 600000" ,
3636 "test" : " c8 mocha build/test" ,
4141 "presystem-test" : " npm run compile" ,
4242 "docs-test" : " linkinator docs" ,
4343 "predocs-test" : " npm run docs" ,
44- "prelint" : " cd samples; npm link ../; npm install"
44+ "prelint" : " cd samples; npm link ../; npm install" ,
45+ "clean" : " gts clean" ,
46+ "precompile" : " gts clean"
4547 },
4648 "dependencies" : {
4749 "@google-cloud/common" : " ^3.0.0" ,
Original file line number Diff line number Diff line change 1616
1717import synthtool as s
1818import synthtool .gcp as gcp
19+ import synthtool .languages .node as node
1920import logging
20- import subprocess
2121
2222# Run the gapic generator
2323gapic = gcp .GAPICMicrogenerator ()
4343templates = common_templates .node_library (source_location = 'build/src' )
4444s .copy (templates , excludes = [])
4545
46- # Node.js specific cleanup
47- subprocess .run (["npm" , "install" ])
48- subprocess .run (["npm" , "run" , "lint" ])
49- subprocess .run (["npx" , "compileProtos" , "src" ])
46+ node .postprocess_gapic_library ()
You can’t perform that action at this time.
0 commit comments