-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(typescript): perform initial TypeScript conversion (#384)
- Loading branch information
1 parent
bb6a7c0
commit f37ddc8
Showing
13 changed files
with
62 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Language: JavaScript | ||
BasedOnStyle: Google | ||
ColumnLimit: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"node": ">=6.0.0" | ||
}, | ||
"repository": "googleapis/nodejs-spanner", | ||
"main": "./src/index.js", | ||
"main": "./build/src/index.js", | ||
"files": [ | ||
"protos", | ||
"src", | ||
|
@@ -52,18 +52,21 @@ | |
"haih-g <[email protected]>" | ||
], | ||
"scripts": { | ||
"cover": "nyc --reporter=lcov mocha test/*.js && nyc report", | ||
"docs": "jsdoc -c .jsdoc.js", | ||
"generate-scaffolding": "repo-tools generate all && repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", | ||
"lint": "eslint src/ samples/ system-test/ test/ scripts/", | ||
"lint": "echo disabled for now", | ||
"prettier": "prettier --write benchmark/*.js src/*.js src/*/*.js src/admin/database/*/*.js src/admin/instance/*/*.js samples/*.js samples/*/*.js samples/*/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"system-test": "mocha system-test/*.js --timeout 600000", | ||
"system-test": "mocha build/system-test --timeout 600000", | ||
"cleanup": "mocha scripts/cleanup.js --timeout 30000", | ||
"test-no-cover": "mocha test/*.js", | ||
"test": "npm run cover", | ||
"test": "nyc mocha build/test", | ||
"ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb", | ||
"fix": "eslint --fix '**/*.js'" | ||
"fix": "eslint --fix '**/*.js'", | ||
"clean": "gts clean", | ||
"compile": "tsc -p . && cp src/v1/*.json build/src/v1 && cp -r protos build", | ||
"prepare": "npm run compile", | ||
"pretest": "npm run compile", | ||
"presystem-test": "npm run compile" | ||
}, | ||
"dependencies": { | ||
"@google-cloud/common-grpc": "^0.9.0", | ||
|
@@ -112,6 +115,8 @@ | |
"stats-lite": "^2.1.1", | ||
"time-span": "^2.0.0", | ||
"uuid": "^3.3.2", | ||
"yargs": "^12.0.1" | ||
"yargs": "^12.0.1", | ||
"gts": "^0.8.0", | ||
"typescript": "~3.1.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"extends": "./node_modules/gts/tsconfig-google.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"outDir": "build", | ||
"allowJs": true, | ||
"declaration": false, | ||
"skipLibCheck": true | ||
}, | ||
"include": [ | ||
"src/*.ts", | ||
"src/*/js", | ||
"src/**/*.ts", | ||
"src/**/*.js", | ||
"test/*.ts", | ||
"test/*.js", | ||
"test/**/*.ts", | ||
"test/**/*.js", | ||
"system-test/*.ts", | ||
"system-test/*.js", | ||
"system-test/**/*.ts", | ||
"system-test/**/*.js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "gts/tslint.json" | ||
} |