Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

refactor: use a repo-metadata to generate the readme #6

Merged
merged 2 commits into from
Apr 24, 2019
Merged

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Apr 23, 2019

This uses a .repo-metadata.json to generate the README, and makes a few other minor changes to support it. Fixes #5.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 23, 2019

# Google Cloud Firestore Sessions
# [Google Cloud Firestore Session: Node.js Client](https://github.com/googleapis/nodejs-firestore-session)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bcoe this library doesn't fit the traditional mold, in that it's a connector sorta thing. The title is sorta goofy - any ideas how we can better support this in the partials template?

Copy link
Contributor

Choose a reason for hiding this comment

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

Good question, do you think we should just let you override the title; make it optional in the partials?

Any other thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think being able to override the title would be lovely.

@JustinBeckwith JustinBeckwith requested review from fhinkel and bcoe April 23, 2019 19:17
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.

Any other parts of the template that feel clunky to you with this type of library?

What came to my mind as well, was does this make sense to open in Cloud Shell? I suppose someone could run the quick-start server here and play with it?

@JustinBeckwith
Copy link
Contributor Author

Actually.... it's great. Just the title would help a lot :)

@@ -36,7 +36,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2019 Google, LLC.',
copyright: 'Copyright 2018 Google, LLC.',
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we update the year?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file gets copied in with the other templates, so it would be kinda hard to change this. I think the copyright is supposed to be the year the code was written, so this is probably fine.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok


```javascript
const Firestore = require('@google-cloud/firestore');
const {Firestore} = require('@google-cloud/firestore');
Copy link
Contributor

Choose a reason for hiding this comment

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

When did Firestore start to return an object with the Firestore field? I used it last night and it's `const Firestore = required('@google-cloud/firestore');

Copy link
Contributor Author

@JustinBeckwith JustinBeckwith Apr 23, 2019

Choose a reason for hiding this comment

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

Fun fact... it supports both! The code here is copied in from the quickstart, which does have test coverage. So this should be fine :)

Copy link
Contributor

@fhinkel fhinkel left a comment

Choose a reason for hiding this comment

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

I think const {Firestore} is wrong and some of the copyright years are off.

@fhinkel
Copy link
Contributor

fhinkel commented Apr 24, 2019

Thank you 😀

@fhinkel fhinkel merged commit 96dd2e0 into master Apr 24, 2019
@fhinkel fhinkel deleted the meta branch April 24, 2019 01:10
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a .repo-metadata.json
4 participants