diff --git a/.clang-format b/.clang-format deleted file mode 100644 index c6b852bf..00000000 --- a/.clang-format +++ /dev/null @@ -1,2 +0,0 @@ -BasedOnStyle: Google -Language: JavaScript diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 8c296171..00000000 --- a/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -/bin -/coverage -/doc -/test -*.enc diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index a0bf5eca..00000000 --- a/AUTHORS +++ /dev/null @@ -1,12 +0,0 @@ -# Authors ordered by first contribution. - -Ali Ijaz Sheikh -Matt Loring -Steren -Brad Abrams -Justin Beckwith -Cristian Cavalli -Dominic Kramer -Jason -Kelvin Jin - diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 3bcb6425..00000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Test against this version of Node.js -environment: - matrix: - # node.js - - nodejs_version: "6" - - nodejs_version: "8" - - nodejs_version: "10" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install - - SET GCLOUD_PROJECT=0 - - SET CLOUD_DEBUG_ASSERTIONS=1 - -# Post-install test scripts. -test_script: - # run tests - - npm run compile - - node_modules/.bin/mocha build/test --timeout 4000 --R - -# Don't actually build using MSBuild -build: off diff --git a/package.json b/package.json index aefe4047..9265de7e 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,47 @@ "engines": { "node": ">=8.10.0" }, + "files": [ + "build/src" + ], + "scripts": { + "prepare": "npm run compile", + "presamples-test": "npm run compile", + "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", + "presystem-test": "npm run compile", + "system-test": "mocha build/system-test", + "test-no-cover": "cross-env CLOUD_DEBUG_ASSERTIONS=1 mocha build/test --require source-map-support/register --timeout 4000 --R spec", + "test": "nyc npm run test-no-cover && nyc report", + "check": "gts check", + "clean": "gts clean", + "precompile": "npm run compile-scripts && node build/scripts/setup-build-dir.js", + "compile": "tsc -p .", + "compile-scripts": "tsc -p scripts-tsconfig.json", + "fix": "gts fix", + "pretest": "npm run compile", + "posttest": "npm run check && npm run license-check", + "prepack": "npm run compile", + "license-check": "jsgl --local .", + "lint": "npm run check", + "docs": "compodoc src/", + "docs-test": "linkinator docs -r --skip www.googleapis.com", + "predocs-test": "npm run docs" + }, + "dependencies": { + "@google-cloud/common": "^1.0.0", + "@sindresorhus/is": "^0.17.1", + "acorn": "^6.0.0", + "coffeescript": "^2.0.0", + "console-log-level": "^1.4.0", + "extend": "^3.0.1", + "findit2": "^2.2.3", + "gcp-metadata": "^2.0.0", + "lodash.pickby": "^4.6.0", + "p-limit": "^2.2.0", + "semver": "^6.0.0", + "source-map": "^0.6.1", + "split": "^1.0.0" + }, "devDependencies": { "@compodoc/compodoc": "^1.1.7", "@types/acorn": "^4.0.2", @@ -44,7 +85,7 @@ "js-green-licenses": "^1.0.0", "linkinator": "^1.1.2", "mkdirp": "^0.5.1", - "mocha": "^6.0.0", + "mocha": "^6.1.4", "ncp": "^2.0.0", "nock": "^10.0.0", "nyc": "^14.0.0", @@ -55,49 +96,5 @@ "teeny-request": "^3.11.3", "typescript": "~3.5.0", "uuid": "^3.3.2" - }, - "dependencies": { - "@google-cloud/common": "^1.0.0", - "@sindresorhus/is": "^0.17.1", - "acorn": "^6.0.0", - "coffeescript": "^2.0.0", - "console-log-level": "^1.4.0", - "extend": "^3.0.1", - "findit2": "^2.2.3", - "gcp-metadata": "^2.0.0", - "lodash.pickby": "^4.6.0", - "p-limit": "^2.2.0", - "semver": "^6.0.0", - "source-map": "^0.6.1", - "split": "^1.0.0" - }, - "scripts": { - "prepare": "npm run compile", - "presamples-test": "npm run compile", - "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", - "presystem-test": "npm run compile", - "system-test": "mocha build/system-test", - "test-no-cover": "cross-env CLOUD_DEBUG_ASSERTIONS=1 mocha build/test --require source-map-support/register --timeout 4000 --R spec", - "test": "nyc npm run test-no-cover && nyc report", - "check": "gts check", - "clean": "gts clean", - "precompile": "npm run compile-scripts && node build/scripts/setup-build-dir.js", - "compile": "tsc -p .", - "compile-scripts": "tsc -p scripts-tsconfig.json", - "fix": "gts fix", - "pretest": "npm run compile", - "posttest": "npm run check && npm run license-check", - "prepack": "npm run compile", - "license-check": "jsgl --local .", - "lint": "npm run check", - "docs": "compodoc src/", - "docs-test": "linkinator docs -r --skip www.googleapis.com", - "predocs-test": "npm run docs" - }, - "files": [ - "CHANGELOG.md", - "LICENSE", - "README.md", - "build/src" - ] + } } diff --git a/repo-debug.log b/repo-debug.log deleted file mode 100644 index a65bd334..00000000 --- a/repo-debug.log +++ /dev/null @@ -1,85 +0,0 @@ -Sat Sep 22 2018 13:13:10 GMT-0700 (Pacific Daylight Time) 0 Executing 'npx,eslint,--fix,'**/*.js'' in 55 directories.Sat Sep 22 2018 13:13:12 GMT-0700 (Pacific Daylight Time) 0 [1/55] Executed cmd in /Users/beckwith/.repo/gce-images.Sat Sep 22 2018 13:13:12 GMT-0700 (Pacific Daylight Time) 0 [2/55] Executed cmd in /Users/beckwith/.repo/github-repo-automation.Sat Sep 22 2018 13:13:14 GMT-0700 (Pacific Daylight Time) 0 [3/55] Executed cmd in /Users/beckwith/.repo/google-cloud-kvstore.Sat Sep 22 2018 13:13:18 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/google-api-nodejs-clientSat Sep 22 2018 13:13:18 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/gcs-resumable-uploadSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.161s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/google-auth-library-nodejsSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.228s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/cloud-profiler-nodejsSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 21.984s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/gcp-metadataSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.276s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/gax-nodejsSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.271s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/cloud-debug-nodejsSat Sep 22 2018 13:13:45 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.072s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/cloud-trace-nodejsSat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 21.919s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/google-cloud-nodeSat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 21.552s -No files matching '**/*.js' were found. -Sat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/google-p12-pemSat Sep 22 2018 13:13:46 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 22.248s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:47 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/node-gtokenSat Sep 22 2018 13:13:47 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 21.214s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:13:48 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-assetSat Sep 22 2018 13:13:48 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:49 GMT-0700 (Pacific Daylight Time) 0 [16/55] Executed cmd in /Users/beckwith/.repo/nodejs-automl.Sat Sep 22 2018 13:13:49 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-bigquery-data-transferSat Sep 22 2018 13:13:49 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:50 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-cloud-containerSat Sep 22 2018 13:13:50 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:50 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-bigquerySat Sep 22 2018 13:13:50 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:53 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-dataprocSat Sep 22 2018 13:13:53 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:55 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-dnsSat Sep 22 2018 13:13:55 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:13:55 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-error-reportingSat Sep 22 2018 13:13:55 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:00 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-datastoreSat Sep 22 2018 13:14:00 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:01 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-dlpSat Sep 22 2018 13:14:01 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:01 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-iotSat Sep 22 2018 13:14:01 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:04 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-dialogflowSat Sep 22 2018 13:14:04 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:05 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-commonSat Sep 22 2018 13:14:05 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 11.036s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:05 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-common-grpcSat Sep 22 2018 13:14:05 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 10.922s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:07 GMT-0700 (Pacific Daylight Time) 0 [29/55] Executed cmd in /Users/beckwith/.repo/nodejs-kms.Sat Sep 22 2018 13:14:08 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-logging-bunyanSat Sep 22 2018 13:14:08 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:08 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-logging-winstonSat Sep 22 2018 13:14:08 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:09 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-languageSat Sep 22 2018 13:14:09 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:11 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-os-loginSat Sep 22 2018 13:14:11 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:12 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-firestoreSat Sep 22 2018 13:14:12 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 11.966s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:13 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-monitoringSat Sep 22 2018 13:14:13 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:13 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-googleapis-commonSat Sep 22 2018 13:14:13 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 12.77s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:14 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-loggingSat Sep 22 2018 13:14:14 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:19 GMT-0700 (Pacific Daylight Time) 0 [38/55] Executed cmd in /Users/beckwith/.repo/nodejs-proto-files.Sat Sep 22 2018 13:14:20 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-resourceSat Sep 22 2018 13:14:20 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:22 GMT-0700 (Pacific Daylight Time) 0 [40/55] Executed cmd in /Users/beckwith/.repo/nodejs-redis.Sat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-speechSat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-paginatorSat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 13.486s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-projectifySat Sep 22 2018 13:14:28 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 13.402s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:29 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-tasksSat Sep 22 2018 13:14:29 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:29 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-promisifySat Sep 22 2018 13:14:29 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 13.459s -Failed to load plugin node: Cannot find module 'eslint-plugin-node' -Sat Sep 22 2018 13:14:32 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-translateSat Sep 22 2018 13:14:32 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:33 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-text-to-speechSat Sep 22 2018 13:14:33 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:34 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-video-intelligenceSat Sep 22 2018 13:14:34 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:37 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-bigtableSat Sep 22 2018 13:14:37 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:39 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-computeSat Sep 22 2018 13:14:39 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:40 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-storageSat Sep 22 2018 13:14:40 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:41 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-visionSat Sep 22 2018 13:14:41 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:41 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/slothSat Sep 22 2018 13:14:41 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -npx: installed 126 in 9.713s -No files matching '**/*.js' were found. -Sat Sep 22 2018 13:14:42 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-pubsubSat Sep 22 2018 13:14:42 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:49 GMT-0700 (Pacific Daylight Time) 2 /Users/beckwith/.repo/nodejs-spannerSat Sep 22 2018 13:14:49 GMT-0700 (Pacific Daylight Time) 2 Error: Command failed: npx eslint --fix '**/*.js' -Sat Sep 22 2018 13:14:49 GMT-0700 (Pacific Daylight Time) 0 Command execution successful. \ No newline at end of file diff --git a/scripts-tsconfig.json b/scripts-tsconfig.json index f9e317b8..319f30a6 100644 --- a/scripts-tsconfig.json +++ b/scripts-tsconfig.json @@ -7,8 +7,5 @@ "include": [ "scripts/*.ts", "scripts/**/*.ts" - ], - "exclude": [ - "node_modules" ] }