build: Remove 'grunt-svgmin' package

There are no SVGs left in Cite, hence removing package.

Change-Id: I608c1b7a4e9d989fc9d58ac29c57d6d9d18cae96
This commit is contained in:
Volker E 2021-05-17 16:43:06 -07:00
parent 2ae898e5c6
commit 048a887955
3 changed files with 918 additions and 1966 deletions

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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"