Merge pull request #2 from nicolasnoble/google-ts-style

Running google-ts-style init.
This commit is contained in:
Nicolas Noble 2017-08-02 15:28:08 -07:00 committed by GitHub
commit 2510b86baa
2 changed files with 31 additions and 2 deletions

View File

@ -9,7 +9,9 @@
"node": ">=8.3"
},
"keywords": [],
"author": "Google Inc.",
"author": {
"name": "Google Inc."
},
"license": "Apache-2.0",
"devDependencies": {
"@types/node": "^8.0.17",
@ -19,6 +21,21 @@
"gulp-tslint": "^8.1.1",
"gulp-typescript": "^3.2.1",
"merge2": "^1.1.0",
"typescript": "^2.4.2"
"typescript": "^2.4.1",
"google-ts-style": "latest",
"tslint": "^5.5.0"
},
"contributors": [
{
"name": "Google Inc."
}
],
"_id": "grpc-js@0.1.0",
"scripts": {
"build": "npm run compile",
"clean": "rm -rf ./build/",
"compile": "tsc -p . --rootDir . --outDir build/",
"format": "clang-format -i -style=\"{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}\" src/*.ts test/*.ts",
"lint": "tslint -c node_modules/google-ts-style/tslint.json -p . -t codeFrame --type-check"
}
}

12
tsconfig.json Normal file
View File

@ -0,0 +1,12 @@
{
"extends": "node_modules/google-ts-style/tsconfig-google.json",
"include": [
"src/*.ts",
"src/**/*.ts",
"test/*.ts",
"test/**/*.ts"
],
"exclude": [
"node_modules"
]
}