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

restore task defines

parent 4d9c47ff
...@@ -2,8 +2,6 @@ module.exports = function(grunt) { ...@@ -2,8 +2,6 @@ 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');
grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-copy');
...@@ -146,7 +144,7 @@ module.exports = function(grunt) { ...@@ -146,7 +144,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']
}, },
...@@ -158,14 +156,17 @@ module.exports = function(grunt) { ...@@ -158,14 +156,17 @@ 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: { defines: {
files: {
'<%= pkg.compile.defines.dst %>': packageFile['compile']['defines']['src']
},
options: { options: {
compilation_level: 'SIMPLE', compilation_level: 'SIMPLE',
warning_level: 'QUIET' warning_level: 'QUIET'
} }
} }
}
}, },
create_map_file: {}, create_map_file: {},
concat: concat_res, 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