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

Добавлена таска для сборки sdk-all.js, без минимизации.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57627 954022d7-b5bf-4e40-9824-e11837661b57
parent fde12790
......@@ -210,7 +210,7 @@ module.exports = function(grunt) {
grunt.file.write(map_record_file_path, map_record);
});
grunt.registerTask('compile_sdk_init', function() {
grunt.registerTask('compile_sdk_init', function(compilation_level) {
var map_file_path = packageFile['compile']['sdk']['dst'] + '.map';
var map_record_file_path = map_file_path + '.tmp';
var concat_res = {};
......@@ -226,7 +226,7 @@ module.exports = function(grunt) {
},
sdk: {
TEMPcompilerOpts: {
compilation_level: 'ADVANCED',
compilation_level: compilation_level,
externs: packageFile['compile']['sdk']['externs'],
define: packageFile['compile']['sdk']['define'],
warning_level: 'QUIET',
......@@ -270,7 +270,8 @@ module.exports = function(grunt) {
});
});
grunt.registerTask('compile_sdk', ['compile_sdk_init', 'closureCompiler', 'concat', 'replace', 'clean']);
grunt.registerTask('compile_sdk', ['compile_sdk_init:ADVANCED', 'closureCompiler', 'concat', 'replace', 'clean']);
grunt.registerTask('compile_sdk_fast', ['compile_sdk_init:WHITESPACE_ONLY', 'closureCompiler', 'concat', 'replace', 'clean']);
grunt.registerTask('deploy_sdk_init', function() {
grunt.initConfig({
......
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