File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed
packages/@vue/cli/lib/promptModules Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = cli => {
4
4
value : 'babel' ,
5
5
short : 'Babel' ,
6
6
description : 'Transpile modern JavaScript to older versions (for compatibility)' ,
7
+ link : 'https://babeljs.io/' ,
7
8
checked : true
8
9
} )
9
10
Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ module.exports = cli => {
6
6
link : 'https://cli.vuejs.org/guide/css.html'
7
7
} )
8
8
9
+ const notice = 'PostCSS, Autoprefixer and CSS Modules are supported by default'
10
+
9
11
cli . injectPrompt ( {
10
12
name : 'cssPreprocessor' ,
11
13
when : answers => answers . features . includes ( 'css-preprocessor' ) ,
12
14
type : 'list' ,
13
- message : 'Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default):' ,
15
+ message : `Pick a CSS pre-processor${ process . env . VUE_CLI_API_MODE ? '' : ` (${ notice } )` } :` ,
16
+ description : `${ notice } .` ,
14
17
choices : [
15
18
{
16
19
name : 'SCSS/SASS' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ module.exports = cli => {
17
17
when : answers => answers . features . includes ( 'linter' ) ,
18
18
type : 'list' ,
19
19
message : 'Pick a linter / formatter config:' ,
20
+ description : 'Checking code errors and enforcing an homogeoneous code style is recommended.' ,
20
21
choices : answers => [
21
22
...(
22
23
answers . features . includes ( 'ts' )
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ module.exports = cli => {
13
13
when : answers => answers . features . includes ( 'ts' ) ,
14
14
type : 'confirm' ,
15
15
message : 'Use class-style component syntax?' ,
16
+ description : 'Use the @Component decorator on classes.' ,
17
+ link : 'https://vuejs.org/v2/guide/typescript.html#Class-Style-Vue-Components' ,
16
18
default : true
17
19
} )
18
20
@@ -21,6 +23,7 @@ module.exports = cli => {
21
23
when : answers => answers . features . includes ( 'ts' ) ,
22
24
type : 'confirm' ,
23
25
message : 'Use Babel alongside TypeScript for auto-detected polyfills?' ,
26
+ description : 'It will output ES2015 and delegate the rest to Babel for auto polyfill based on browser targets.' ,
24
27
default : answers => answers . features . includes ( 'babel' )
25
28
} )
26
29
You can’t perform that action at this time.
0 commit comments