forked from keeweb/keeweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.tasks.js
89 lines (77 loc) · 2.51 KB
/
grunt.tasks.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
module.exports = function(grunt) {
grunt.registerTask('build-web-app', [
'gitinfo',
'clean',
'eslint',
'copy:html',
'copy:favicon',
'copy:icons',
'copy:manifest',
'copy:fonts',
'webpack:app',
'inline',
'htmlmin',
'string-replace:service-worker',
'string-replace:manifest',
'copy:dist-icons',
'copy:dist-manifest'
]);
grunt.registerTask('build-desktop-app-content', [
'copy:desktop-html',
'copy:desktop-app-content',
'string-replace:desktop-public-key'
]);
grunt.registerTask('build-desktop-update', [
'copy:desktop-update',
'copy:desktop-update-helper',
'sign-desktop-files:desktop-update',
'compress:desktop-update',
'sign-archive:desktop-update',
'validate-desktop-update'
]);
grunt.registerTask('build-desktop-executables', [
'electron',
'sign-exe:win32-build-x64',
'sign-exe:win32-build-ia32',
'copy:desktop-windows-helper-ia32',
'copy:desktop-windows-helper-x64',
'chmod:linux-desktop-x64'
]);
grunt.registerTask('build-desktop-archives', [
'compress:win32-x64',
'compress:win32-ia32',
'compress:linux-x64'
]);
grunt.registerTask('build-desktop-dist-darwin', ['appdmg']);
grunt.registerTask('build-desktop-dist-win32', [
'nsis:win32-un-x64',
'nsis:win32-un-ia32',
'sign-exe:win32-uninst-x64',
'sign-exe:win32-uninst-ia32',
'nsis:win32-x64',
'nsis:win32-ia32',
'sign-exe:win32-installer-x64',
'sign-exe:win32-installer-ia32',
'copy:desktop-win32-dist-x64',
'copy:desktop-win32-dist-ia32'
]);
grunt.registerTask('build-desktop-dist-linux', ['deb:linux-x64']);
grunt.registerTask('build-desktop-dist', [
'build-desktop-dist-darwin',
'build-desktop-dist-win32',
'build-desktop-dist-linux'
]);
grunt.registerTask('build-desktop', [
'gitinfo',
'clean:desktop',
'build-desktop-app-content',
'build-desktop-executables',
'build-desktop-update',
'build-desktop-archives',
'build-desktop-dist',
'sign-dist'
]);
grunt.registerTask('build-cordova-app-content', ['string-replace:cordova-html']);
grunt.registerTask('build-cordova', ['gitinfo', 'clean:cordova', 'build-cordova-app-content']);
grunt.registerTask('build-test', ['webpack:test']);
};