@reactful/create 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
@@ -45,16 +45,16 @@ async function prompting(answers) {
|
|
45
45
|
console.log('- loading NPM...')
|
46
46
|
await download('@reactful/create', temporaryPath)
|
47
47
|
|
48
|
+
console.log('- creating .env...')
|
49
|
+
const env = `PORT=333\nMINIFY=FALSE`
|
50
|
+
fs.writeFileSync(`${destination}/.env`, env)
|
51
|
+
|
48
52
|
console.log('- copying template...')
|
49
53
|
await copyTemplate(temporaryPath, `commons`, destination)
|
50
54
|
await copyTemplate(temporaryPath, `templates/${answers.template}`, destination)
|
51
55
|
await removeDirectory(temporaryPath)
|
52
56
|
|
53
|
-
console.log('-
|
54
|
-
const env = `PORT=333\nMINIFY=FALSE`
|
55
|
-
fs.writeFileSync(`${destination}/.env`, env)
|
56
|
-
|
57
|
-
console.log('- templating project...')
|
57
|
+
console.log('- renaming project...')
|
58
58
|
renamingJSON(destination, answers.project)
|
59
59
|
|
60
60
|
console.log('- installing dependencies...\n')
|