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
apis: generate homegraph api #1807
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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,47 @@ | ||
<img src="https://avatars0.githubusercontent.com/u/1342004?v=3&s=96" alt="Google Inc. logo" title="Google" align="right" height="96" width="96"/> | ||
|
||
# homegraph | ||
|
||
> | ||
|
||
## Installation | ||
|
||
```sh | ||
$ npm install googleapis | ||
``` | ||
|
||
## Usage | ||
All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). | ||
|
||
## Building a browser bundle | ||
|
||
This library can be used in a browser. To prepare a single file bundle, clone the | ||
[repository](https://github.com/googleapis/google-api-nodejs-client) and run | ||
|
||
```sh | ||
$ cd src/apis/homegraph | ||
$ npm install | ||
$ npm run webpack | ||
``` | ||
|
||
The generated bundle will be written to `dist/homegraph.min.js`. Use it from your HTML file: | ||
|
||
```html | ||
<script src="/path/to/homegraph.min.js"></script> | ||
<script> | ||
const { homegraph, auth } = Homegraph; | ||
</script> | ||
``` | ||
|
||
## License | ||
This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE). | ||
|
||
## Contributing | ||
We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md). | ||
|
||
## Questions/problems? | ||
* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). | ||
* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). | ||
|
||
|
||
*Crafted with ❤️ by the Google Node.js team* |
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,34 @@ | ||
// Copyright 2019 Google LLC | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
/*! THIS FILE IS AUTO-GENERATED */ | ||
|
||
import { | ||
AuthPlus, | ||
getAPI, | ||
GoogleConfigurable | ||
} from 'googleapis-common'; | ||
import { homegraph_v1 } from './v1'; | ||
|
||
export const VERSIONS = { | ||
'v1': homegraph_v1.Homegraph, | ||
}; | ||
|
||
export function homegraph(version: 'v1'): homegraph_v1.Homegraph; | ||
export function homegraph(options: homegraph_v1.Options): homegraph_v1.Homegraph; | ||
export function homegraph<T = homegraph_v1.Homegraph>(this: GoogleConfigurable, versionOrOptions: 'v1'|homegraph_v1.Options) { | ||
return getAPI<T>('homegraph', versionOrOptions, VERSIONS, this); | ||
} | ||
|
||
const auth = new AuthPlus(); | ||
export {auth}; |
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,43 @@ | ||
{ | ||
"name": "@google/homegraph", | ||
"version": "0.1.0", | ||
"description": "homegraph", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"keywords": [ | ||
"google" | ||
], | ||
"author": "Google LLC", | ||
"license": "Apache-2.0", | ||
"homepage": "https://github.com/googleapis/google-api-nodejs-client", | ||
"bugs": { | ||
"url": "https://github.com/googleapis/google-api-nodejs-client/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/googleapis/google-api-nodejs-client.git" | ||
}, | ||
"engines": { | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
"fix": "gts fix", | ||
"lint": "gts check", | ||
"compile": "tsc -p .", | ||
"prepare": "npm run compile", | ||
"docs": "typedoc --out docs/", | ||
"webpack": "webpack" | ||
}, | ||
"dependencies": { | ||
"googleapis-common": "^2.0.4" | ||
}, | ||
"devDependencies": { | ||
"gts": "^1.0.0", | ||
"null-loader": "^3.0.0", | ||
"ts-loader": "^6.0.4", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't believe that the generator generates with up-to-date dependencies, so you might want to update these accordingly. |
||
"typedoc": "^0.15.0", | ||
"typescript": "~3.5.3", | ||
"webpack": "^4.35.3", | ||
"webpack-cli": "^3.3.5" | ||
} | ||
} |
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,10 @@ | ||
{ | ||
"extends": "./node_modules/gts/tsconfig-google.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"outDir": "build" | ||
}, | ||
"include": [ | ||
"*.ts", | ||
] | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the linting looks a bit weird, i think you might need to run:
To fix the linting.