@globules-io/ogx.js
Advanced tools
Comparing version 1.8.9 to 1.8.10
@@ -7,7 +7,7 @@ const path = require('path'); | ||
const src_lib = path.normalize(__dirname+'/www/js/lib'); | ||
const src_main = path.normalize(__dirname+'/www/js/bin/main.js'); | ||
const dest_www = path.normalize(__dirname+'./../../../www'); | ||
const dest_ogx = path.normalize(__dirname+'./../../../ogx'); | ||
const dest_lib = path.normalize(__dirname+'./../../js/lib'); | ||
const dest_main = path.normalize(__dirname+'./../../js/bin/main.js'); | ||
const src_bin = __dirname+'/www/js/bin'; | ||
const dest_bin = path.normalize(__dirname+'./../../js/bin/main.js'); | ||
//copy ogx folder | ||
@@ -32,7 +32,13 @@ copy(src_ogx, dest_ogx, {overwrite:true}); | ||
} | ||
} | ||
//deploy main.js if not already there | ||
if(!fs.existsSync(dest_main)){ | ||
fs.copyFile(src_main, dest_main); | ||
} | ||
//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); | ||
} | ||
} | ||
} |
{ | ||
"name": "@globules-io/ogx.js", | ||
"version": "1.8.9", | ||
"version": "1.8.10", | ||
"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
757763
279