sqlaravel 1.0.0 → 1.0.1

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.
File without changes
package/install.js CHANGED
@@ -2,12 +2,23 @@ const
2
2
  fs = require("fs"),
3
3
 
4
4
  // args = process.argv.slice(2),
5
- dest = "../../",
6
- filesDir = "files/"
5
+ dest_r = "./",
6
+ dest_p = "../public",
7
+ filesDir_r = "files/resources/"
8
+ filesDir_p = "files/public/"
7
9
  ;
8
10
 
9
11
  // Copy files to the project
10
- fs.cp(filesDir, dest, {recursive: true, force: false}, (err, data) => {
12
+ fs.cp(filesDir_r, dest_r, {recursive: true, force: false}, (err, data) => {
13
+ if (err) {
14
+ console.error("Error Install");
15
+ console.error(err);
16
+ } else {
17
+ console.log("successful resource installation");
18
+ }
19
+ });
20
+
21
+ fs.cp(filesDir_p, dest_p, {recursive: true, force: false}, (err, data) => {
11
22
  if (err) {
12
23
  console.error("Error Install");
13
24
  console.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sqlaravel",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Base to start projects in Laravel, simply and quickly",
5
5
  "main": "index.js",
6
6
  "scripts": {