forked from sporebat/elite-journal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jakefile
71 lines (66 loc) · 1.54 KB
/
Jakefile
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
desc('This installs dependencies.');
task('deps', function (params) {
console.log('Installing dependencies');
const cmds = [
'rm -rf node_modules/',
'rm -rf src/node_modules/',
'yarn install'
]
jake.exec(cmds, {printStdout: false}, function () {
console.log('Dependencies installed');
complete();
})
})
desc('Runs tests');
task('test', {async: true}, function () {
var cmds = [
'mocha --reporter mocha-circleci-reporter ./tests/*.js'
, 'xo'
];
jake.exec(cmds, {printStdout: true}, function () {
console.log('All tests passed.');
complete();
})
});
desc('Builds a setup executable');
task('build', function () {
var cmds = [
'build -w --x64'
]
jake.exec(cmds, function () {
console.log('Built a setup executable in dist/');
complete();
})
})
desc('Packs into a directory');
task('pack', function () {
var cmds = [
'build --dir --x64'
]
jake.exec(cmds, function () {
console.log('Packed into dist/');
complete();
})
})
desc('Builds a setup executable for release.');
task('release', function () {
var cmds = [
'build -w --x64'
]
jake.exec(cmds, function () {
console.log('Built a setup executable in dist/');
complete();
})
})
desc('This sets you up to develop with this.');
task('setup', function (params) {
console.log('Cloning and installing dependencies');
const cmds = [
'git clone https://github.com/willyb321/elite-journal.git'
, '(cd ./elite-journal && yarn install)'
]
jake.exec(cmds, function () {
console.log('Project cloned and dependencies installed.');
complete();
})
})