@reactful/create 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -10,12 +10,12 @@ import fs from 'fs'
10
10
  const GREEN = '\x1b[32m'
11
11
  const RESET = '\x1b[0m'
12
12
  const prefix = `${GREEN}+${RESET}`
13
- const line = ' '.repeat(50)
14
- const decor = '-'.repeat(15)
13
+ const line = ''.repeat(51)
14
+ const decor = '-'.repeat(18)
15
15
 
16
- console.log(line)
16
+ // console.log(line)
17
17
  console.log(`${decor}( ${GREEN}reactful${RESET}.js )${decor}`)
18
- console.log(line)
18
+ // console.log(line)
19
19
 
20
20
  const templates = ['empty', 'minimal', 'sampling']
21
21
  const questions = [{
@@ -45,15 +45,15 @@ 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('- creating .env...')
54
- const env = `PORT=333\nMINIFY=FALSE`
55
- fs.writeFileSync(`${destination}/.env`, env)
56
-
57
57
  console.log('- templating project...')
58
58
  renamingJSON(destination, answers.project)
59
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactful/create",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "description": "reactful scafold tool",