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

Commit

Permalink
Re-generate library using /synth.py (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot authored and jkwlui committed Aug 28, 2018
1 parent 6b33feb commit 1aa2d23
Show file tree
Hide file tree
Showing 25 changed files with 292 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .appveyor.yml
@@ -0,0 +1,20 @@
environment:
matrix:
- nodejs_version: 8

install:
- ps: Install-Product node $env:nodejs_version
- npm install -g npm # Force using the latest npm to get dedupe during install
- set PATH=%APPDATA%\npm;%PATH%
- npm install --force --ignore-scripts

test_script:
- node --version
- npm --version
- npm rebuild
- npm test

build: off

matrix:
fast_finish: true
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
node_modules/*
samples/node_modules/*
src/**/doc/*
13 changes: 13 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,13 @@
---
extends:
- 'eslint:recommended'
- 'plugin:node/recommended'
- prettier
plugins:
- node
- prettier
rules:
prettier/prettier: error
block-scoped-var: error
eqeqeq: error
no-warning-comments: warn
45 changes: 45 additions & 0 deletions .jsdoc.js
@@ -0,0 +1,45 @@
/*!
* Copyright 2018 Google LLC. All Rights Reserved.
*
* 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.
*/

'use strict';

module.exports = {
opts: {
readme: './README.md',
package: './package.json',
template: './node_modules/ink-docstrap/template',
recurse: true,
verbose: true,
destination: './docs/'
},
plugins: [
'plugins/markdown'
],
source: {
excludePattern: '(^|\\/|\\\\)[._]',
include: [
'src'
],
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2018 Google, LLC.',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/debug-agent',
theme: 'lumen'
}
};
24 changes: 24 additions & 0 deletions .kokoro/continuous/node10/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
Empty file.
24 changes: 24 additions & 0 deletions .kokoro/continuous/node6/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:6"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
Empty file.
24 changes: 24 additions & 0 deletions .kokoro/continuous/node8/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:8"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
4 changes: 4 additions & 0 deletions .kokoro/continuous/node8/docs.cfg
@@ -0,0 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/docs.sh"
}
4 changes: 4 additions & 0 deletions .kokoro/continuous/node8/lint.cfg
@@ -0,0 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/lint.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/continuous/node8/samples-test.cfg
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/samples-test.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/continuous/node8/system-test.cfg
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/system-test.sh"
}
Empty file.
24 changes: 24 additions & 0 deletions .kokoro/presubmit/node10/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
Empty file.
24 changes: 24 additions & 0 deletions .kokoro/presubmit/node6/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:6"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
Empty file.
24 changes: 24 additions & 0 deletions .kokoro/presubmit/node8/common.cfg
@@ -0,0 +1,24 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "cloud-debug-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:8"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/test.sh"
}
4 changes: 4 additions & 0 deletions .kokoro/presubmit/node8/docs.cfg
@@ -0,0 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/docs.sh"
}
4 changes: 4 additions & 0 deletions .kokoro/presubmit/node8/lint.cfg
@@ -0,0 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/cloud-debug-nodejs/.kokoro/lint.sh"
}
Empty file.
9 changes: 9 additions & 0 deletions .kokoro/presubmit/windows/common.cfg
@@ -0,0 +1,9 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

2 changes: 2 additions & 0 deletions .kokoro/presubmit/windows/test.cfg
@@ -0,0 +1,2 @@
# Use the test file directly
build_file: "cloud-debug-nodejs/.kokoro/test.bat"
26 changes: 26 additions & 0 deletions .nycrc
@@ -0,0 +1,26 @@
{
"report-dir": "./.coverage",
"exclude": [
"src/*{/*,/**/*}.js",
"src/*/v*/*.js",
"test/**/*.js"
],
"watermarks": {
"branches": [
95,
100
],
"functions": [
95,
100
],
"lines": [
95,
100
],
"statements": [
95,
100
]
}
}

0 comments on commit 1aa2d23

Please sign in to comment.