@globules-io/ogx.js 1.8.5 → 1.8.6-b

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.
Files changed (2) hide show
  1. package/install.js +4 -38
  2. package/package.json +7 -7
package/install.js CHANGED
@@ -1,42 +1,8 @@
1
1
  const path = require('path');
2
- const fs = require('fs-extra');
3
- const src_ogx = path.normalize(__dirname+'/ogx');
2
+ const copy = require('recursive-copy');
4
3
  const src_www = path.normalize(__dirname+'/www');
5
- const src_lib = path.normalize(__dirname+'/www/js/lib/globules/ogx.min.js');
6
4
  const dest_www = path.normalize(__dirname+'./../../../www');
5
+ const src_ogx = path.normalize(__dirname+'/ogx');
7
6
  const dest_ogx = path.normalize(__dirname+'./../../../ogx');
8
- const dest_lib = path.normalize(__dirname+'./../../../www/js/lib/globules/ogx.min.js');
9
- //Make ogx folder at root
10
- try {
11
- if(!fs.existsSync(dest_ogx)){
12
- fs.mkdirSync(dest_ogx);
13
- }
14
- } catch (err) {
15
- console.error(err);
16
- }
17
- try {
18
- if (!fs.existsSync(dest_www)){
19
- fs.mkdirSync(dest_www);
20
- }
21
- } catch (err) {
22
- console.error(err);
23
- }
24
- //Folders
25
- fs.readdir(src_www, (err, files) => {
26
- files.forEach(file => {
27
- if(!fs.existsSync(dest_www+'/'+file)){
28
- fs.copySync(src_www+'/'+file, dest_www+'/'+file);
29
- }else{
30
- console.log('File '+dest_www+'/'+file+' already exists, skipping');
31
- }
32
- });
33
- })
34
- //Update framework
35
- //remove old ogx files
36
- fs.removeSync(dest_ogx);
37
- //copy ogx to root
38
- fs.copySync(src_ogx, dest_ogx);
39
- //remove old ogx.js
40
- fs.removeSync(dest_lib);
41
- //move new ogx.js
42
- fs.copySync(src_lib, dest_lib);
7
+ copy(src_www, dest_www, {overwrite:true});
8
+ copy(src_ogx, dest_ogx, {overwrite:true});
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@globules-io/ogx.js",
3
- "version": "1.8.5",
3
+ "version": "1.8.6b",
4
4
  "description": "Javascript framework for webviews",
5
5
  "dependencies": {
6
- "fs-extra" : "latest",
7
- "path" : "latest"
6
+ "path": "latest",
7
+ "recursive-copy": "^2.0.13"
8
8
  },
9
9
  "main": "install.js",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
- "postinstall": "node install.js"
12
+ "postinstall": "node install.js"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "keywords": [
19
19
  "javascript",
20
- "framework",
20
+ "framework",
21
21
  "webview",
22
- "front-end",
23
- "mobile",
22
+ "front-end",
23
+ "mobile",
24
24
  "desktop",
25
25
  "web"
26
26
  ],