Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gulpfile.mjs - github.com/thsmi/sieve.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd876ab3a443cd83ec1f432ee8f24245f4c70a13 (plain)
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/*
 * The content of this file is licensed. You may obtain a copy of
 * the license at https://github.com/thsmi/sieve/ or request it via
 * email from the author.
 *
 * Do not remove or change this comment.
 *
 * The initial author of the code is:
 *   Thomas Schmid <schmid-thomas@gmx.net>
 */

import gulp from 'gulp';

import common from './gulp/gulpfile.common.mjs';
import app from './gulp/gulpfile.app.mjs';
import wx from './gulp/gulpfile.wx.mjs';
import testing from './gulp/gulpfile.testing.mjs';
import web from "./gulp/gulpfile.web.mjs";

// App Related Tasks

app.packageApp.displayName = "app:package";
app.packageApp.description = "Packages the standalone application";

export const { watch : appWatch, packageApp : appPackage} = app;

const appPackageWin32 = gulp.series(
  app.packageApp,
  app.packageWin32
);
appPackageWin32.displayName = "app:package-win32";

const appZipWin32 = gulp.series(
  appPackageWin32,
  app.zipWin32
);
appZipWin32.displayName = "app:zip-win32";

const appPackageLinux = gulp.series(
  app.packageApp,
  app.packageLinux
);
appPackageLinux.displayName = 'app:package-linux';

const appZipLinux = gulp.series(
  appPackageLinux,
  app.zipLinux
);
appZipLinux.displayName = 'app:zip-linux';

const appAppImageLinux = gulp.series(
  appPackageLinux,
  app.appImageLinux
);
appAppImageLinux.displayName = 'app:appimage-linux';

const appPackageMacOS = gulp.series(
  app.packageApp,
  app.packageMacOS
);
appPackageMacOS.displayName = 'app:package-macos';

const appZipMacOS = gulp.series(
  appPackageMacOS,
  app.zipMacOS
);
appZipMacOS.displayName = 'app:zip-macos';

app.watch.displayName = "app:watch";
app.watch.description = "Watches the app's source files for changes";

export {
  appPackageWin32,
  appZipWin32,
  appPackageLinux,
  appZipLinux,
  appAppImageLinux,
  appPackageMacOS,
  appZipMacOS
};

// Web Extensions Related Tasks...
wx.watch.displayName = "wx:watch";
wx.packageWx.displayName = "wx:package";

export const { watch : wxWatch, packageWx: wxPackage } = wx;

const wxPackageXpi = gulp.series(
  wx.packageWx,
  wx.packageXpi
);
wxPackageXpi.displayName = "wx:package-xpi";

export {
  wxPackageXpi
};

// Testing Related Tasks...
testing.watchTests.displayName = "test:watch";
testing.packageTests.displayName = "test:package";

export const { watchTests : testWatch, packageTests : testPackage } = testing;

// Web application relates Tasks
web.watch.displayName = "web:watch";
web.packageWeb.displayName = "web:package";

export const { watch : webWatch, packageWeb : webPackage } = web;

const webPackageZip = gulp.series(
  web.packageWeb,
  web.packageZip
);

webPackageZip.displayName = "web:package-zip";

export {
  webPackageZip
};


// Generic Tasks...
common.clean.displayName = "clean";
export const { clean } = common;

const commonBumpMajor = gulp.series(
  common.bumpMajorVersion,
  gulp.parallel(
    app.updateVersion,
    wx.updateVersion,
    common.updateVersion
  )
);
commonBumpMajor.displayName = "bump-major";

const commonBumpMinor = gulp.series(
  common.bumpMinorVersion,
  gulp.parallel(
    app.updateVersion,
    wx.updateVersion,
    common.updateVersion
  )
);
commonBumpMinor.displayName = "bump-minor";

const commonBumpPatch = gulp.series(
  common.bumpPatchVersion,
  gulp.parallel(
    app.updateVersion,
    wx.updateVersion,
    common.updateVersion
  )
);
commonBumpPatch.displayName = "bump-patch";

export {
  commonBumpMajor,
  commonBumpMinor,
  commonBumpPatch
};