mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-28 09:30:17 +00:00
f4f7f3623c
Execute `npm test` prior to committing. This saves back-and-forth with Jenkins. This is the same configuration used by Popups, MobileFrontend, MinervaNeue, NearbyPages, ContentTranslation, and others. Change-Id: If61ab4f28b0ccd38492d11a4cd8a92a97b2eb582
33 lines
1.1 KiB
JSON
33 lines
1.1 KiB
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"build": "npm -s test && npm -s run doc",
|
|
"test": "npm -s run lint",
|
|
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
|
|
"lint:fix": "npm -s run lint:js -- --fix && npm -s run lint:styles -- --fix",
|
|
"lint:js": "eslint --cache --max-warnings 0 .",
|
|
"lint:styles": "stylelint \"**/*.{less,css}\"",
|
|
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
|
|
"doc": "jsdoc -c jsdoc.json && npm run build-storybook",
|
|
"storybook": "bash ./dev-scripts/setup-storybook.sh && start-storybook -p 6006",
|
|
"build-storybook": "bash ./dev-scripts/setup-storybook.sh && build-storybook -o docs/ui",
|
|
"svgmin": "svgo --config=.svgo.yml -q -r -f resources/"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.7.7",
|
|
"@storybook/html": "5.2.8",
|
|
"babel-loader": "8.0.6",
|
|
"eslint-config-wikimedia": "0.15.0",
|
|
"grunt-banana-checker": "0.8.1",
|
|
"jsdoc": "3.6.3",
|
|
"jsdoc-wmf-theme": "0.0.3",
|
|
"less": "3.8.1",
|
|
"less-loader": "4.1.0",
|
|
"mustache": "3.0.1",
|
|
"pre-commit": "1.2.2",
|
|
"stylelint": "10.0.1",
|
|
"stylelint-config-wikimedia": "0.9.0",
|
|
"svgo": "1.3.2"
|
|
}
|
|
}
|