-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
22 lines (21 loc) · 738 Bytes
/
index.js
File metadata and controls
22 lines (21 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const COMMAND_OPTIONS = {
'--mock': 'enables mocks',
'--enable-engine': 'enables Apollo Engine',
'--delay': 'delays run by a small duration',
'-h, --host': 'specify server host',
'-p, --port': 'specify server port',
'--run [command]': 'run another command in parallel',
}
module.exports = (api, projectOptions) => {
api.chainWebpack(config => {
config.resolve
.extensions
.prepend('.ts')
})
api.registerCommand('apollo:watch', {
description: 'Run the Apollo server and watch the sources to restart automatically',
usage: 'vue-cli-service apollo:watch [options]',
options: COMMAND_OPTIONS,
details: 'For more info, see https://github.com/Akryum/vue-cli-plugin-apollo',
}, args => {})
}