Skip to content

Commit

Permalink
feat: add asset API to baseline test (#454)
Browse files Browse the repository at this point in the history
* add asset to baseline test

* update dependency

* update baseline

* update baseline

* feedback
  • Loading branch information
xiaozhenliu-gg5 authored May 4, 2020
1 parent e45a665 commit 1f76171
Show file tree
Hide file tree
Showing 40 changed files with 5,309 additions and 4 deletions.
6 changes: 6 additions & 0 deletions baselines/asset/.eslintignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/node_modules
**/.coverage
build/
docs/
protos/
system-test/
3 changes: 3 additions & 0 deletions baselines/asset/.eslintrc.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./node_modules/gts"
}
14 changes: 14 additions & 0 deletions baselines/asset/.gitignore.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
**/*.log
**/node_modules
.coverage
coverage
.nyc_output
docs/
out/
build/
system-test/secrets.js
system-test/*key.json
*.lock
.DS_Store
package-lock.json
__pycache__
55 changes: 55 additions & 0 deletions baselines/asset/.jsdoc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
// Copyright 2020 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
//
// https://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 automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/jsdoc-fresh',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown',
'jsdoc-region-tag'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'build/src',
'protos'
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2020 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/asset',
theme: 'lumen',
default: {
outputSourceFiles: false
}
},
markdown: {
idInHeadings: true
}
};
33 changes: 33 additions & 0 deletions baselines/asset/.mocharc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright 2020 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
//
// https://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 automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

const config = {
"enable-source-maps": true,
"throw-deprecation": true,
"timeout": 10000
}
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
delete config['throw-deprecation'];
}
if (process.env.MOCHA_REPORTER) {
config.reporter = process.env.MOCHA_REPORTER;
}
if (process.env.MOCHA_REPORTER_OUTPUT) {
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
}
module.exports = config
22 changes: 22 additions & 0 deletions baselines/asset/.prettierrc.js.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright 2020 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
//
// https://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 automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **


module.exports = {
...require('gts/.prettierrc.json')
}
1 change: 1 addition & 0 deletions baselines/asset/README.md.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Asset: Nodejs Client
10 changes: 10 additions & 0 deletions baselines/asset/linkinator.config.json.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"recurse": true,
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
],
"silent": true,
"concurrency": 10
}
51 changes: 51 additions & 0 deletions baselines/asset/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "@google-cloud/asset",
"version": "0.1.0",
"description": "Asset client for Node.js",
"repository": "googleapis/nodejs-asset",
"license": "Apache-2.0",
"author": "Google LLC",
"main": "build/src/index.js",
"files": [
"build/src",
"build/protos"
],
"scripts": {
"clean": "gts clean",
"compile": "tsc -p . && cp -r protos build/",
"compile-protos": "compileProtos src",
"docs": "jsdoc -c .jsdoc.js",
"predocs-test": "npm run docs",
"docs-test": "linkinator docs",
"fix": "gts fix",
"lint": "gts check",
"prepare": "npm run compile-protos && npm run compile",
"system-test": "c8 mocha build/system-test",
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^2.3.1"
},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^12.12.37",
"@types/sinon": "^9.0.0",
"c8": "^7.1.1",
"gts": "^2.0.0",
"jsdoc": "^3.6.4",
"jsdoc-fresh": "^1.0.2",
"jsdoc-region-tag": "^1.0.4",
"linkinator": "^2.0.6",
"mocha": "^6.2.3",
"null-loader": "^4.0.0",
"pack-n-play": "^1.0.0-2",
"sinon": "^9.0.2",
"ts-loader": "^7.0.2",
"typescript": "~3.8.3",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.11"
},
"engines": {
"node": ">=10.0.0"
}
}
1 change: 1 addition & 0 deletions baselines/asset/package.json.baseline
24 changes: 24 additions & 0 deletions baselines/asset/proto.list.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
google/api/http.proto
google/protobuf/descriptor.proto
google/api/annotations.proto
google/api/client.proto
google/api/field_behavior.proto
google/api/resource.proto
google/protobuf/empty.proto
google/protobuf/timestamp.proto
google/cloud/orgpolicy/v1/orgpolicy.proto
google/type/expr.proto
google/iam/v1/policy.proto
google/identity/accesscontextmanager/type/device_resources.proto
google/identity/accesscontextmanager/v1/access_level.proto
google/identity/accesscontextmanager/v1/access_policy.proto
google/identity/accesscontextmanager/v1/service_perimeter.proto
google/protobuf/any.proto
google/protobuf/struct.proto
google/cloud/asset/v1/assets.proto
google/protobuf/duration.proto
google/rpc/status.proto
google/longrunning/operations.proto
google/protobuf/field_mask.proto
google/cloud/asset/v1/asset_service.proto
google/cloud/common_resources.proto
Loading

0 comments on commit 1f76171

Please sign in to comment.