@leverege/build-tools 1.12.10 → 1.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/server/helmup +9 -1
- package/lib/web/dnsify/CloudflareAPI.js +162 -126
- package/lib/web/dnsify/index.js +62 -47
- package/lib/web/packleate/Packleator.js +511 -397
- package/lib/web/packleate/index.js +55 -40
- package/package.json +2 -2
- package/src/helmup +9 -1
- package/.circleci/config.yml +0 -0
|
@@ -9,18 +9,24 @@ require("core-js/modules/web.dom.iterable");
|
|
|
9
9
|
|
|
10
10
|
require("core-js/modules/es6.array.iterator");
|
|
11
11
|
|
|
12
|
-
require("core-js/modules/es6.object.to-string");
|
|
13
|
-
|
|
14
12
|
require("core-js/modules/es6.object.keys");
|
|
15
13
|
|
|
16
14
|
require("regenerator-runtime/runtime");
|
|
17
15
|
|
|
16
|
+
require("core-js/modules/es6.promise");
|
|
17
|
+
|
|
18
|
+
require("core-js/modules/es6.object.to-string");
|
|
19
|
+
|
|
18
20
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
19
21
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
21
23
|
|
|
22
24
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
23
25
|
|
|
26
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
27
|
+
|
|
28
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
29
|
+
|
|
24
30
|
var commandLineArgs = require('command-line-args');
|
|
25
31
|
|
|
26
32
|
var commandLineUsage = require('command-line-usage');
|
|
@@ -95,52 +101,61 @@ var optionDefinitions = [{
|
|
|
95
101
|
var args = commandLineArgs(optionDefinitions);
|
|
96
102
|
|
|
97
103
|
function main() {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
while (1) {
|
|
101
|
-
switch (_context.prev = _context.next) {
|
|
102
|
-
case 0:
|
|
103
|
-
if (!args.help) {
|
|
104
|
-
_context.next = 4;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
104
|
+
return _main.apply(this, arguments);
|
|
105
|
+
}
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
107
|
+
function _main() {
|
|
108
|
+
_main = _asyncToGenerator(
|
|
109
|
+
/*#__PURE__*/
|
|
110
|
+
regeneratorRuntime.mark(function _callee() {
|
|
111
|
+
var packleator;
|
|
112
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
113
|
+
while (1) {
|
|
114
|
+
switch (_context.prev = _context.next) {
|
|
115
|
+
case 0:
|
|
116
|
+
if (!args.help) {
|
|
117
|
+
_context.next = 4;
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
console.log(usage);
|
|
122
|
+
_context.next = 16;
|
|
123
|
+
break;
|
|
111
124
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
125
|
+
case 4:
|
|
126
|
+
packleator = new Packleator(_objectSpread({}, defaultConfig, {
|
|
127
|
+
args: args
|
|
128
|
+
}));
|
|
116
129
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
130
|
+
if (args.verbose) {
|
|
131
|
+
console.log(packleator.args);
|
|
132
|
+
}
|
|
120
133
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
134
|
+
_context.prev = 6;
|
|
135
|
+
_context.next = 9;
|
|
136
|
+
return packleator.getPackageJson();
|
|
124
137
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
138
|
+
case 9:
|
|
139
|
+
_context.next = 11;
|
|
140
|
+
return packleator.run();
|
|
128
141
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
142
|
+
case 11:
|
|
143
|
+
_context.next = 16;
|
|
144
|
+
break;
|
|
132
145
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
146
|
+
case 13:
|
|
147
|
+
_context.prev = 13;
|
|
148
|
+
_context.t0 = _context["catch"](6);
|
|
149
|
+
console.error(_context.t0.message);
|
|
137
150
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
151
|
+
case 16:
|
|
152
|
+
case "end":
|
|
153
|
+
return _context.stop();
|
|
154
|
+
}
|
|
141
155
|
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
156
|
+
}, _callee, null, [[6, 13]]);
|
|
157
|
+
}));
|
|
158
|
+
return _main.apply(this, arguments);
|
|
144
159
|
}
|
|
145
160
|
|
|
146
161
|
main();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.11",
|
|
4
4
|
"description": "A package for development build tools.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -62,4 +62,4 @@
|
|
|
62
62
|
"@leverege/eslint-config-leverege": "^2.0.1",
|
|
63
63
|
"core-js": "^3.4.7"
|
|
64
64
|
}
|
|
65
|
-
}
|
|
65
|
+
}
|
package/src/helmup
CHANGED
|
@@ -173,10 +173,18 @@ function installVelero() {
|
|
|
173
173
|
--set configuration.volumeSnapshotLocation.name="gcp" \
|
|
174
174
|
--set configuration.backupStorageLocation.bucket="${BUCKET}" \
|
|
175
175
|
--set credentials.existingSecret="velero-credentials" \
|
|
176
|
+
--set "initContainers[0].name"="velero-plugin-for-gcp" \
|
|
177
|
+
--set "initContainers[0].image"="velero/velero-plugin-for-gcp:v1.0.0" \
|
|
178
|
+
--set "initContainers[0].volumeMounts[0].mountPath"="/target" \
|
|
179
|
+
--set "initContainers[0].volumeMounts[0].name"="plugins" \
|
|
176
180
|
--set schedules.timescale.schedule="0 3 * * *" \
|
|
177
181
|
--set schedules.timescale.template.ttl="720h" \
|
|
178
182
|
--set schedules.timescale.template.labelSelector.matchLabels.app="postgresql" \
|
|
179
|
-
--set schedules.timescale.template.snapshotVolumes="true"
|
|
183
|
+
--set schedules.timescale.template.snapshotVolumes="true" \
|
|
184
|
+
--set schedules.mysql.schedule="0 2 * * *" \
|
|
185
|
+
--set schedules.mysql.template.ttl="720h" \
|
|
186
|
+
--set schedules.mysql.template.labelSelector.matchLabels.app="mysql" \
|
|
187
|
+
--set schedules.mysql.template.snapshotVolumes="true"
|
|
180
188
|
|
|
181
189
|
## Instruct users to move velero keys
|
|
182
190
|
printf "\n$YELO_WARN MOVE THE SERVICE ACCOUNT TO YOUR KEYS FOLDER"
|
package/.circleci/config.yml
DELETED
|
File without changes
|