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

restore task defines

parent 4d9c47ff
......@@ -2,8 +2,6 @@ module.exports = function(grunt) {
require('google-closure-compiler').grunt(grunt);
var revision="unknown", defaultConfig, packageFile;
var path = require('path');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
......@@ -146,7 +144,7 @@ module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON(defaultConfig),
'closure-compiler': {
build: {
sdk: {
files: {
'<%= pkg.compile.sdk.dst %>': packageFile['compile']['sdk']['src']
},
......@@ -158,14 +156,17 @@ module.exports = function(grunt) {
property_renaming_report: packageFile['compile']['sdk']['log'] + '/property.map'/*,
create_source_map: map_file_path,
source_map_format: "V3"*/
}
},
defines: {
files: {
'<%= pkg.compile.defines.dst %>': packageFile['compile']['defines']['src']
},
options: {
compilation_level: 'SIMPLE',
warning_level: 'QUIET'
}
}
}
},
create_map_file: {},
concat: concat_res,
......
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