-
-
Notifications
You must be signed in to change notification settings - Fork 69
/
ui.js
35 lines (32 loc) · 963 Bytes
/
ui.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
module.exports = api => {
const taskCommon = {
prompts: [
{
name: 'port',
type: 'input',
default: '',
description: 'Specify port',
},
],
onBeforeRun: ({ answers, args }) => {
if (answers.port) args.push('--port', answers.port)
},
}
api.describeTask({
match: /vue-cli-service ssr:serve --mode production/,
description: 'Starts the included HTTP server for SSR in production',
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
...taskCommon,
})
api.describeTask({
match: /vue-cli-service ssr:serve/,
description: 'Compiles and hot-reloads for development with SSR',
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
...taskCommon,
})
api.describeTask({
match: /vue-cli-service ssr:build/,
description: 'Compiles and minifies for production with SSR',
link: 'https://github.com/Akryum/vue-cli-plugin-ssr#usage',
})
}