Commit c0c1edf6 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete defines

parent 472d4436
......@@ -69,9 +69,7 @@ module.exports = function(grunt) {
grunt.registerTask('compile_sdk_init', function(compilation_level) {
var tmp_sdk_path = 'sdk-js.tmp';
var concat_src = [
packageFile['compile']['sdk']['dst'],
packageFile['compile']['defines']['dst']];
var concat_src = [packageFile['compile']['sdk']['dst']];
var concat_src_with_banner_file = [];
var srcFiles = packageFile['compile']['sdk']['common'];
var sdkOpt = {
......@@ -79,12 +77,8 @@ module.exports = function(grunt) {
warning_level: 'QUIET',
externs: packageFile['compile']['sdk']['externs']
};
var definesOpt = {
compilation_level: 'ADVANCED' === compilation_level ? 'SIMPLE' : compilation_level,
warning_level: 'QUIET'
};
if (formatting) {
definesOpt['formatting'] = sdkOpt['formatting'] = formatting;
sdkOpt['formatting'] = formatting;
}
if (grunt.option('mobile')) {
......@@ -119,12 +113,6 @@ module.exports = function(grunt) {
'<%= pkg.compile.sdk.dst %>': srcFiles
},
options: sdkOpt
},
defines: {
files: {
'<%= pkg.compile.defines.dst %>': packageFile['compile']['defines']['src']
},
options: definesOpt
}
},
concat: {
......@@ -142,7 +130,6 @@ module.exports = function(grunt) {
}
},
clean: [
packageFile['compile']['defines']['dst'],
tmp_sdk_path
],
replace: {
......@@ -162,7 +149,5 @@ module.exports = function(grunt) {
});
grunt.registerTask('compile_sdk', ['compile_sdk_init:' + level, 'closure-compiler', 'concat', 'replace', 'clean']);
grunt.registerTask('compile_sdk_native', ['compile_sdk_init:' + level, 'closure-compiler:sdk', 'concat', 'replace', 'clean']);
grunt.registerTask('default', ['build_webpowerpoint']);
};
\ No newline at end of file
......@@ -216,12 +216,6 @@
"map": "sdk-all.js.map",
"log": "../cell/Build/Log"
},
"defines": {
"src": [
"../common/Shapes/EditorSettings.js"
],
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdkjs/cell"
}
......
......@@ -200,13 +200,6 @@
"map": "sdk-all.js.map",
"log": "../slide/Build/Log"
},
"defines": {
"src": [
"../common/Shapes/EditorSettings.js",
"../slide/themes/Themes.js"
],
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdkjs/slide"
}
......
......@@ -178,12 +178,6 @@
"map": "sdk-all.js.map",
"log": "../word/Build/Log"
},
"defines": {
"src": [
"../common/Shapes/EditorSettings.js"
],
"dst": "apiDefines.min.js"
},
"source_map": {
"url": "http://localhost:8080/sdkjs/word"
}
......
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