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

delete defines

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