forked from nuxt/create-nuxt-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprompts.js
137 lines (136 loc) · 3.58 KB
/
prompts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
const { random } = require('superb')
module.exports = [
{
name: 'name',
message: 'Project name',
default: '{outFolder}'
},
{
name: 'description',
message: 'Project description',
default: `My ${random()} Nuxt.js project`
},
{
name: 'author',
type: 'string',
message: 'Author name',
default: 'atoms (https://atoms.studio)'
},
{
name: 'pm',
message: 'Choose the package manager',
choices: [
{ name: 'Yarn', value: 'yarn' },
{ name: 'Npm', value: 'npm' }
],
type: 'list',
default: 'yarn'
},
{
name: 'ui',
message: 'Choose UI framework',
type: 'list',
pageSize: 15,
choices: [
{ name: 'None', value: 'none' },
{ name: 'Ant Design Vue', value: 'ant-design-vue' },
{ name: 'Bootstrap Vue', value: 'bootstrap' },
{ name: 'Buefy', value: 'buefy' },
{ name: 'Bulma', value: 'bulma' },
{ name: 'Element', value: 'element-ui' },
{ name: 'Framevuerk', value: 'framevuerk' },
{ name: 'iView', value: 'iview' },
{ name: 'Tachyons', value: 'tachyons' },
{ name: 'Tailwind CSS', value: 'tailwind' },
{ name: 'Vuesax', value: 'vuesax' },
{ name: 'Vuetify.js', value: 'vuetify' }
],
default: 'tailwind'
},
{
name: 'server',
message: 'Choose custom server framework',
type: 'list',
pageSize: 10,
choices: [
{ name: 'None (Recommended)', value: 'none' },
{ name: 'AdonisJs', value: 'adonis' },
{ name: 'Express', value: 'express' },
{ name: 'Fastify', value: 'fastify' },
{ name: 'Feathers', value: 'feathers' },
{ name: 'hapi', value: 'hapi' },
{ name: 'Koa', value: 'koa' },
{ name: 'Micro', value: 'micro' }
],
default: 'none'
},
{
name: 'features',
message: 'Choose Nuxt.js modules',
type: 'checkbox',
pageSize: 10,
choices: [
{ name: 'Axios', value: 'axios' },
{ name: 'Progressive Web App (PWA) Support', value: 'pwa' },
{ name: 'DotEnv', value: 'dotenv' },
{ name: 'Nuxt i18n', value: 'i18n' }
],
default: ['axios', 'pwa', 'dotenv', 'i18n']
},
{
name: 'linter',
message: 'Choose linting tools',
type: 'checkbox',
pageSize: 10,
choices: [
{ name: 'ESLint', value: 'eslint' },
{ name: 'Prettier', value: 'prettier' },
{ name: 'Lint staged files', value: 'lintStaged' },
{ name: 'StyleLint', value: 'stylelint' }
],
default: ['eslint', 'prettier', 'lintStaged']
},
{
name: 'test',
message: 'Choose test framework',
type: 'list',
choices: [
{ name: 'None', value: 'none' },
{ name: 'Jest', value: 'jest' },
{ name: 'AVA', value: 'ava' }
],
default: 'none'
},
{
name: 'mode',
message: 'Choose rendering mode',
type: 'list',
choices: [
{ name: 'Universal (SSR)', value: 'universal' },
{ name: 'Single Page App', value: 'spa' }
],
default: 'universal'
},
{
name: 'devTools',
message: 'Choose development tools',
type: 'checkbox',
choices: [
{ name: 'jsconfig.json (Recommended for VS Code)', value: 'jsconfig.json' },
{ name: 'Standardversion + Commitlint', value: 'standardversion' },
{ name: 'Semantic Pull Requests', value: 'semantic-pull-requests' }
],
default: ['jsconfig.json', 'standardversion']
},
{
name: 'hlcms',
message: 'Choose your Headless CMS',
type: 'list',
choices: [
{ name: 'None', value: 'none' },
{ name: 'DatoCMS', value: 'datocms' },
{ name: 'Contentful', value: 'contentful' }
],
default: 'none'
}
]