@reactful/create 0.1.14 → 1.0.0
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/index.js
CHANGED
@@ -76,7 +76,7 @@ async function prompting(answers) {
|
|
76
76
|
await copyPath(`${downloadPath}/vscode`, pathVSCode)
|
77
77
|
}
|
78
78
|
|
79
|
-
|
79
|
+
await removeDirectory(downloadPath)
|
80
80
|
}
|
81
81
|
|
82
82
|
function renamingJSON(directory, projectName) {
|
@@ -133,7 +133,6 @@ function removeDirectory(directory) {
|
|
133
133
|
|
134
134
|
function copyPath(source, target) {
|
135
135
|
if (!fs.existsSync(target)) fs.mkdirSync(target)
|
136
|
-
console.log('=', source)
|
137
136
|
|
138
137
|
fs.readdirSync(source).forEach(function(file) {
|
139
138
|
const sourcePath = path.join(source, file)
|
@@ -141,8 +140,6 @@ function copyPath(source, target) {
|
|
141
140
|
const statusPath = fs.lstatSync(sourcePath)
|
142
141
|
const folderPath = statusPath.isDirectory()
|
143
142
|
|
144
|
-
console.log('=>', file)
|
145
|
-
|
146
143
|
if (folderPath) copyPath(sourcePath, targetPath)
|
147
144
|
else fs.copyFileSync(sourcePath, targetPath)
|
148
145
|
})
|
package/package.json
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@reactful/create",
|
3
|
-
"version": "0.
|
3
|
+
"version": "1.0.0",
|
4
4
|
"main": "index.js",
|
5
5
|
"type": "module",
|
6
6
|
"description": "reactful scafold tool",
|
7
7
|
"author": "jonathan de sena ribeiro <jsenaribeiro@gmail.com>",
|
8
|
-
"bin": {
|
8
|
+
"bin": {
|
9
|
+
"@reactful/create": "index.js"
|
10
|
+
},
|
9
11
|
"files": [
|
10
12
|
"index.js",
|
11
13
|
"package.json",
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="UTF-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<meta name="description" content="Home page" >
|
7
|
+
<title>Welcome</title>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<h2>Minimal Template</h2>
|
11
|
+
</body>
|
12
|
+
</html>
|
File without changes
|