From 726a9e4ebd3762377c1a487aaa387ee4b8ccaa9b Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Tue, 20 Nov 2018 17:05:50 +0000 Subject: [PATCH] Update README.md --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index b09d1b0a..2fa4b7cf 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,25 @@ Generate docs and start the doc-server: ``` $ make ``` + +## FAQ + +#### How can I get my plugin featured on the website? + +This happens automatically! Every day we have an automated build process which looks for npm modules with the `chai-plugin` keyword. If you publish a chai plugin to npm then make sure it has the `keywords` array in the `package.json` that includes the string `"chai-plugin"`. Like so: + +```json +{ + "name": "my-awesome-chai-plugin", + "keywords": [ "chai-plugin" ] +} +``` + +If your plugin supports web browsers, as well as node.js, then you can add the `"browser"` keyword. If your plugin _only_ supports browsers, then add both `"browser"` and `"browser-only"` keywords: + +```json +{ + "name": "chai-dom", + "keywords": [ "chai-plugin", "browser", "browser-only" ] +} +```