Run doc generation on npm test

The benefit of this is if there are any problems with the
documentation they will not enter our codebase.

We do a similar thing in MobileFrontend

Bug: T158236
Change-Id: I30329dd868fe596c490f95354c3226c9cd4a2fc7
This commit is contained in:
jdlrobson 2017-05-26 10:26:35 -07:00
parent 30e616a224
commit e21a640002
2 changed files with 1 additions and 1 deletions

View file

@ -5,7 +5,7 @@
"build": "NODE_ENV=production webpack",
"test:node": "mw-node-qunit tests/node-qunit/*.js tests/node-qunit/**/*.js | tap-dot",
"test:dev": "grunt lint && npm run test:node",
"test": " npm run check-built-assets && npm run test:dev",
"test": " npm run check-built-assets && npm run test:dev && npm run doc",
"doc": "jsdoc -c jsdoc.json",
"doc:start": "nodemon --watch src --exec 'npm run doc'",
"check-built-assets": "echo 'CHECKING BUILD SOURCES ARE COMMITED' && rm -rf test-build && mv resources/dist test-build && npm run build && diff -x '*.map' -r test-build resources/dist && rm -rf test-build",

Binary file not shown.