父节点
f270c5090b
当前提交
546369e18b
|
@ -0,0 +1,23 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// https://www.mediawiki.org/wiki/Manual:Coding_conventions/SVG#Exemplified_safe_configuration
|
||||||
|
module.exports = {
|
||||||
|
js2svg: {
|
||||||
|
eol: 'lf',
|
||||||
|
finalNewline: false,
|
||||||
|
indent: '\t'
|
||||||
|
},
|
||||||
|
multipass: true,
|
||||||
|
plugins: [
|
||||||
|
{
|
||||||
|
name: 'preset-default',
|
||||||
|
params: {
|
||||||
|
overrides: {
|
||||||
|
removeViewBox: false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'removeRasterImages',
|
||||||
|
'sortAttrs'
|
||||||
|
]
|
||||||
|
};
|
|
@ -10,7 +10,7 @@
|
||||||
"lint:styles": "stylelint \"**/*.{less,css}\"",
|
"lint:styles": "stylelint \"**/*.{less,css}\"",
|
||||||
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
|
"lint:i18n": "banana-checker --requireLowerCase=0 i18n/",
|
||||||
"doc": "jsdoc -c jsdoc.json",
|
"doc": "jsdoc -c jsdoc.json",
|
||||||
"minify-svg": "svgo --quiet --recursive --folder resources/",
|
"minify-svg": "svgo --config=.svgo.config.js --quiet --recursive --folder resources/",
|
||||||
"test": "npm run lint",
|
"test": "npm run lint",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"release": "standard-version",
|
"release": "standard-version",
|
||||||
|
|
正在加载...
在新工单中引用