From 3abe61e13b3f220324528223edb118c0492849d6 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Wed, 5 Feb 2020 15:25:09 +0200 Subject: [PATCH 1/2] Add contribute.json This document is required for example for all Mozilla websites and makes sense for Riot to also describe itself - see https://www.contributejson.org/ Signed-off-by: Jason Robinson --- res/contribute.json | 17 +++++++++++++++++ scripts/copy-res.js | 1 + 2 files changed, 18 insertions(+) create mode 100644 res/contribute.json diff --git a/res/contribute.json b/res/contribute.json new file mode 100644 index 00000000..0f9ceed3 --- /dev/null +++ b/res/contribute.json @@ -0,0 +1,17 @@ +{ + "name": "Riot", + "description": "A glossy Matrix collaboration client for the web.", + "repository": { + "url": "https://github.com/vector-im/riot-web", + "license": "Apache License 2.0" + }, + "bugs": { + "list": "https://github.com/vector-im/riot-web/issues", + "report": "https://github.com/vector-im/riot-web/issues/new/choose" + }, + "keywords": [ + "chat", + "riot", + "matrix" + ] +} diff --git a/scripts/copy-res.js b/scripts/copy-res.js index b524062b..b8b9e398 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -66,6 +66,7 @@ const COPY_LIST = [ ["node_modules/matrix-react-sdk/res/media/**", "webapp/media"], ["node_modules/olm/olm_legacy.js", "webapp", { directwatch: 1 }], ["./config.json", "webapp", { directwatch: 1 }], + ["res/contribute.json", "webapp"], ]; const parseArgs = require('minimist'); From 9534a252706a7c11512ec5d4523ba250bab7b5be Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Wed, 5 Feb 2020 16:28:44 +0200 Subject: [PATCH 2/2] Fix contribute.json location as per spec Signed-off-by: Jason Robinson --- res/contribute.json => contribute.json | 0 package.json | 3 ++- scripts/copy-res.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename res/contribute.json => contribute.json (100%) diff --git a/res/contribute.json b/contribute.json similarity index 100% rename from res/contribute.json rename to contribute.json diff --git a/package.json b/package.json index 004d6d7c..60d28d1f 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "LICENSE", "README.md", "AUTHORS.rst", - "package.json" + "package.json", + "contribute.json" ], "style": "bundle.css", "scripts": { diff --git a/scripts/copy-res.js b/scripts/copy-res.js index b8b9e398..e25d07ff 100755 --- a/scripts/copy-res.js +++ b/scripts/copy-res.js @@ -66,7 +66,7 @@ const COPY_LIST = [ ["node_modules/matrix-react-sdk/res/media/**", "webapp/media"], ["node_modules/olm/olm_legacy.js", "webapp", { directwatch: 1 }], ["./config.json", "webapp", { directwatch: 1 }], - ["res/contribute.json", "webapp"], + ["contribute.json", "webapp"], ]; const parseArgs = require('minimist');