[build] added icons sprite generation to general script
This commit is contained in:
parent
0cac87856a
commit
0dc3212c6c
|
@ -188,6 +188,11 @@ module.exports = function(grunt) {
|
|||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('prebuild-icons-sprite', function() {
|
||||
require('./sprites/Gruntfile.js')(grunt, '../');
|
||||
grunt.task.run('all-icons-sprite');
|
||||
});
|
||||
|
||||
grunt.registerTask('main-app-init', function() {
|
||||
grunt.initConfig({
|
||||
pkg: packageFile,
|
||||
|
@ -514,8 +519,8 @@ module.exports = function(grunt) {
|
|||
grunt.registerTask('deploy-requirejs', ['requirejs-init', 'clean', 'uglify']);
|
||||
grunt.registerTask('deploy-es6-promise', ['es6-promise-init', 'clean', 'copy']);
|
||||
|
||||
grunt.registerTask('deploy-app-main', ['main-app-init', 'clean:prebuild', 'imagemin', 'less', 'requirejs', 'concat',
|
||||
'copy', 'svgmin', 'inline', 'json-minify',
|
||||
grunt.registerTask('deploy-app-main', ['prebuild-icons-sprite', 'main-app-init', 'clean:prebuild', 'imagemin', 'less',
|
||||
'requirejs', 'concat', 'copy', 'svgmin', 'inline', 'json-minify',
|
||||
'replace:writeVersion', 'replace:prepareHelp', 'clean:postbuild']);
|
||||
|
||||
grunt.registerTask('deploy-app-mobile', ['mobile-app-init', 'clean:deploy', 'cssmin', 'copy:template-backup',
|
||||
|
|
|
@ -4,27 +4,29 @@
|
|||
"homepage": "http://www.onlyoffice.com",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"lodash": "^4.0.0",
|
||||
"grunt": "^1.0.0",
|
||||
"grunt-replace": "^1.0.0",
|
||||
"grunt-text-replace": "0.3.11",
|
||||
"mocha": "^3.0.0",
|
||||
"chai": "1.9.1",
|
||||
"grunt-mocha": "^1.0.0",
|
||||
"grunt-jscoverage": "0.1.1",
|
||||
"grunt": "^1.0.0",
|
||||
"grunt-contrib-clean": "^1.0.0",
|
||||
"grunt-contrib-concat": "^0.5.1",
|
||||
"grunt-contrib-copy": "^0.8.0",
|
||||
"grunt-contrib-cssmin": "^3.0.0",
|
||||
"grunt-contrib-htmlmin": "^2.0.0",
|
||||
"grunt-contrib-imagemin": "^3.1.0",
|
||||
"grunt-contrib-less": "^1.0.0",
|
||||
"grunt-contrib-requirejs": "^1.0.0",
|
||||
"grunt-contrib-clean": "^1.0.0",
|
||||
"grunt-contrib-copy": "^0.8.0",
|
||||
"grunt-contrib-uglify": "^0.8.1",
|
||||
"grunt-contrib-concat": "^0.5.1",
|
||||
"grunt-contrib-imagemin": "^1.0.0",
|
||||
"grunt-contrib-cssmin": "^1.0.0",
|
||||
"grunt-contrib-htmlmin": "^2.0.0",
|
||||
"grunt-contrib-uglify": "^4.0.1",
|
||||
"grunt-inline": "0.3.4",
|
||||
"grunt-jscoverage": "0.1.1",
|
||||
"grunt-json-minify": "^1.1.0",
|
||||
"vinyl-fs": "2.2.1",
|
||||
"grunt-mocha": "^1.0.0",
|
||||
"grunt-replace": "^1.0.0",
|
||||
"grunt-spritesmith": "^6.8.0",
|
||||
"grunt-svgmin": "^6.0.0",
|
||||
"grunt-text-replace": "0.3.11",
|
||||
"iconsprite": "file:sprites",
|
||||
"less-plugin-clean-css": "1.5.0",
|
||||
"grunt-svgmin": "4.0.0",
|
||||
"grunt-inline": "0.3.4"
|
||||
"lodash": "^4.0.0",
|
||||
"mocha": "^6.2.2",
|
||||
"vinyl-fs": "^3.0.3"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue