2015-06-20 05:09:03 +00:00
|
|
|
{
|
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2017-02-13 13:27:20 +00:00
|
|
|
"start": "webpack -w",
|
2017-05-08 18:50:59 +00:00
|
|
|
"build": "NODE_ENV=production webpack",
|
2017-07-28 17:32:46 +00:00
|
|
|
"test:node": "node tests/node-qunit/run.js 'tests/node-qunit/**/*.test.js' | tap-dot",
|
2017-05-10 17:58:07 +00:00
|
|
|
"test:dev": "grunt lint && npm run test:node",
|
2017-05-26 17:26:35 +00:00
|
|
|
"test": " npm run check-built-assets && npm run test:dev && npm run doc",
|
2017-05-19 11:28:35 +00:00
|
|
|
"doc": "jsdoc -c jsdoc.json",
|
2017-05-25 11:27:43 +00:00
|
|
|
"doc:start": "nodemon --watch src --exec 'npm run doc'",
|
2017-03-02 15:17:01 +00:00
|
|
|
"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",
|
2017-05-10 17:58:07 +00:00
|
|
|
"coverage": "istanbul cover node_modules/.bin/mw-node-qunit tests/node-qunit/*.js tests/node-qunit/**/*.js",
|
2018-01-30 17:02:46 +00:00
|
|
|
"precommit": "npm run test:dev && npm run build && git add resources/dist && bundlesize"
|
2015-06-20 05:09:03 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2017-07-28 17:32:46 +00:00
|
|
|
"babel-preset-env": "^1.6.0",
|
|
|
|
"babel-register": "^6.24.1",
|
2018-01-30 17:02:46 +00:00
|
|
|
"bundlesize": "0.15.3",
|
2017-10-09 14:56:15 +00:00
|
|
|
"eslint-config-wikimedia": "0.5.0",
|
2016-12-16 11:11:54 +00:00
|
|
|
"grunt": "1.0.1",
|
2017-10-09 14:56:15 +00:00
|
|
|
"grunt-banana-checker": "0.6.0",
|
2016-11-08 15:59:22 +00:00
|
|
|
"grunt-contrib-watch": "^1.0.0",
|
2018-02-04 22:09:45 +00:00
|
|
|
"grunt-eslint": "20.1.0",
|
2016-12-16 11:11:54 +00:00
|
|
|
"grunt-jsonlint": "1.1.0",
|
2018-02-04 22:09:45 +00:00
|
|
|
"grunt-stylelint": "0.9.0",
|
2017-05-10 17:58:07 +00:00
|
|
|
"husky": "^0.13.3",
|
2017-03-03 12:34:33 +00:00
|
|
|
"istanbul": "^0.4.5",
|
2017-05-19 11:28:35 +00:00
|
|
|
"jsdoc": "^3.4.3",
|
2018-02-08 11:15:38 +00:00
|
|
|
"mw-node-qunit": "^3.0.0",
|
2017-05-25 11:27:43 +00:00
|
|
|
"nodemon": "^1.11.0",
|
2017-02-02 22:49:42 +00:00
|
|
|
"redux": "3.6.0",
|
|
|
|
"redux-thunk": "2.2.0",
|
2018-02-04 22:09:45 +00:00
|
|
|
"stylelint": "8.2.0",
|
|
|
|
"stylelint-config-wikimedia": "0.4.2",
|
2017-02-01 11:09:42 +00:00
|
|
|
"tap-dot": "^1.0.5",
|
2017-05-23 18:28:23 +00:00
|
|
|
"webpack": "^2.6.0"
|
2018-01-30 17:02:46 +00:00
|
|
|
},
|
|
|
|
"bundlesize": [
|
|
|
|
{
|
|
|
|
"path": "resources/dist/index.js",
|
|
|
|
"maxSize": "11.2KB"
|
|
|
|
}
|
|
|
|
]
|
2015-06-20 05:09:03 +00:00
|
|
|
}
|