Commit 9355442e authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Сделаны изменения под четвертую версию грунта.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60496 954022d7-b5bf-4e40-9824-e11837661b57
parent f8f880a5
module.exports = function(grunt) { module.exports = function(grunt) {
var defaultConfig, packageFile; var defaultConfig, packageFile;
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('build_webword_init', 'Initialize build WebWord SDK.', function(){ grunt.registerTask('build_webword_init', 'Initialize build WebWord SDK.', function(){
defaultConfig = './webword.json'; defaultConfig = './webword.json';
...@@ -46,10 +44,10 @@ module.exports = function(grunt) { ...@@ -46,10 +44,10 @@ module.exports = function(grunt) {
} }
}); });
grunt.registerTask('build_webword', 'build_webword_init build_sdk'); grunt.registerTask('build_webword', ['build_webword_init', 'build_sdk']);
grunt.registerTask('build_webexcel', 'build_webexcel_init build_sdk'); grunt.registerTask('build_webexcel', ['build_webexcel_init', 'build_sdk']);
grunt.registerTask('build_webpowerpoint', 'build_webpowerpoint_init build_sdk'); grunt.registerTask('build_webpowerpoint', ['build_webpowerpoint_init', 'build_sdk']);
grunt.registerTask('build_all', 'build_webword_init build_sdk build_webexcel_init build_sdk build_webpowerpoint_init build_sdk'); grunt.registerTask('build_all', ['build_webword_init', 'build_sdk', 'build_webexcel_init', 'build_sdk', 'build_webpowerpoint_init', 'build_sdk');
grunt.registerTask('compile_sdk_init', function() { grunt.registerTask('compile_sdk_init', function() {
grunt.initConfig({ grunt.initConfig({
...@@ -97,7 +95,7 @@ module.exports = function(grunt) { ...@@ -97,7 +95,7 @@ module.exports = function(grunt) {
} }
}); });
}); });
grunt.registerTask('compile_sdk', 'compile_sdk_init min'); grunt.registerTask('compile_sdk', ['compile_sdk_init', 'min']);
grunt.registerTask('default', 'build_all'); grunt.registerTask('default', 'build_all');
}; };
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment