-
Notifications
You must be signed in to change notification settings - Fork 2
/
prompts.js
153 lines (152 loc) · 3.85 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
const { random } = require('superb')
module.exports = [
{
name: 'name',
message: 'Project name',
default: '{outFolder}'
},
{
name: 'description',
message: 'Project description',
default: `My ${random()} TYPO3 Nuxt.js project`
},
{
name: 'author',
type: 'string',
message: 'Author name',
default: '{gitUser.name}',
store: true
},
{
name: 'language',
message: 'Choose programming language',
choices: [
{ name: 'JavaScript', value: 'js' },
{ name: 'TypeScript', value: 'ts' }
],
type: 'list',
default: 'js'
},
{
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: 'none'
},
{
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: 'runtime',
message: 'Choose the runtime for TypeScript',
type: 'list',
choices: [
{ name: 'Default', value: 'none' },
{ name: '@nuxt/typescript-runtime', value: 'ts-runtime' }
],
when: answers => answers.language === 'ts' && answers.server === 'none'
},
{
name: 'features',
message: 'Choose Nuxt.js modules',
type: 'checkbox',
pageSize: 10,
choices: [
{ name: 'TYPO3', value: 'typo' },
{ name: 'TYPO3 Tailwind', value: 'skin' },
{ name: 'Axios', value: 'axios' },
{ name: 'Progressive Web App (PWA) Support', value: 'pwa' },
{ name: 'DotEnv', value: 'dotenv' }
],
default: ['typo', 'skin', 'pwa']
},
{
name: 'api',
message: 'Your TYPO3 API url',
type: String,
default: 'https://api.t3pwa.com'
},
{
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: []
},
{
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: 'Semantic Pull Requests', value: 'semantic-pull-requests' }
],
default: []
}
]