forked from keeweb/keeweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
grunt.entrypoints.js
87 lines (74 loc) · 2.59 KB
/
grunt.entrypoints.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
// prettier-ignore
module.exports = function(grunt) {
grunt.registerTask('default', 'Default: build web app', [
'build-web-app'
]);
grunt.registerTask('dev', 'Build project and start web server and watcher', [
'build-web-app',
'devsrv'
]);
grunt.registerTask('devsrv', 'Start web server and watcher', [
'webpack-dev-server'
]);
grunt.registerTask('desktop', 'Build web and desktop apps for all platforms', [
'test',
'default',
'build-desktop'
]);
grunt.registerTask('desktop-linux', 'Build desktop apps on linux', [
'clean:desktop',
'build-desktop-app-content',
'build-desktop-executables-linux',
'build-desktop-archives-linux',
'build-desktop-dist-linux'
]);
grunt.registerTask('desktop-darwin', 'Build desktop apps on macos', [
'clean:desktop',
'build-desktop-app-content',
'build-desktop-executables-darwin',
'build-desktop-dist-darwin'
]);
grunt.registerTask('desktop-win32', 'Build desktop apps on windows', [
'clean:desktop',
'build-desktop-app-content',
'build-desktop-executables-win32',
'build-desktop-archives-win32',
'build-desktop-dist-win32'
]);
grunt.registerTask('finish-release', 'Complete the release started with desktop-*', [
'sign-dist'
]);
grunt.registerTask('dev-desktop-darwin', 'Build a macOS app in dev environment', [
'default',
'build-desktop-app-content',
'electron:darwin-x64',
'electron-patch:darwin-x64',
'build-darwin-installer',
'copy:desktop-darwin-installer-helper-x64',
'copy:native-modules-darwin-x64',
'copy:native-messaging-host-darwin-x64'
]);
grunt.registerTask('dev-desktop-darwin-signed', 'Build a signed macOS app in dev environment', [
'dev-desktop-darwin',
'osx-sign:desktop-x64'
]);
grunt.registerTask('dev-desktop-win32', 'Build a Windows app in dev environment', [
'default',
'build-desktop-app-content',
'electron:win32-x64',
'copy:native-modules-win32-x64',
'copy:native-messaging-host-win32-x64'
]);
grunt.registerTask('dev-desktop-linux', 'Build a Linux app in dev environment', [
'default',
'build-desktop-app-content',
'electron:linux',
'chmod:linux-desktop-x64',
'copy:native-modules-linux-x64',
'copy:native-messaging-host-linux-x64'
]);
grunt.registerTask('test', 'Build and run tests', [
'build-test',
'run-test'
]);
};