@globules-io/ogx.js 1.8.8 → 1.8.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/install.js CHANGED
@@ -4,9 +4,11 @@ const copy = require('recursive-copy');
4
4
  const src_ogx = path.normalize(__dirname+'/ogx');
5
5
  const src_www = path.normalize(__dirname+'/www');
6
6
  const src_lib = path.normalize(__dirname+'/www/js/lib');
7
+ const src_main = path.normalize(__dirname+'/www/js/bin/main.js');
7
8
  const dest_www = path.normalize(__dirname+'./../../../www');
8
9
  const dest_ogx = path.normalize(__dirname+'./../../../ogx');
9
10
  const dest_lib = path.normalize(__dirname+'./../../js/lib');
11
+ const dest_main = path.normalize(__dirname+'./../../js/bin/main.js');
10
12
  //copy ogx folder
11
13
  copy(src_ogx, dest_ogx, {overwrite:true});
12
14
  //if no www, copy the whole folder
@@ -27,4 +29,8 @@ if(!fs.existsSync(dest_www)){
27
29
  copy(lib_folders_src, lib_folders_dest, {overwrite:true});
28
30
  }
29
31
  }
32
+ //deploy main.js if not already there
33
+ if(!fs.existsSync(dest_main)){
34
+ fs.copyFile(src_main, dest_main);
35
+ }
30
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globules-io/ogx.js",
3
- "version": "1.8.8",
3
+ "version": "1.8.9",
4
4
  "description": "Javascript framework for webviews",
5
5
  "dependencies": {
6
6
  "fs-extra": "^10.0.0",
package/www/index.html CHANGED
@@ -30,6 +30,7 @@
30
30
  <script type="text/javascript" src="js/lib/crypto/aes.min.js"></script>
31
31
  <!--OGX-->
32
32
  <script type="text/javascript" src="js/lib/globules/ogx.min.js"></script>
33
+ <script type="text/javascript" src="js/bin/main.js"></script>
33
34
  <!--JS BIN
34
35
  <script type="text/javascript" src="js/stages/..."></script>
35
36
  <script type="text/javascript" src="js/views/..."></script>
@@ -0,0 +1,4 @@
1
+ var app;
2
+ $(document).ready(function(){
3
+ app = new OGX.App({encrypted:false});
4
+ });