create-fullstack-boilerplate 2.1.6 → 2.1.7
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/lib/copyProject.js +9 -5
- package/package.json +1 -1
package/lib/copyProject.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const fs = require("fs-extra");
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
module.exports = async function copyProject(src, dest) {
|
|
5
|
+
await fs.copy(path.resolve(src), path.resolve(dest), {
|
|
6
|
+
overwrite: false,
|
|
7
|
+
errorOnExist: true,
|
|
8
|
+
filter: (srcPath) => !srcPath.includes("node_modules")
|
|
9
|
+
});
|
|
10
|
+
console.log("✅ Files copied successfully.");
|
|
11
|
+
}
|
|
12
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fullstack-boilerplate",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "A Full Stack Application Comprised of React for Frontend, Express & Sequelize with Node js for Backend to help developers get started on real implementation instead of spending time setting up projects.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|