Changed the way Minify post-processing js-files so, from now in Minify object post-processing functions passed like this {client.js: function(){}}

This commit is contained in:
coderaiser 2012-07-10 07:36:08 -04:00
parent 64e801f7ea
commit a95d07e6d8
3 changed files with 15 additions and 13 deletions

View file

@ -162,23 +162,22 @@ CloudServer.Minify={
'git submodule init\n' +
'git submodule update');
}
/*
* temporary changed dir path,
* becouse directory lib is write
* protected by others by default
* so if node process is started
* from other user (root for example
* in nodester) we can not write
* minified versions
*/
this.MinFolder = '/' + lMinify.MinFolder;
var lMinFolder=this.MinFolder;
this.done.js=this._allowed.js?
lMinify.jsScripts(['client.js',
'lib/cloudfunc.js',
'lib/client/keyBinding.js'],
{Name: 'client.js',
/*
* temporary changed dir path,
* becouse directory lib is write
* protected by others by default
* so if node process is started
* from other user (root for example
* in nodester) we can not write
* minified versions
*/
Func: function(pFinalCode){
{'client.js' : function(pFinalCode){
console.log('file name of ' +
'cloudfunc.js' +
' in ' +