Commit 1055cf30 authored by Alexander.Trofimov's avatar Alexander.Trofimov

update closure-compiler to version 20160315.2.0. add java flags.

parent 40aac59d
module.exports = function(grunt) { module.exports = function(grunt) {
require('google-closure-compiler').grunt(grunt); require('google-closure-compiler').grunt(grunt, ['-Xms2048m']);
var revision="unknown", defaultConfig, packageFile; var revision="unknown", defaultConfig, packageFile;
var path = grunt.option('src') || './configs'; var path = grunt.option('src') || './configs';
var level = grunt.option('level') || 'ADVANCED'; var level = grunt.option('level') || 'ADVANCED';
...@@ -160,10 +160,6 @@ module.exports = function(grunt) { ...@@ -160,10 +160,6 @@ module.exports = function(grunt) {
srcFiles = srcFiles.concat(packageFile['compile']['sdk']['desktop']); srcFiles = srcFiles.concat(packageFile['compile']['sdk']['desktop']);
} }
var cc = require('google-closure-compiler').compiler;
cc.prototype.spawnOptions = {env: {'JAVA_OPTS': '-Xms2048m'}};
grunt.initConfig({ grunt.initConfig({
pkg: packageFile, pkg: packageFile,
'closure-compiler': { 'closure-compiler': {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"homepage": "http://www.teamlab.com", "homepage": "http://www.teamlab.com",
"private": true, "private": true,
"dependencies": { "dependencies": {
"google-closure-compiler": "^20160315.0.0", "google-closure-compiler": "20160315.2.0",
"grunt": "0.4.5", "grunt": "0.4.5",
"grunt-contrib-clean": "0.5.0", "grunt-contrib-clean": "0.5.0",
"grunt-contrib-concat": "0.3.0", "grunt-contrib-concat": "0.3.0",
......
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