mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-12 09:21:11 +00:00
14abeb0c2f
Storybook seems to be our primary stackless development workflow. Move the `storybook` script to `start` to support the standard `npm start` command expected in every NPM repo. Debugging Storybook tooling is the rare case that informational messages (perhaps even more verbose than default) are wanted. Feature development is the common workflow that should be optimized for. Storybook's design philosophy seems to favor incredibly verbose output by default, both for the CLI and the [browser console]. This is at odds with Unix's rule of silence, sometimes expressed as "silence is golden." That is, only report warnings and errors unless told otherwise. This patch reduces the verbosity of the Storybook [CLIs] as able and its setup script: - Only report warnings and errors while building. - Suppress build informational output when launching. - Only report curl errors, not progress. [browser console]: https://github.com/storybookjs/storybook/issues/8461 [CLIs]: https://storybook.js.org/docs/configurations/cli-options/ Change-Id: Ie38ae14e304f7f88f445c0c0fb3f2fbba49d134a
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "dev-scripts/setup-storybook.sh && start-storybook --quiet -p 6006 -s docs/ui",
|
|
"build": "npm -s test && npm -s run doc",
|
|
"test": "npm -s run lint && tsc",
|
|
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
|
|
"lint:fix:js": "npm -s run lint:js -- --fix",
|
|
"lint:fix:styles": "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",
|
|
"build-storybook": "dev-scripts/setup-storybook.sh && build-storybook --quiet --loglevel warn -o docs/ui",
|
|
"svgmin": "svgo --config=.svgo.yml -q -r -f resources/"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.7.7",
|
|
"@storybook/html": "5.2.8",
|
|
"@types/jquery": "3.3.33",
|
|
"@types/mustache": "4.0.1",
|
|
"babel-loader": "8.0.6",
|
|
"eslint-config-wikimedia": "0.15.3",
|
|
"grunt-banana-checker": "0.9.0",
|
|
"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-config-wikimedia": "0.9.0",
|
|
"svgo": "1.3.2",
|
|
"typescript": "3.8.3"
|
|
}
|
|
}
|