From b34e5c93d9562f36bb5a48546d340d12182c03d1 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Wed, 16 Jan 2019 16:11:17 +0000 Subject: [PATCH 1/8] Make code contributions easier with Gitpod --- .gitpod.yml | 5 +++++ README.md | 4 ++++ package-lock.json | 17 +++++------------ 3 files changed, 14 insertions(+), 12 deletions(-) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000000..c426f7462cbfe --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,5 @@ +ports: + - port: 8080 +tasks: + - init: npm install && npm run build + command: node server 8080 0.0.0.0 diff --git a/README.md b/README.md index 7ccf7924a21bb..84d42caf5c405 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,10 @@ You can read a [tutorial on how to add a badge][tutorial]. 4. Run `npm start` to start the server. 5. Open `http://localhost:3000/` to view the frontend. +Alternatively, you can start a readily configured online workspace using Gitpod: + +[![GitHub issues by-label](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?logo=gitpod)](https://gitpod.io/#https://github.com/badges/shields) + To generate the frontend using production cache settings – that is, badge preview URIs with `maxAge` – run `LONG_CACHE=true npm run build`. diff --git a/package-lock.json b/package-lock.json index dd08f497f2f69..f0baf679862cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1743,8 +1743,7 @@ "acorn": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", - "optional": true + "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=" }, "acorn-dynamic-import": { "version": "3.0.0", @@ -4079,8 +4078,7 @@ "cssom": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.2.tgz", - "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=", - "optional": true + "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=" }, "cssstyle": { "version": "0.2.37", @@ -10613,7 +10611,6 @@ "resolved": false, "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -10983,8 +10980,7 @@ "version": "1.1.6", "resolved": false, "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true, - "optional": true + "dev": true }, "is-builtin-module": { "version": "1.0.0", @@ -11080,7 +11076,6 @@ "resolved": false, "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, - "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -11133,8 +11128,7 @@ "version": "1.0.1", "resolved": false, "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true, - "optional": true + "dev": true }, "lru-cache": { "version": "4.1.3", @@ -11437,8 +11431,7 @@ "version": "1.6.1", "resolved": false, "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true, - "optional": true + "dev": true }, "require-directory": { "version": "2.1.1", From 89ec7060733a1ada4858228004b95cc9a4887afd Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Thu, 17 Jan 2019 12:20:57 -0500 Subject: [PATCH 2/8] Describe Gitpod support as experimental and add some instructions --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84d42caf5c405..792a8ebba02f9 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,11 @@ You can read a [tutorial on how to add a badge][tutorial]. 4. Run `npm start` to start the server. 5. Open `http://localhost:3000/` to view the frontend. -Alternatively, you can start a readily configured online workspace using Gitpod: +Shields has experimental support for Gitpod, a pre-configured development environment that +runs in your browser. To use Gitpod, click the button below and sign in with GitHub. +Gitpod also offers a browser add-on, though it is not required. -[![GitHub issues by-label](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?logo=gitpod)](https://gitpod.io/#https://github.com/badges/shields) +[![Edit with Gitpod](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?logo=gitpod)](https://gitpod.io/#https://github.com/badges/shields) To generate the frontend using production cache settings – that is, badge preview URIs with `maxAge` – run `LONG_CACHE=true npm run build`. From 472656750a97cf4717571f4a9c95a270baf32823 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Thu, 17 Jan 2019 12:21:53 -0500 Subject: [PATCH 3/8] Add link --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 792a8ebba02f9..e46d54aa4f6df 100644 --- a/README.md +++ b/README.md @@ -107,9 +107,9 @@ You can read a [tutorial on how to add a badge][tutorial]. 4. Run `npm start` to start the server. 5. Open `http://localhost:3000/` to view the frontend. -Shields has experimental support for Gitpod, a pre-configured development environment that -runs in your browser. To use Gitpod, click the button below and sign in with GitHub. -Gitpod also offers a browser add-on, though it is not required. +Shields has experimental support for [Gitpod Beta][gitpod], a pre-configured development +environment that runs in your browser. To use Gitpod, click the button below and +sign in with GitHub. Gitpod also offers a browser add-on, though it is not required. [![Edit with Gitpod](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?logo=gitpod)](https://gitpod.io/#https://github.com/badges/shields) @@ -129,6 +129,7 @@ The server can be configured to use [Sentry][] ([configuration][sentry configura Daily tests, including a full run of the service tests and overall code coverage, are run via [badges/daily-tests][daily-tests]. [package manager]: https://nodejs.org/en/download/package-manager/ +[gitpod]: https://www.gitpod.io/ [snapshot tests]: https://glebbahmutov.com/blog/snapshot-testing/ [prometheus]: https://prometheus.io/ [prometheus configuration]: doc/self-hosting.md#prometheus From 9fe13cc0f21ff5df22350ee2966e7ff4eb457eea Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Mon, 21 Jan 2019 15:29:35 +0000 Subject: [PATCH 4/8] Replace Gitpod Shields badge with SVG button. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e46d54aa4f6df..a37cba6578a6a 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ Shields has experimental support for [Gitpod Beta][gitpod], a pre-configured dev environment that runs in your browser. To use Gitpod, click the button below and sign in with GitHub. Gitpod also offers a browser add-on, though it is not required. -[![Edit with Gitpod](https://img.shields.io/badge/Gitpod-code%20now-blue.svg?logo=gitpod)](https://gitpod.io/#https://github.com/badges/shields) +[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/badges/shields) To generate the frontend using production cache settings – that is, badge preview URIs with `maxAge` – run `LONG_CACHE=true npm run build`. From 5aa483e8f8697f4d0eaa52bdd6d336613812ffb6 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Mon, 21 Jan 2019 16:07:25 +0000 Subject: [PATCH 5/8] Add support link to the Gitpod experiment issue. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a37cba6578a6a..42e0087876e89 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,9 @@ sign in with GitHub. Gitpod also offers a browser add-on, though it is not requi [![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/badges/shields) +Please report any Gitpod bugs, questions, or suggestions in issue +[#2772](https://github.com/badges/shields/issues/2772). + To generate the frontend using production cache settings – that is, badge preview URIs with `maxAge` – run `LONG_CACHE=true npm run build`. From 0689793da92076815da37dd496f1e059c57d87b1 Mon Sep 17 00:00:00 2001 From: Jan Keromnes Date: Mon, 21 Jan 2019 16:08:45 +0000 Subject: [PATCH 6/8] Update `package-log.json` with `npm install`. --- package-lock.json | 41 +++++++++++------------------------------ 1 file changed, 11 insertions(+), 30 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0baf679862cd..63eb46a2974c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6187,8 +6187,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -6209,14 +6208,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6231,20 +6228,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -6361,8 +6355,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -6374,7 +6367,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6389,7 +6381,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6397,14 +6388,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6423,7 +6412,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -6504,8 +6492,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -6517,7 +6504,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6603,8 +6589,7 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -6640,7 +6625,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -6660,7 +6644,6 @@ "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -6704,14 +6687,12 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, From bc580c2800494e1ff99c17a111f5992816caa9ec Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Mon, 21 Jan 2019 11:27:14 -0500 Subject: [PATCH 7/8] Reset lockfile --- package-lock.json | 58 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63eb46a2974c2..dd08f497f2f69 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1743,7 +1743,8 @@ "acorn": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz", - "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=" + "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=", + "optional": true }, "acorn-dynamic-import": { "version": "3.0.0", @@ -4078,7 +4079,8 @@ "cssom": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.2.tgz", - "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=" + "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=", + "optional": true }, "cssstyle": { "version": "0.2.37", @@ -6187,7 +6189,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -6208,12 +6211,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -6228,17 +6233,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -6355,7 +6363,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -6367,6 +6376,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6381,6 +6391,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6388,12 +6399,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6412,6 +6425,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6492,7 +6506,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -6504,6 +6519,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -6589,7 +6605,8 @@ "safe-buffer": { "version": "5.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -6625,6 +6642,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -6644,6 +6662,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -6687,12 +6706,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -10592,6 +10613,7 @@ "resolved": false, "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -10961,7 +10983,8 @@ "version": "1.1.6", "resolved": false, "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true + "dev": true, + "optional": true }, "is-builtin-module": { "version": "1.0.0", @@ -11057,6 +11080,7 @@ "resolved": false, "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -11109,7 +11133,8 @@ "version": "1.0.1", "resolved": false, "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true + "dev": true, + "optional": true }, "lru-cache": { "version": "4.1.3", @@ -11412,7 +11437,8 @@ "version": "1.6.1", "resolved": false, "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true + "dev": true, + "optional": true }, "require-directory": { "version": "2.1.1", From ef47ffef6855b2a90742cc89526882b4f3108ef8 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Mon, 21 Jan 2019 11:29:09 -0500 Subject: [PATCH 8/8] Keep Gitpod paragraph together --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 42e0087876e89..54901aa998ea1 100644 --- a/README.md +++ b/README.md @@ -110,12 +110,11 @@ You can read a [tutorial on how to add a badge][tutorial]. Shields has experimental support for [Gitpod Beta][gitpod], a pre-configured development environment that runs in your browser. To use Gitpod, click the button below and sign in with GitHub. Gitpod also offers a browser add-on, though it is not required. - -[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/badges/shields) - Please report any Gitpod bugs, questions, or suggestions in issue [#2772](https://github.com/badges/shields/issues/2772). +[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/badges/shields) + To generate the frontend using production cache settings – that is, badge preview URIs with `maxAge` – run `LONG_CACHE=true npm run build`.