@globules-io/ogx.js
Advanced tools
Comparing version 1.8.10 to 1.8.11
@@ -6,2 +6,3 @@ const path = require('path'); | ||
const src_www = path.normalize(__dirname+'/www'); | ||
const src_bin = path.normalize(__dirname+'/www/js/bin'); | ||
const src_lib = path.normalize(__dirname+'/www/js/lib'); | ||
@@ -11,4 +12,3 @@ const dest_www = path.normalize(__dirname+'./../../../www'); | ||
const dest_lib = path.normalize(__dirname+'./../../js/lib'); | ||
const src_bin = __dirname+'/www/js/bin'; | ||
const dest_bin = path.normalize(__dirname+'./../../js/bin/main.js'); | ||
const dest_bin = path.normalize(__dirname+'./../../js/bin'); | ||
//copy ogx folder | ||
@@ -22,3 +22,3 @@ copy(src_ogx, dest_ogx, {overwrite:true}); | ||
if(!fs.existsSync(dest_lib)){ | ||
copy(src_lib, dest_lib); | ||
copy(src_lib, dest_lib); | ||
}else{ | ||
@@ -33,14 +33,8 @@ //copy cryto, globules, howler, jquery, moment, mongogx | ||
copy(lib_folders_src, lib_folders_dest, {overwrite:true}); | ||
} | ||
//deploy main.js if not already there | ||
if(!fs.existsSync(dest_bin)){ | ||
//create folder if needed | ||
let bin_folder = path.normalize(src_bin); | ||
if(!fs.existsSync(bin_folder)){ | ||
fs.mkdirSync(bin_folder); | ||
} | ||
let src_main = path.normalize(src_bin+'/main.js'); | ||
fs.copyFile(src_main, dest_bin); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
//deploy js/bin if not already there | ||
if(!fs.existsSync(dest_bin)){ | ||
copy(src_bin, dest_bin, {overwrite:false}); | ||
} | ||
} |
{ | ||
"name": "@globules-io/ogx.js", | ||
"version": "1.8.10", | ||
"version": "1.8.11", | ||
"description": "Javascript framework for webviews", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
757518
272