-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathoptions.js
62 lines (59 loc) · 1.19 KB
/
options.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
/**
* The questions to ask during the install process.
*/
const questions = [
{
name: 'dev-screens',
message: 'Would you like Ignite Development Screens?',
type: 'list',
choices: ['No', 'Yes']
},
{
name: 'vector-icons',
message: 'What vector icon library will you use?',
type: 'list',
choices: ['none', 'react-native-vector-icons']
},
{
name: 'i18n',
message: 'What internationalization library will you use?',
type: 'list',
choices: ['none', 'react-native-i18n']
},
{
name: 'animatable',
message: 'What animation library will you use?',
type: 'list',
choices: ['none', 'react-native-animatable']
},
{
name: 'tests',
message: 'What test library will you use?',
type: 'list',
choices: ['none', 'jest']
}
]
/**
* The max preset.
*/
const max = {
'dev-screens': 'Yes',
'vector-icons': 'react-native-vector-icons',
i18n: 'react-native-i18n',
animatable: 'react-native-animatable',
tests: 'jest'
}
/**
* The min preset.
*/
const min = {
'dev-screens': 'No',
'vector-icons': 'none',
i18n: 'none',
animatable: 'none',
tests: 'none'
}
module.exports = {
questions,
answers: { min, max }
}