create-ej-app 2.0.0 → 2.2.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.
Files changed (2) hide show
  1. package/cli.js +8 -6
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -7,7 +7,7 @@ const { prompt } = require('enquirer')
7
7
  const copydir = require('copy-dir')
8
8
 
9
9
  program
10
- .version('2.0.0')
10
+ .version('2.1.0')
11
11
  .description('CLI tool to bootstrap a Next.js App')
12
12
  .action(async () => {
13
13
  const response = await prompt([
@@ -15,7 +15,7 @@ program
15
15
  type: 'input',
16
16
  name: 'projectName',
17
17
  message: 'Enter the project name:',
18
- initial: 'my-app'
18
+ initial: 'ej-app'
19
19
  },
20
20
  {
21
21
  type: 'input',
@@ -28,10 +28,11 @@ program
28
28
  name: 'template',
29
29
  message: 'Select a template:',
30
30
  choices: [
31
- { name: 'Base', value: 'base' },
31
+ { name: 'base', message: 'Base' },
32
32
  {
33
- name: 'With user types and ACLs (roles & permissions)',
34
- value: 'advanced'
33
+ name: 'advanced',
34
+ message:
35
+ 'Advanced setup with User Types and ACLs (roles & permissions)'
35
36
  }
36
37
  ],
37
38
  initial: 0
@@ -80,7 +81,8 @@ To get started, run the following commands:
80
81
 
81
82
  cd ${projectName}
82
83
  npm install
83
- npm run dev`)
84
+ npm run dev
85
+ `)
84
86
  })
85
87
 
86
88
  program.parse(process.argv)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ej-app",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "Bootstrap a next.js app with my preferred setup",
5
5
  "main": "cli.js",
6
6
  "scripts": {