Skip to content

Commit

Permalink
refactor: drop a few deps (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Nov 9, 2018
1 parent 0e1362c commit 2e86b3c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
10 changes: 3 additions & 7 deletions packages/google-cloud-oslogin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,32 +35,28 @@
"cover": "nyc --reporter=lcov mocha test/*.js && nyc report",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"test-no-cover": "mocha test/*.js",
"lint": "eslint src/ samples/ system-test/ test/",
"prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js",
"lint": "eslint '**/*.js'",
"docs": "jsdoc -c .jsdoc.js",
"system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000",
"fix": "eslint --fix '**/*.js' && npm run prettier"
"fix": "eslint --fix '**/*.js'"
},
"dependencies": {
"google-gax": "^0.20.0",
"lodash.merge": "^4.6.0"
},
"devDependencies": {
"@google-cloud/nodejs-repo-tools": "^2.2.4",
"async": "^2.6.0",
"codecov": "^3.0.0",
"eslint": "^5.0.0",
"eslint-config-prettier": "^3.0.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"extend": "^3.0.1",
"ink-docstrap": "^1.3.2",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
"mocha": "^5.0.0",
"nyc": "^13.0.0",
"power-assert": "^1.4.4",
"prettier": "^1.9.2",
"through2": "^3.0.0"
"prettier": "^1.9.2"
}
}
8 changes: 2 additions & 6 deletions packages/google-cloud-oslogin/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,12 @@
import synthtool as s
import synthtool.gcp as gcp
import logging
from pathlib import Path
import subprocess

logging.basicConfig(level=logging.DEBUG)

gapic = gcp.GAPICGenerator()

versions = ['v1beta']

for version in versions:
library = gapic.node_library(
'os-login', version,
Expand All @@ -38,12 +35,11 @@
excludes=['package.json', 'README.md', 'src/index.js'],
)

# Copy common templates
common_templates = gcp.CommonTemplates()
templates = common_templates.node_library()
s.copy(templates)

#
# Node.js specific cleanup
#
subprocess.run(['npm', 'install'])
subprocess.run(['npm', 'run', 'prettier'])
subprocess.run(['npm', 'run', 'fix'])
1 change: 0 additions & 1 deletion packages/google-cloud-oslogin/system-test/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
env:
mocha: true
rules:
node/no-unpublished-require: off
no-console: off
2 changes: 0 additions & 2 deletions packages/google-cloud-oslogin/test/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
env:
mocha: true
rules:
node/no-unpublished-require: off

0 comments on commit 2e86b3c

Please sign in to comment.