2015-06-25 19:11:24 +00:00
|
|
|
{
|
2017-03-25 13:52:01 +00:00
|
|
|
"private": true,
|
|
|
|
"scripts": {
|
2020-03-04 05:23:01 +00:00
|
|
|
"build": "npm -s test && npm -s run doc",
|
2020-03-09 18:31:36 +00:00
|
|
|
"test": "npm -s run lint && tsc",
|
2020-02-25 23:49:15 +00:00
|
|
|
"lint": "npm -s run lint:js && npm -s run lint:styles && npm -s run lint:i18n",
|
2020-03-05 21:26:20 +00:00
|
|
|
"lint:fix:js": "npm -s run lint:js -- --fix",
|
|
|
|
"lint:fix:styles": "npm -s run lint:styles -- --fix",
|
2020-02-25 23:49:15 +00:00
|
|
|
"lint:js": "eslint --cache --max-warnings 0 .",
|
|
|
|
"lint:styles": "stylelint \"**/*.{less,css}\"",
|
|
|
|
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
|
2020-02-28 07:03:29 +00:00
|
|
|
"doc": "jsdoc -c jsdoc.json && npm run build-storybook",
|
[modern] A new version of Vector with a new logo
Changes to support feature:
* ResourceLoaderSkinModule logo features are dropped
* New layout provided given the fork in layout between legacy and new.
* Legacy sidebar styles now pulled out
* breakpoint styles are not carried over from legacy Vector
The new Vector layout for now has one breakpoint.
Changes to storybook:
* The storybook script now pulls down image assets so that the logos can
be shown in storybook. The script is adjusted to make use of a static folder to
serve these images.
Note:
* The legacy mode is not touched as part of this patchset.
* The personal menu is unaffected by this patch and is out of scope.
* The alignment issue is noted, but will be solved at a later date.
* Changes to portal are out of scope.
* Adding storybook for modern descoped, given its not possible to load
both legacy layout and modern layout inside a storybook at current time.
Sample config:
$wgLogos = [
'icon' => 'https://di-logo-sandbox.firebaseapp.com/img/globe.png',
'tagline' => [
'src' => 'https://di-logo-sandbox.firebaseapp.com/img/tagline/en-tagline-117-13.svg',
'width' => 117,
'height' => 13,
],
'1x' => 'https://en.wikipedia.org/static/images/project-logos/enwiki.png',
'wordmark' => [
'src' => 'https://en.wikipedia.org/static/images/mobile/copyright/wikipedia-wordmark-en.svg',
'width' => 116,
'height' => 18,
],
];
Coauthor: Aron Manning
Bug: T246170
Change-Id: Ibc4b055150761388a6b78f9127da342c451ce0e7
2020-03-09 05:51:00 +00:00
|
|
|
"storybook": "bash ./dev-scripts/setup-storybook.sh && start-storybook -p 6006 -s docs/ui/",
|
2020-03-05 23:25:05 +00:00
|
|
|
"build-storybook": "bash ./dev-scripts/setup-storybook.sh && build-storybook -o docs/ui",
|
|
|
|
"svgmin": "svgo --config=.svgo.yml -q -r -f resources/"
|
2017-03-25 13:52:01 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-01-09 22:11:00 +00:00
|
|
|
"@babel/core": "7.7.7",
|
|
|
|
"@storybook/html": "5.2.8",
|
2020-03-09 18:31:36 +00:00
|
|
|
"@types/jquery": "3.3.33",
|
|
|
|
"@types/mustache": "4.0.1",
|
2020-01-09 22:11:00 +00:00
|
|
|
"babel-loader": "8.0.6",
|
2020-04-30 19:47:54 +00:00
|
|
|
"eslint-config-wikimedia": "0.15.3",
|
2020-04-17 23:31:04 +00:00
|
|
|
"grunt-banana-checker": "0.9.0",
|
2020-02-13 00:36:02 +00:00
|
|
|
"jsdoc": "3.6.3",
|
2020-02-14 00:43:31 +00:00
|
|
|
"jsdoc-wmf-theme": "0.0.3",
|
2020-01-09 22:11:00 +00:00
|
|
|
"less": "3.8.1",
|
|
|
|
"less-loader": "4.1.0",
|
|
|
|
"mustache": "3.0.1",
|
2020-03-09 20:36:30 +00:00
|
|
|
"pre-commit": "1.2.2",
|
2020-03-05 23:25:05 +00:00
|
|
|
"stylelint-config-wikimedia": "0.9.0",
|
2020-03-09 18:31:36 +00:00
|
|
|
"svgo": "1.3.2",
|
|
|
|
"typescript": "3.8.3"
|
2017-03-25 13:52:01 +00:00
|
|
|
}
|
2015-06-25 19:11:24 +00:00
|
|
|
}
|