Skip to content

Commit 1010912

Browse files
authored
Merge pull request #867 from googleapis/teeny-request-migration
chore: teeny request migration
2 parents c7b40d6 + 8d8b1cb commit 1010912

30 files changed

+2809
-0
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"packages/nodejs-proto-files": "5.0.1",
1313
"packages/proto3-json-serializer-nodejs": "3.0.4",
1414
"packages/retry-request": "8.0.2",
15+
"packages/teeny-request": "10.1.0",
1516
"packages/tools": "1.0.5"
1617
}

packages/teeny-request/.compodocrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
tsconfig: ./tsconfig.json
3+
output: ./docs
4+
theme: material
5+
hideGenerator: true
6+
disablePrivate: true
7+
disableProtected: true
8+
disableInternal: true
9+
disableCoverage: true
10+
disableGraph: true
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**/node_modules
2+
**/coverage
3+
test/fixtures
4+
build/
5+
docs/
6+
protos/
7+
samples/generated/
8+
system-test/**/fixtures
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "./node_modules/gts"
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.ts text eol=lf
2+
*.js text eol=lf
3+
protos/* linguist-generated
4+
**/api-extractor.json linguist-language=JSON-with-Comments
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
docker:
15+
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
16+
17+
18+
begin-after-commit-hash: 397c0bfd367a2427104f988d5329bc117caafd95
19+

packages/teeny-request/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package-lock.json
2+
build/*
3+
node_modules/*
4+
.vscode/*
5+
.nyc_output
6+
__pycache__
7+
.coverage
8+
docs/

packages/teeny-request/.jsdoc.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Copyright 2019 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
16+
'use strict';
17+
18+
module.exports = {
19+
opts: {
20+
readme: './README.md',
21+
package: './package.json',
22+
template: './node_modules/jsdoc-fresh',
23+
recurse: true,
24+
verbose: true,
25+
destination: './docs/'
26+
},
27+
plugins: [
28+
'plugins/markdown',
29+
'jsdoc-region-tag'
30+
],
31+
source: {
32+
excludePattern: '(^|\\/|\\\\)[._]',
33+
include: [
34+
'build/src'
35+
],
36+
includePattern: '\\.js$'
37+
},
38+
templates: {
39+
copyright: 'Copyright 2019 Google, LLC.',
40+
includeDate: false,
41+
sourceFiles: false,
42+
systemName: 'teeny-request',
43+
theme: 'lumen',
44+
default: {
45+
"outputSourceFiles": false
46+
}
47+
},
48+
markdown: {
49+
idInHeadings: true
50+
}
51+
};

packages/teeny-request/.mocharc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
const config = {
15+
"enable-source-maps": true,
16+
"throw-deprecation": true,
17+
"timeout": 10000,
18+
"recursive": true
19+
}
20+
if (process.env.MOCHA_THROW_DEPRECATION === 'false') {
21+
delete config['throw-deprecation'];
22+
}
23+
if (process.env.MOCHA_REPORTER) {
24+
config.reporter = process.env.MOCHA_REPORTER;
25+
}
26+
if (process.env.MOCHA_REPORTER_OUTPUT) {
27+
config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`;
28+
}
29+
module.exports = config

packages/teeny-request/.nycrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"report-dir": "./.coverage",
3+
"reporter": ["text", "lcov"],
4+
"exclude": [
5+
"**/*-test",
6+
"**/.coverage",
7+
"**/apis",
8+
"**/benchmark",
9+
"**/conformance",
10+
"**/docs",
11+
"**/samples",
12+
"**/scripts",
13+
"**/protos",
14+
"**/test",
15+
"**/*.d.ts",
16+
".jsdoc.js",
17+
"**/.jsdoc.js",
18+
"karma.conf.js",
19+
"webpack-tests.config.js",
20+
"webpack.config.js"
21+
],
22+
"exclude-after-remap": false,
23+
"all": true
24+
}

0 commit comments

Comments
 (0)