Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: include format and lint tools for samples #359

Merged
merged 3 commits into from
Nov 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ system-test/*key.json
build
.vscode
package-lock.json
system-test-run/
.system-test-run/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/*
samples/node_modules/*
src/**/doc/*
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
bracketSpacing: false
printWidth: 80
semi: true
singleQuote: true
tabWidth: 2
trailingComma: es5
useTabs: false
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
"@types/through2": "^2.0.33",
"chai": "*",
"codecov": "^3.1.0",
"eslint": "^5.9.0",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-node": "^8.0.0",
"eslint-plugin-prettier": "^3.0.0",
"gts": "^0.9.0",
"ink-docstrap": "^1.3.2",
"intelli-espower-loader": "^1.0.1",
Expand All @@ -46,6 +50,7 @@
"mocha": "~5.2.0",
"nyc": "^13.1.0",
"pegjs": "~0.10.0",
"prettier": "^1.15.2",
"proxyquire": "^2.0.1",
"pumpify": "^1.5.1",
"rimraf": "^2.6.2",
Expand All @@ -61,11 +66,10 @@
"gen-parser": "pegjs lib/path_template_parser.pegjs",
"test": "npm run test-only",
"test-only": "nyc mocha build/test --reporter spec --slow 500",
"publish-gh-pages": "bash ./publish-gh-pages.sh",
"lint": "gts check",
"lint": "gts check && eslint samples/*.js samples/**/*.js",
"clean": "gts clean",
"compile": "tsc -p . && cp src/*.json build/src && cp src/*.js build/src",
"fix": "gts fix",
"fix": "gts fix && eslint --fix samples/*.js samples/**/*.js",
"prepare": "npm run compile",
"pretest-only": "npm run compile",
"posttest": "npm run lint",
Expand All @@ -88,7 +92,7 @@
"nyc": {
"exclude": [
"build/system-test/**",
"system-test-run/**"
".system-test-run/**"
]
}
}
56 changes: 0 additions & 56 deletions publish-gh-pages.sh

This file was deleted.

6 changes: 0 additions & 6 deletions src/.eslintrc.yml

This file was deleted.

116 changes: 64 additions & 52 deletions src/path_template_parser.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions system-test/.eslintrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion system-test/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const mkdir = util.promisify(fs.mkdir);
const rmrf = util.promisify(rimraf);

const baseRepoUrl = 'https://github.com/googleapis/';
const testDir = path.join(process.cwd(), 'system-test-run');
const testDir = path.join(process.cwd(), '.system-test-run');

interface ExecuteResult {
stdout: string;
Expand Down
23 changes: 0 additions & 23 deletions verify_build.sh

This file was deleted.