Commit c91d3f15 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

grunt-contrib -> grunt-contrib-clean, grunt-contrib-concat, grunt-contrib-copy.

delete patch_closure_tools_init
add javaFlags Xms1024m (java heap space)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63708 954022d7-b5bf-4e40-9824-e11837661b57
parent a59a3fab
module.exports = function(grunt) {
var defaultConfig, packageFile, toolsConfig, toolsFile;
grunt.loadNpmTasks('grunt-contrib');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-closure-tools');
grunt.loadNpmTasks('grunt-replace');
grunt.registerTask('patch_closure_tools_init', 'Initialize tools.', function(){
grunt.initConfig({
replace: {
add_java_parm: {
options: {
patterns: [
{
match: '\'java \'',
replacement: '\'java -Xms1024m \''
}
],
usePrefix: false
},
files: [
{
src: 'node_modules/grunt-closure-tools/node_modules/task-closure-tools/lib/libCompiler.js',
dest: 'node_modules/grunt-closure-tools/node_modules/task-closure-tools/lib/libCompiler.js'
}
]
}
}
});
});
grunt.task.run(['patch_closure_tools_init', 'replace']);
grunt.registerTask('setup_tools', 'Initialize tools.', function(){
toolsConfig = 'tools.json';
......@@ -228,7 +204,8 @@ module.exports = function(grunt) {
grunt.initConfig({
closureCompiler: {
options: {
compilerFile: toolsFile['closure_compiler']
compilerFile: toolsFile['closure_compiler'],
javaFlags: ['-Xms1024m']
},
sdk: {
TEMPcompilerOpts: {
......
......@@ -5,9 +5,11 @@
"private": true,
"dependencies": {
"grunt": "0.4.2",
"grunt-contrib": "0.9.0",
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-concat": "0.3.0",
"grunt-contrib-copy": "0.5.0",
"grunt-exec": "0.4.5",
"grunt-replace": "0.7.3",
"grunt-closure-tools": "0.9.6"
"grunt-closure-tools": "0.9.9"
}
}
\ No newline at end of file
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