[stylesheets] fix sprites generation
This commit is contained in:
parent
69d4c7f064
commit
1ffb75d3ee
|
@ -133,6 +133,7 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
scale: '1x',
|
scale: '1x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
'slide-2x': configTemplate({
|
'slide-2x': configTemplate({
|
||||||
editor:'presentationeditor',
|
editor:'presentationeditor',
|
||||||
spritename: sprite_name,
|
spritename: sprite_name,
|
||||||
|
@ -144,6 +145,7 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
scale: '2x',
|
scale: '2x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
'slide-1.5x': configTemplate({
|
'slide-1.5x': configTemplate({
|
||||||
editor:'presentationeditor',
|
editor:'presentationeditor',
|
||||||
spritename: sprite_name,
|
spritename: sprite_name,
|
||||||
|
@ -155,6 +157,31 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
scale: '1.5x',
|
scale: '1.5x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
'slide-1.25x': configTemplate({
|
||||||
|
editor:'presentationeditor',
|
||||||
|
spritename: sprite_name,
|
||||||
|
scale: '1.25x'
|
||||||
|
}),
|
||||||
|
'slide-big-1.25x': configTemplate({
|
||||||
|
editor:'presentationeditor',
|
||||||
|
spritename: sprite_name_big,
|
||||||
|
scale: '1.25x',
|
||||||
|
extpath: 'big'
|
||||||
|
}),
|
||||||
|
|
||||||
|
'slide-1.75x': configTemplate({
|
||||||
|
editor:'presentationeditor',
|
||||||
|
spritename: sprite_name,
|
||||||
|
scale: '1.75x'
|
||||||
|
}),
|
||||||
|
'slide-big-1.75x': configTemplate({
|
||||||
|
editor:'presentationeditor',
|
||||||
|
spritename: sprite_name_big,
|
||||||
|
scale: '1.75x',
|
||||||
|
extpath: 'big'
|
||||||
|
}),
|
||||||
|
|
||||||
'cell-1x': configTemplate({
|
'cell-1x': configTemplate({
|
||||||
editor:'spreadsheeteditor',
|
editor:'spreadsheeteditor',
|
||||||
spritename: sprite_name,
|
spritename: sprite_name,
|
||||||
|
@ -166,6 +193,7 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
scale: '1x',
|
scale: '1x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
'cell-2x': configTemplate({
|
'cell-2x': configTemplate({
|
||||||
editor:'spreadsheeteditor',
|
editor:'spreadsheeteditor',
|
||||||
spritename: sprite_name,
|
spritename: sprite_name,
|
||||||
|
@ -177,6 +205,7 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
scale: '2x',
|
scale: '2x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
'cell-1.5x': configTemplate({
|
'cell-1.5x': configTemplate({
|
||||||
editor:'spreadsheeteditor',
|
editor:'spreadsheeteditor',
|
||||||
spritename: sprite_name,
|
spritename: sprite_name,
|
||||||
|
@ -187,7 +216,31 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
spritename: sprite_name_big,
|
spritename: sprite_name_big,
|
||||||
scale: '1.5x',
|
scale: '1.5x',
|
||||||
extpath: 'big'
|
extpath: 'big'
|
||||||
})
|
}),
|
||||||
|
|
||||||
|
'cell-1.25x': configTemplate({
|
||||||
|
editor:'spreadsheeteditor',
|
||||||
|
spritename: sprite_name,
|
||||||
|
scale: '1.25x'
|
||||||
|
}),
|
||||||
|
'cell-big-1.25x': configTemplate({
|
||||||
|
editor:'spreadsheeteditor',
|
||||||
|
spritename: sprite_name_big,
|
||||||
|
scale: '1.25x',
|
||||||
|
extpath: 'big'
|
||||||
|
}),
|
||||||
|
|
||||||
|
'cell-1.75x': configTemplate({
|
||||||
|
editor:'spreadsheeteditor',
|
||||||
|
spritename: sprite_name,
|
||||||
|
scale: '1.75x'
|
||||||
|
}),
|
||||||
|
'cell-big-1.75x': configTemplate({
|
||||||
|
editor:'spreadsheeteditor',
|
||||||
|
spritename: sprite_name_big,
|
||||||
|
scale: '1.75x',
|
||||||
|
extpath: 'big'
|
||||||
|
}),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -198,8 +251,14 @@ module.exports = function (grunt, rootpathprefix) {
|
||||||
'sprite:word1.25x', 'sprite:word-big-1.25x', 'sprite:word-huge-1.25x',
|
'sprite:word1.25x', 'sprite:word-big-1.25x', 'sprite:word-huge-1.25x',
|
||||||
'sprite:word1.5x', 'sprite:word-big-1.5x', 'sprite:word-huge-1.5x',
|
'sprite:word1.5x', 'sprite:word-big-1.5x', 'sprite:word-huge-1.5x',
|
||||||
'sprite:word1.75x', 'sprite:word-big-1.75x', 'sprite:word-huge-1.75x']);
|
'sprite:word1.75x', 'sprite:word-big-1.75x', 'sprite:word-huge-1.75x']);
|
||||||
grunt.registerTask('slide-icons', ['sprite:slide-1x', 'sprite:slide-big-1x','sprite:slide-2x', 'sprite:slide-big-2x','sprite:slide-1.5x', 'sprite:slide-big-1.5x']);
|
grunt.registerTask('slide-icons', ['sprite:slide-1x', 'sprite:slide-big-1x','sprite:slide-2x', 'sprite:slide-big-2x',
|
||||||
grunt.registerTask('cell-icons', ['sprite:cell-1x', 'sprite:cell-big-1x','sprite:cell-2x', 'sprite:cell-big-2x','sprite:cell-1.5x', 'sprite:cell-big-1.5x']);
|
'sprite:slide-1.5x', 'sprite:slide-big-1.5x',
|
||||||
|
'sprite:slide-1.25x', 'sprite:slide-big-1.25x',
|
||||||
|
'sprite:slide-1.75x', 'sprite:slide-big-1.75x']);
|
||||||
|
grunt.registerTask('cell-icons', ['sprite:cell-1x', 'sprite:cell-big-1x','sprite:cell-2x', 'sprite:cell-big-2x',
|
||||||
|
'sprite:cell-1.5x', 'sprite:cell-big-1.5x',
|
||||||
|
'sprite:cell-1.25x', 'sprite:cell-big-1.25x',
|
||||||
|
'sprite:cell-1.75x', 'sprite:cell-big-1.75x']);
|
||||||
|
|
||||||
grunt.registerTask('all-icons-sprite', ['word-icons','slide-icons','cell-icons']);
|
grunt.registerTask('all-icons-sprite', ['word-icons','slide-icons','cell-icons']);
|
||||||
grunt.registerTask('default', ['all-icons-sprite']);
|
grunt.registerTask('default', ['all-icons-sprite']);
|
||||||
|
|
Loading…
Reference in a new issue