-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmeta.js
62 lines (59 loc) · 1.7 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
'use strict'
module.exports = {
prompts: {
name: {
type: 'editor',
message: 'Application Name'
},
description: {
type: 'editor',
message: 'Project Description',
default: 'An electron-webpack project'
},
companyname: {
type: 'editor',
message: 'Company Name',
},
rebuild: {
type: 'confirm',
message: 'Use Native Addons (rebuild flag)?',
default: true
},
fork: {
type: 'confirm',
message: 'Use child_process.fork (fork flag)?',
default: true
},
update: {
type: 'confirm',
message: 'Use update framework (update flag)?',
default: true
},
installer: {
type: 'confirm',
message: 'Make installer (installer flag)?',
default: true
},
},
filters: {
'tasks/install.js': 'rebuild',
'app/src/sections/forkJs.js': 'fork',
'app/update.js': 'update',
'tasks/mac/*': 'installer',
'tasks/win/*': 'installer',
},
completeMessage: `---
All set. More configurations can be made at \x1b[33m{{destDirName}}/config.js\x1b[0m.
Next steps:
1.
\x1B[32mcd {{destDirName}}\x1b[0m
2.
\x1B[32mnpm i\x1b[0m
3.
If \x1B[1mrebuild\x1b[0m flag is true. Need to be modified at \x1b[33m{{destDirName}}/tasks/install.js\x1b[0m.
If \x1B[1mfork\x1b[0m flag is true. Need to be modified at \x1b[33m{{destDirName}}/app/src/sections/forkJs.js\x1b[0m.
If \x1B[1mupdate\x1b[0m flag is true. Need to be modified at \x1b[33m{{destDirName}}/app/electron.js:57 (update.setFeedURL)\x1b[0m.
If \x1B[1minstaller\x1b[0m flag is true. Need to be modified at \x1b[33m{{destDirName}}/tasks/win/vdprojConfig.json\x1b[0m.
4.
\x1B[32mnpm run dev\x1b[0m`
}