@reactful/create 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -4
- package/package.json +1 -1
- package/templates/empty/routes/index.tsx +5 -0
- package/vscode/launch.json +9 -0
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