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

restore task defines

parent 89c25361
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
module.exports = function(grunt) { module.exports = function(grunt) {
require('google-closure-compiler').grunt(grunt); require('google-closure-compiler').grunt(grunt);
var revision="unknown", defaultConfig, packageFile; var revision="unknown", defaultConfig, packageFile;
var path = require('path');
grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-concat');
...@@ -170,7 +168,7 @@ module.exports = function(grunt) { ...@@ -170,7 +168,7 @@ module.exports = function(grunt) {
grunt.initConfig({ grunt.initConfig({
pkg: grunt.file.readJSON(defaultConfig), pkg: grunt.file.readJSON(defaultConfig),
'closure-compiler': { 'closure-compiler': {
build: { sdk: {
files: { files: {
'<%= pkg.compile.sdk.dst %>': packageFile['compile']['sdk']['src'] '<%= pkg.compile.sdk.dst %>': packageFile['compile']['sdk']['src']
}, },
...@@ -182,12 +180,15 @@ module.exports = function(grunt) { ...@@ -182,12 +180,15 @@ module.exports = function(grunt) {
property_renaming_report: packageFile['compile']['sdk']['log'] + '/property.map'/*, property_renaming_report: packageFile['compile']['sdk']['log'] + '/property.map'/*,
create_source_map: map_file_path, create_source_map: map_file_path,
source_map_format: "V3"*/ source_map_format: "V3"*/
}
},
defines: {
files: {
'<%= pkg.compile.defines.dst %>': packageFile['compile']['defines']['src']
}, },
defines: { options: {
options: { compilation_level: 'SIMPLE',
compilation_level: 'SIMPLE', warning_level: 'QUIET'
warning_level: 'QUIET'
}
} }
} }
}, },
......
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