File tree Expand file tree Collapse file tree 7 files changed +11
-18
lines changed Expand file tree Collapse file tree 7 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ module.exports = api => {
14
14
process . env . VUE_CLI_BABEL_TARGET_NODE = true
15
15
process . env . VUE_CLI_BABEL_TRANSPILE_MODULES = true
16
16
17
- // TODO execa jest w/ --config jest.config.js
18
17
const execa = require ( 'execa' )
19
18
const jestBinPath = require . resolve ( 'jest/bin/jest' )
20
19
Original file line number Diff line number Diff line change 1
- // TODO handle alternative build targets
2
-
3
1
const defaults = {
4
2
mode : 'production' ,
5
3
target : 'app'
@@ -10,8 +8,9 @@ module.exports = (api, options) => {
10
8
description : 'build for production' ,
11
9
usage : 'vue-cli-service build [options]' ,
12
10
options : {
13
- '--mode' : `specify env mode (default: ${ defaults . mode } )` ,
14
- '--target' : `app | library | web-component (default: ${ defaults . target } )`
11
+ // TODO
12
+ // '--mode': `specify env mode (default: ${defaults.mode})`,
13
+ // '--target': `app | library | web-component (default: ${defaults.target})`
15
14
}
16
15
} , args => {
17
16
api . setMode ( args . mode || defaults . mode )
@@ -46,8 +45,7 @@ module.exports = (api, options) => {
46
45
process . stdout . write ( stats . toString ( {
47
46
colors : true ,
48
47
modules : false ,
49
- // TODO set this to true if using TS
50
- children : false ,
48
+ children : api . hasPlugin ( 'typescript' ) ,
51
49
chunks : false ,
52
50
chunkModules : false
53
51
} ) + '\n\n' )
Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ module.exports = (api, options) => {
108
108
} else {
109
109
console . log ( ` App is served in production mode.` )
110
110
console . log ( ` Note this is for preview or E2E testing only.` )
111
- // TODO console.log(` See URL for more deployment tips.`)
112
111
}
113
112
console . log ( )
114
113
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ module.exports = (api, options) => {
80
80
} , userOptions ) ] )
81
81
}
82
82
83
- // TODO document receipe for adding sass-resource-loader
83
+ // TODO document receipe for using css.loaderOptions to add `data` option
84
+ // to sass-loader
84
85
} )
85
86
}
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ module.exports = (api, options) => {
121
121
ignore : [ 'index.html' , '.*' ]
122
122
} ] ] )
123
123
124
- // TODO investigate DLL plugin options
124
+ // TODO investigate happypack/cache-loader/ DLL plugin options
125
125
}
126
126
} )
127
127
}
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ module.exports = cli => {
5
5
cli . injectFeature ( {
6
6
name : 'Linter / Formatter' ,
7
7
value : 'linter' ,
8
- short : 'Linter' ,
9
- checked : true
8
+ short : 'Linter'
10
9
} )
11
10
12
11
cli . injectPrompt ( {
@@ -49,13 +48,11 @@ module.exports = cli => {
49
48
choices : [
50
49
{
51
50
name : 'Lint on save' ,
52
- value : 'save' ,
53
- checked : true
51
+ value : 'save'
54
52
} ,
55
53
{
56
54
name : 'Lint and fix on commit' + ( hasGit ? '' : chalk . red ( ' (requires Git)' ) ) ,
57
- value : 'commit' ,
58
- checked : true
55
+ value : 'commit'
59
56
}
60
57
]
61
58
} )
Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ module.exports = cli => {
2
2
cli . injectFeature ( {
3
3
name : 'Unit Testing' ,
4
4
value : 'unit' ,
5
- short : 'Unit' ,
6
- checked : true
5
+ short : 'Unit'
7
6
} )
8
7
9
8
cli . injectPrompt ( {
You can’t perform that action at this time.
0 commit comments