mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-09-23 10:20:12 +00:00
build: Remove 'grunt-svgmin' package
There are no SVGs left in Cite, hence removing package. Change-Id: I608c1b7a4e9d989fc9d58ac29c57d6d9d18cae96
This commit is contained in:
parent
2ae898e5c6
commit
048a887955
38
Gruntfile.js
38
Gruntfile.js
|
@ -12,7 +12,6 @@ module.exports = function ( grunt ) {
|
|||
grunt.loadNpmTasks( 'grunt-banana-checker' );
|
||||
grunt.loadNpmTasks( 'grunt-eslint' );
|
||||
grunt.loadNpmTasks( 'grunt-stylelint' );
|
||||
grunt.loadNpmTasks( 'grunt-svgmin' );
|
||||
|
||||
grunt.initConfig( {
|
||||
eslint: {
|
||||
|
@ -33,44 +32,9 @@ module.exports = function ( grunt ) {
|
|||
'!node_modules/**',
|
||||
'!vendor/**'
|
||||
]
|
||||
},
|
||||
// SVG Optimization
|
||||
svgmin: {
|
||||
options: {
|
||||
js2svg: {
|
||||
pretty: true,
|
||||
multipass: true
|
||||
},
|
||||
plugins: [ {
|
||||
cleanupIDs: false
|
||||
}, {
|
||||
removeDesc: false
|
||||
}, {
|
||||
removeRasterImages: true
|
||||
}, {
|
||||
removeTitle: false
|
||||
}, {
|
||||
removeViewBox: false
|
||||
}, {
|
||||
removeXMLProcInst: false
|
||||
}, {
|
||||
sortAttrs: true
|
||||
} ]
|
||||
},
|
||||
all: {
|
||||
files: [ {
|
||||
expand: true,
|
||||
cwd: 'modules/ve-cite/icons',
|
||||
src: [
|
||||
'**/*.svg'
|
||||
],
|
||||
dest: 'modules/ve-cite/icons/',
|
||||
ext: '.svg'
|
||||
} ]
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana', 'svgmin' ] );
|
||||
grunt.registerTask( 'test', [ 'eslint', 'stylelint', 'banana' ] );
|
||||
grunt.registerTask( 'default', 'test' );
|
||||
};
|
||||
|
|
2845
package-lock.json
generated
2845
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -19,7 +19,6 @@
|
|||
"grunt-banana-checker": "0.9.0",
|
||||
"grunt-eslint": "23.0.0",
|
||||
"grunt-stylelint": "0.16.0",
|
||||
"grunt-svgmin": "5.0.0",
|
||||
"stylelint-config-wikimedia": "0.10.3",
|
||||
"wdio-mediawiki": "1.0.0",
|
||||
"webdriverio": "6.1.16"
|
||||
|
|
Loading…
Reference in a new issue