@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 CHANGED
@@ -76,7 +76,7 @@ async function prompting(answers) {
76
76
  await copyPath(`${downloadPath}/vscode`, pathVSCode)
77
77
  }
78
78
 
79
- // await removeDirectory(downloadPath)
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactful/create",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "description": "reactful scafold tool",
@@ -0,0 +1,5 @@
1
+ import React from "react"
2
+
3
+ export default () => <>
4
+ <h2>Empty Template</h2>
5
+ </>
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.2.0",
3
+ "configurations": [{
4
+ "type": "bun",
5
+ "name": "Bun: Debug",
6
+ "request": "launch",
7
+ "program": "index.ts"
8
+ }]
9
+ }