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(dep)!: upgrade gts 2.0.0 #194

Merged
merged 11 commits into from Mar 23, 2020
Merged

chore(dep)!: upgrade gts 2.0.0 #194

merged 11 commits into from Mar 23, 2020

Conversation

summer-ji-eng
Copy link
Contributor

@summer-ji-eng summer-ji-eng commented Mar 20, 2020

upgrade gts 2.0.0
fix some lint issue.

@summer-ji-eng summer-ji-eng requested a review from bcoe March 20, 2020 00:27
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 20, 2020
test/index.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Mar 20, 2020

Codecov Report

Merging #194 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #194   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines         371    371           
  Branches       45     42    -3     
=====================================
  Hits          371    371
Impacted Files Coverage Δ
src/index.ts 100% <100%> (ø) ⬆️
src/resource-stream.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f6434ab...ebe5ae6. Read the comment docs.

package.json Outdated
"codecov": "^3.0.4",
"gts": "^1.0.0",
"eslint": "^6.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can drop all of these eslint dependencies

test/index.ts Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
tsconfig.json Outdated Show resolved Hide resolved
package.json Outdated
"prepare": "npm run compile",
"pretest": "npm run compile",
"posttest": "npm run lint",
"docs": "compodoc src/",
"presystem-test": "npm run compile",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bcoe do we do this in other places?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all that should be required is this:

"samples-test": "cd samples/ && npm link ../ && npm test && cd ../"

which is what we use in other libraries, npm link ../ should perform the install.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: The couple libraries I converted use samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../, like https://github.com/googleapis/nodejs-monitoring/blob/master/package.json#L32

test/resource-stream.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
test/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a note that we should probably come back and flesh out these types eventually.

@@ -47,7 +47,7 @@ export class ResourceStream<T> extends Transform implements ResourceEvents<T> {
this._requestsMade = 0;
this._resultsToSend = args.maxResults === -1 ? Infinity : args.maxResults!;
}
// tslint:disable-next-line:no-any
/* eslint-disable @typescript-eslint/no-explicit-any */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine for now, I would rather that these PRs turn into as minimal of a refactor as possible, even though we might want to come back and make this a more extensive refactor.

@bcoe bcoe merged commit 4eaf9be into master Mar 23, 2020
@bcoe bcoe deleted the summer_gts branch March 23, 2020 18:22
@release-please release-please bot mentioned this pull request Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants