From 4b127896cb1ff1c94405a67e11c14f583e36f996 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Fri, 29 Jan 2016 08:50:58 +0100 Subject: [PATCH] Add `npm run addons-linter` --- documentation/tools.md | 4 +++- package.json | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/documentation/tools.md b/documentation/tools.md index 9670a86..c0d3a7f 100644 --- a/documentation/tools.md +++ b/documentation/tools.md @@ -100,13 +100,15 @@ internally by other tasks.) ### Management -- `gulp lint` lints all `.coffee` files. +- `gulp lint` lints all `.coffee` files. There’s also `npm run addons-linter` to + run [`addons-linter`] on a freshly built VimFx .xpi. - `gulp sloc` prints comment and source code line counts. - `gulp sync-locales` syncs locales. See the [“Syncing locales”][sync-locales] section below for more information. +[`addons-linter`]: https://github.com/mozilla/addons-linter/ [sync-locales]: #syncing-locales ### Helpers diff --git a/package.json b/package.json index ff2429a..177914f 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,15 @@ "license": "GPL-3.0+", "private": true, "scripts": { - "gulp": "gulp" + "gulp": "gulp", + "addons-linter": "npm run gulp -- xpi && addons-linter build/VimFx.xpi" }, "dependencies": { "n-ary-huffman": "^2.1.1", "vim-like-key-notation": "^0.2.0" }, "devDependencies": { + "addons-linter": "0.0.11", "coffee-script": "jashkenas/coffeescript", "coffeelint": "^1.14.1", "coffeelint-forbidden-keywords": "^0.1.1", -- 2.39.3