sqlaravel 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/postprepare.js +18 -0
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "sqlaravel",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.8",
|
4
4
|
"description": "Base to start projects in Laravel, simply and quickly",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
7
7
|
"postinstall": "node install",
|
8
|
-
"postprepare": "
|
8
|
+
"postprepare": "node postprepare"
|
9
9
|
},
|
10
10
|
"repository": {
|
11
11
|
"type": "git",
|
package/postprepare.js
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
const
|
2
|
+
fs = require("fs"),
|
3
|
+
|
4
|
+
// args = process.argv.slice(2),
|
5
|
+
dest = "../../resources/",
|
6
|
+
filesDir = "assets/"
|
7
|
+
;
|
8
|
+
|
9
|
+
// Copy files to the project
|
10
|
+
fs.cp(filesDir, dest, {recursive: true, force: false}, (err, data) => {
|
11
|
+
if (err) {
|
12
|
+
console.error("Error Install");
|
13
|
+
console.error(err);
|
14
|
+
} else {
|
15
|
+
console.log("successful resource installation");
|
16
|
+
}
|
17
|
+
});
|
18
|
+
|