1
1
const chalk = require ( 'chalk' )
2
+ const SILENT = {
3
+ category : 'Global Config' ,
4
+ name : '#silent' ,
5
+ type : 'boolean' ,
6
+ default : 'false' ,
7
+ usage : `Vue.config.silent = ${ chalk . magentaBright ( 'true' ) } ` ,
8
+ details : 'Suppress all Vue logs and warnings' ,
9
+ }
10
+ const OPTION_MERGE_STRATEGIES = {
11
+ category : 'Global Config' ,
12
+ name : '#optionMergeStrategies' ,
13
+ type : '{ [key: string]: Function }' ,
14
+ default : '{}' ,
15
+ usage : `Vue.config.optionMergeStrategies._my_option = ${ chalk . magentaBright ( 'function' ) } (parent, child, vm) {
16
+ ${ chalk . magentaBright ( 'return' ) } child + 1
17
+ }
18
+ ${ chalk . magentaBright ( 'const' ) } Profile = Vue.extend({
19
+ _my_option: 1
20
+ })
21
+ // Profile.options._my_option = 2\n` ,
22
+ details : `Define custom merging strategies for options.
23
+ The merge strategy receives the value of that option defined
24
+ on the parent and child instances as the first and second arguments, respectively.
25
+ The context Vue instance is passed as the third argument.`
26
+ }
27
+ const DEVTOOLS = {
28
+ category : 'Global Config' ,
29
+ name : '#devtools' ,
30
+ type : 'boolean' ,
31
+ default : `true ${ chalk . white ( '(' ) } false ${ chalk . white ( 'in production builds)' ) } ` ,
32
+ usage : `// make sure to set this synchronously immediately after loading Vue
33
+ Vue.config.devtools = ${ chalk . magentaBright ( 'true' ) } ` ,
34
+ details : `Check whether to allow ${ chalk . green ( 'vue-devtools' ) } inspection.
35
+ This option's default value is ${ chalk . magentaBright ( 'true' ) } in development builds and ${ chalk . magentaBright ( 'false' ) } in production builds.
36
+ You can set it to ${ chalk . magentaBright ( 'true' ) } to enable inspection for production builds`
37
+ }
38
+ /*const SILENT = {
39
+ category: 'Global Config',
40
+ name: '#silent',
41
+ type: 'boolean',
42
+ default: 'false',
43
+ arguments: '',
44
+ readOption: '',
45
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
46
+ details: 'Suppress all Vue logs and warnings',
47
+ example: ''
48
+ }
49
+
50
+ const SILENT = {
51
+ category: 'Global Config',
52
+ name: '#silent',
53
+ type: 'boolean',
54
+ default: 'false',
55
+ arguments: '',
56
+ readOption: '',
57
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
58
+ details: 'Suppress all Vue logs and warnings',
59
+ example: ''
60
+ }
61
+
62
+ const SILENT = {
63
+ category: 'Global Config',
64
+ name: '#silent',
65
+ type: 'boolean',
66
+ default: 'false',
67
+ arguments: '',
68
+ readOption: '',
69
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
70
+ details: 'Suppress all Vue logs and warnings',
71
+ example: ''
72
+ }
73
+
74
+ const SILENT = {
75
+ category: 'Global Config',
76
+ name: '#silent',
77
+ type: 'boolean',
78
+ default: 'false',
79
+ arguments: '',
80
+ readOption: '',
81
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
82
+ details: 'Suppress all Vue logs and warnings',
83
+ example: ''
84
+ }
2
85
const SILENT = {
3
86
category: 'Global Config',
4
87
name: '#silent',
@@ -11,7 +94,33 @@ const SILENT = {
11
94
example: ''
12
95
}
13
96
97
+ const SILENT = {
98
+ category: 'Global Config',
99
+ name: '#silent',
100
+ type: 'boolean',
101
+ default: 'false',
102
+ arguments: '',
103
+ readOption: '',
104
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
105
+ details: 'Suppress all Vue logs and warnings',
106
+ example: ''
107
+ }
108
+
109
+ const SILENT = {
110
+ category: 'Global Config',
111
+ name: '#silent',
112
+ type: 'boolean',
113
+ default: 'false',
114
+ arguments: '',
115
+ readOption: '',
116
+ usage: `Vue.config.silent = ${chalk.magentaBright('true')}`,
117
+ details: 'Suppress all Vue logs and warnings',
118
+ example: ''
119
+ }
120
+ */
14
121
15
122
module . exports = {
16
- SILENT
123
+ SILENT ,
124
+ OPTION_MERGE_STRATEGIES ,
125
+ DEVTOOLS
17
126
}
0 commit comments