This repository has been archived by the owner on Mar 13, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
meta.js
86 lines (78 loc) · 1.85 KB
/
meta.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
const { printMessage } = require('./utils')
module.exports = {
prompts: {
needOrgName: {
type: 'confirm',
message: 'Will you use an organization to publish it? Eg. "@my-org/..."',
default: false
},
orgName: {
when: 'needOrgName',
type: 'input',
message: 'Organization name, eg. "my-org"',
validate: val => val && val.length > 0
},
name: {
type: 'input',
message: 'Quasar App Extension ext-id (without "quasar-app-extension" prefix), eg. "my-ext"',
validate: val => val && val.length > 0
},
description: {
type: 'input',
message: 'Project description',
default: 'A Quasar App Extension'
},
author: {
type: 'input',
message: 'Author'
},
license: {
type: 'input',
message: 'License type',
default: 'MIT'
},
preset: {
type: 'checkbox',
message: 'Pick the needed scripts:',
choices: [
{
name: 'Prompts script',
value: 'prompts'
},
{
name: 'Install script',
value: 'install'
},
{
name: 'Uninstall script',
value: 'uninstall'
}
]
},
repositoryType: {
type: 'input',
message: 'Repository type',
default: 'git'
},
repositoryURL: {
type: 'input',
message: 'Repository URL (eg: https://github.com/quasarframework/quasar)'
},
homepage: {
type: 'input',
message: 'Homepage URL'
},
bugs: {
type: 'input',
message: 'Issue reporting URL (eg: https://github.com/quasarframework/quasar/issues)'
}
},
filters: {
'src/install.js': 'preset.install',
'src/prompts.js': 'preset.prompts',
'src/uninstall.js': 'preset.uninstall'
},
complete: function(data, { chalk }) {
printMessage(data, chalk)
}
}