Skip to content

Commit 27655b5

Browse files
build: assimilate into the org (#42)
1 parent fbd0b6e commit 27655b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1050
-41
lines changed

.clang-format

-3
This file was deleted.

.compodocrc

+10
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

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/node_modules
2+
src/**/doc/*
3+
build/
4+
docs/

.eslintrc.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
extends:
3+
- 'eslint:recommended'
4+
- 'plugin:node/recommended'
5+
- prettier
6+
plugins:
7+
- node
8+
- prettier
9+
rules:
10+
prettier/prettier: error
11+
block-scoped-var: error
12+
eqeqeq: error
13+
no-warning-comments: warn
14+
no-var: error
15+
prefer-const: error

.github/ISSUE_TEMPLATE/bug_report.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
Please run down the following list and make sure you've tried the usual "quick fixes":
12+
13+
- Search the issues already opened: https://github.com/fhinkel/teeny-request/issues
14+
- Search the issues on our "catch-all" repository: https://github.com/googleapis/google-cloud-node
15+
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
16+
17+
If you are still having issues, please be sure to include as much information as possible:
18+
19+
#### Environment details
20+
21+
- OS:
22+
- Node.js version:
23+
- npm version:
24+
- `teeny-request` version:
25+
26+
#### Steps to reproduce
27+
28+
1. ?
29+
2. ?
30+
31+
Making sure to follow these steps will guarantee the quickest resolution possible.
32+
33+
Thanks!
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this library
4+
5+
---
6+
7+
Thanks for stopping by to let us know something could be better!
8+
9+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
10+
11+
**Is your feature request related to a problem? Please describe.**
12+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Support request
3+
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.
4+
5+
---
6+
7+
**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ build/*
33
node_modules/*
44
.vscode/*
55
.nyc_output
6+
__pycache__
7+
.coverage
8+
docs/

.jsdoc.js

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

.kokoro/common.cfg

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Use the trampoline script to run in docker.
14+
build_file: "teeny-request/.kokoro/trampoline.sh"
15+
16+
# Configure the docker image for kokoro-trampoline.
17+
env_vars: {
18+
key: "TRAMPOLINE_IMAGE"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
20+
}
21+
env_vars: {
22+
key: "TRAMPOLINE_BUILD_FILE"
23+
value: "github/teeny-request/.kokoro/test.sh"
24+
}

.kokoro/continuous/node10/common.cfg

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
11+
before_action {
12+
fetch_keystore {
13+
keystore_resource {
14+
keystore_config_id: 73713
15+
keyname: "dpebot_codecov_token"
16+
}
17+
}
18+
}
19+
20+
# Download trampoline resources.
21+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
22+
23+
# Use the trampoline script to run in docker.
24+
build_file: "teeny-request/.kokoro/trampoline.sh"
25+
26+
# Configure the docker image for kokoro-trampoline.
27+
env_vars: {
28+
key: "TRAMPOLINE_IMAGE"
29+
value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user"
30+
}
31+
env_vars: {
32+
key: "TRAMPOLINE_BUILD_FILE"
33+
value: "github/teeny-request/.kokoro/test.sh"
34+
}

.kokoro/continuous/node10/docs.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
env_vars: {
2+
key: "TRAMPOLINE_BUILD_FILE"
3+
value: "github/teeny-request/.kokoro/docs.sh"
4+
}

.kokoro/continuous/node10/lint.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
env_vars: {
2+
key: "TRAMPOLINE_BUILD_FILE"
3+
value: "github/teeny-request/.kokoro/lint.sh"
4+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Download resources for system tests (service account key, etc.)
2+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"
3+
4+
env_vars: {
5+
key: "TRAMPOLINE_BUILD_FILE"
6+
value: "github/teeny-request/.kokoro/samples-test.sh"
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Download resources for system tests (service account key, etc.)
2+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"
3+
4+
env_vars: {
5+
key: "TRAMPOLINE_BUILD_FILE"
6+
value: "github/teeny-request/.kokoro/system-test.sh"
7+
}

.kokoro/continuous/node10/test.cfg

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
2+
before_action {
3+
fetch_keystore {
4+
keystore_resource {
5+
keystore_config_id: 73713
6+
keyname: "dpebot_codecov_token"
7+
}
8+
}
9+
}
10+
11+
# token used by release-please to keep an up-to-date release PR.
12+
before_action {
13+
fetch_keystore {
14+
keystore_resource {
15+
keystore_config_id: 73713
16+
keyname: "yoshi-automation-github-key"
17+
}
18+
}
19+
}

.kokoro/continuous/node11/common.cfg

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Use the trampoline script to run in docker.
14+
build_file: "teeny-request/.kokoro/trampoline.sh"
15+
16+
# Configure the docker image for kokoro-trampoline.
17+
env_vars: {
18+
key: "TRAMPOLINE_IMAGE"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:11-user"
20+
}
21+
env_vars: {
22+
key: "TRAMPOLINE_BUILD_FILE"
23+
value: "github/teeny-request/.kokoro/test.sh"
24+
}

.kokoro/continuous/node11/test.cfg

Whitespace-only changes.

.kokoro/continuous/node8/common.cfg

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Download trampoline resources.
11+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+
# Use the trampoline script to run in docker.
14+
build_file: "teeny-request/.kokoro/trampoline.sh"
15+
16+
# Configure the docker image for kokoro-trampoline.
17+
env_vars: {
18+
key: "TRAMPOLINE_IMAGE"
19+
value: "gcr.io/cloud-devrel-kokoro-resources/node:8-user"
20+
}
21+
env_vars: {
22+
key: "TRAMPOLINE_BUILD_FILE"
23+
value: "github/teeny-request/.kokoro/test.sh"
24+
}

.kokoro/continuous/node8/test.cfg

Whitespace-only changes.

.kokoro/docs.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eo pipefail
18+
19+
export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
21+
cd $(dirname $0)/..
22+
23+
npm install
24+
25+
npm run docs-test

.kokoro/lint.sh

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
set -eo pipefail
18+
19+
export NPM_CONFIG_PREFIX=/home/node/.npm-global
20+
21+
cd $(dirname $0)/..
22+
23+
npm install
24+
25+
# Install and link samples
26+
if [ -f samples/package.json ]; then
27+
cd samples/
28+
npm link ../
29+
npm install
30+
cd ..
31+
fi
32+
33+
npm run lint

0 commit comments

Comments
 (0)