mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
nodester
This commit is contained in:
parent
a1811f0efd
commit
b435a64018
1 changed files with 13 additions and 1 deletions
|
|
@ -63,6 +63,16 @@ exports.jsScripts=function jsScripts(){
|
|||
* keyBinding.min.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
|
||||
*/
|
||||
if(pFileName===CLIENT_JS)
|
||||
console.log('file name of ' +
|
||||
CLOUDFUNC_JS +
|
||||
|
|
@ -71,7 +81,9 @@ exports.jsScripts=function jsScripts(){
|
|||
' changed. size:',
|
||||
(final_code=final_code
|
||||
.replace('cloudfunc.js','cloudfunc.min.js')
|
||||
.replace('keyBinding.js','keyBinding.min.js')).length);
|
||||
.replace('keyBinding.js','keyBinding.min.js')
|
||||
.replace('/lib','/')
|
||||
.replace('/lib/client','/')).length);
|
||||
|
||||
/* записываем сжатый js-скрипт*/
|
||||
fs.writeFile(path.basename(minFileName), final_code, fileWrited(minFileName));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue