From: Timo Tijhof Date: Wed, 18 Mar 2020 18:19:39 +0000 (+0000) Subject: build: Merge doc linting into 'npm test' X-Git-Tag: 1.31.7~3 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/%7B%24admin_url%7Dmembres/cotisations.php?a=commitdiff_plain;h=1ec03b34109639d2f20458525ac6359734792dd6;p=lhc%2Fweb%2Fwiklou.git build: Merge doc linting into 'npm test' Whether JSDuck or JSDoc3, it's good to verify that there are no regressions in the doc syntax. This has been enforced by WMF CI for many years with a dedicated Jenkins job. However, both 'grunt lint' and 'npm run doc' take a relatively small amount of time in CI: * grunt lint: ~ 35s (not incl 'npm install') * npm run doc: ~ 10s (not incl 'npm install') Change-Id: If22b7bc64266e43088c7dec8138d81c938687fb9 --- diff --git a/package.json b/package.json index 352dd132ac..d349f54452 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "test": "grunt test", + "test": "grunt test && npm run doc", "qunit": "grunt qunit", "doc": "jsduck", "postdoc": "grunt copy:jsduck",