forked from quasarframework/quasar-starter-kit-umd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.js
127 lines (118 loc) · 2.98 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
const
path = require('path'),
fs = require('fs')
const
pkg = require('./package.json'),
templateVersion = pkg.version
module.exports = {
helpers: {
template_version () {
return templateVersion
},
camel_case (str) {
return str.replace(/-([a-z])/g, g => g[1].toUpperCase())
},
quasar_version () {
return '^1.1.0'
}
},
prompts: {
name: {
type: 'string',
required: true,
message: 'Project name'
},
author: {
type: 'string',
message: 'Author'
},
minified: {
type: 'confirm',
message: 'Use minified dependencies? (recommended)'
},
rtl: {
type: 'confirm',
message: 'Use RTL support?',
default: false
},
icons: {
type: 'list',
message: 'Choose Icon Library',
choices: [
{
name: 'Material Icons (recommended)',
value: 'material-icons',
short: 'Material Icons'
},
{
name: 'Material Icons Outlined',
value: 'material-icons-outlined',
short: 'Material Icons Outlined'
},
{
name: 'Material Icons Round',
value: 'material-icons-round',
short: 'Material Icons Round'
},
{
name: 'Material Icons Sharp',
value: 'material-icons-sharp',
short: 'Material Icons Sharp'
},
{
name: 'Fontawesome',
value: 'fontawesome',
short: 'Fontawesome'
},
{
name: 'Ionicons',
value: 'ionicons',
short: 'Ionicons'
},
{
name: 'MDI',
value: 'mdi',
short: 'MDI'
},
{
name: 'Eva Icons',
value: 'eva-icons',
short: 'Eva'
}
]
},
lang: {
type: 'string',
message: 'Quasar Language Pack - one from https://github.com/quasarframework/quasar/tree/dev/quasar/i18n',
default: 'en-us',
validate: opt => opt && opt.length >= 2
},
animations: {
type: 'confirm',
default: false,
message: 'Use quasar-extras animations?'
},
ie: {
type: 'confirm',
default: false,
message: 'Support Internet Explorer 11 and Edge?'
}
},
complete: function(data, { chalk }) {
const cwd = path.join(process.cwd(), data.inPlace ? '' : data.destDirName)
const message = `
# ${chalk.green('Quasar UMD demo initialization finished!')}
# ===========================================
Documentation can be found at: http://quasar.dev
Quasar is relying on donations to evolve. We'd be very grateful if you can
read our manifest on "Why donations are important": https://quasar.dev/why-donate
Donation campaign: https://donate.quasar.dev
Any amount is very welcomed.
If invoices are required, please first contact [email protected]
Please give us a star on Github if you appreciate our work:
https://github.com/quasarframework/quasar
Enjoy! - Quasar Team
`
console.log(message)
},
}