@leverege/build-tools 1.12.6 → 1.12.7

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.
@@ -9,24 +9,18 @@ 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
+
12
14
  require("core-js/modules/es6.object.keys");
13
15
 
14
16
  require("regenerator-runtime/runtime");
15
17
 
16
- require("core-js/modules/es6.promise");
17
-
18
- require("core-js/modules/es6.object.to-string");
19
-
20
18
  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; }
21
19
 
22
20
  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; }
23
21
 
24
22
  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; }
25
23
 
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
-
30
24
  var commandLineArgs = require('command-line-args');
31
25
 
32
26
  var commandLineUsage = require('command-line-usage');
@@ -101,61 +95,52 @@ var optionDefinitions = [{
101
95
  var args = commandLineArgs(optionDefinitions);
102
96
 
103
97
  function main() {
104
- return _main.apply(this, arguments);
105
- }
106
-
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;
98
+ var packleator;
99
+ return regeneratorRuntime.async(function main$(_context) {
100
+ while (1) {
101
+ switch (_context.prev = _context.next) {
102
+ case 0:
103
+ if (!args.help) {
104
+ _context.next = 4;
123
105
  break;
106
+ }
124
107
 
125
- case 4:
126
- packleator = new Packleator(_objectSpread({}, defaultConfig, {
127
- args: args
128
- }));
108
+ console.log(usage);
109
+ _context.next = 16;
110
+ break;
129
111
 
130
- if (args.verbose) {
131
- console.log(packleator.args);
132
- }
112
+ case 4:
113
+ packleator = new Packleator(_objectSpread({}, defaultConfig, {
114
+ args: args
115
+ }));
133
116
 
134
- _context.prev = 6;
135
- _context.next = 9;
136
- return packleator.getPackageJson();
117
+ if (args.verbose) {
118
+ console.log(packleator.args);
119
+ }
137
120
 
138
- case 9:
139
- _context.next = 11;
140
- return packleator.run();
121
+ _context.prev = 6;
122
+ _context.next = 9;
123
+ return regeneratorRuntime.awrap(packleator.getPackageJson());
141
124
 
142
- case 11:
143
- _context.next = 16;
144
- break;
125
+ case 9:
126
+ _context.next = 11;
127
+ return regeneratorRuntime.awrap(packleator.run());
128
+
129
+ case 11:
130
+ _context.next = 16;
131
+ break;
145
132
 
146
- case 13:
147
- _context.prev = 13;
148
- _context.t0 = _context["catch"](6);
149
- console.error(_context.t0.message);
133
+ case 13:
134
+ _context.prev = 13;
135
+ _context.t0 = _context["catch"](6);
136
+ console.error(_context.t0.message);
150
137
 
151
- case 16:
152
- case "end":
153
- return _context.stop();
154
- }
138
+ case 16:
139
+ case "end":
140
+ return _context.stop();
155
141
  }
156
- }, _callee, null, [[6, 13]]);
157
- }));
158
- return _main.apply(this, arguments);
142
+ }
143
+ }, null, null, [[6, 13]]);
159
144
  }
160
145
 
161
146
  main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "1.12.6",
3
+ "version": "1.12.7",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,33 +32,33 @@
32
32
  "author": "Leverege Devs",
33
33
  "license": "SEE LICENSE IN LICENSE.md",
34
34
  "dependencies": {
35
- "@google-cloud/kms": "^1.3.1",
36
- "async": "^2.6.2",
35
+ "@google-cloud/kms": "^1.5.1",
36
+ "async": "^2.6.3",
37
37
  "chalk": "^2.4.2",
38
- "cloudflare": "^2.4.1",
38
+ "cloudflare": "^2.7.0",
39
39
  "command-line-args": "^5.1.1",
40
40
  "command-line-usage": "^5.0.5",
41
- "commander": "^2.20.0",
41
+ "commander": "^2.20.3",
42
42
  "fs-extra": "^8.1.0",
43
43
  "git-branch": "^2.0.1",
44
- "glob": "^7.1.4",
44
+ "glob": "^7.1.6",
45
45
  "js-yaml": "^3.13.1",
46
46
  "ora": "^3.4.0",
47
47
  "parse-gitignore": "^1.0.1",
48
- "readline-sync": "^1.4.9",
48
+ "readline-sync": "^1.4.10",
49
49
  "recursive-copy": "^2.0.10",
50
- "regenerator-runtime": "^0.13.2",
51
- "semver": "^6.2.0",
52
- "tar": "^4.4.10"
50
+ "regenerator-runtime": "^0.13.3",
51
+ "semver": "^6.3.0",
52
+ "tar": "^4.4.13"
53
53
  },
54
54
  "devDependencies": {
55
- "@babel/cli": "^7.6.0",
56
- "@babel/core": "^7.6.0",
57
- "@babel/plugin-proposal-class-properties": "^7.5.0",
55
+ "@babel/cli": "^7.7.0",
56
+ "@babel/core": "^7.7.2",
57
+ "@babel/plugin-proposal-class-properties": "^7.7.0",
58
58
  "@babel/plugin-proposal-optional-chaining": "^7.6.0",
59
- "@babel/preset-env": "^7.6.0",
60
- "@babel/register": "^7.6.0",
61
- "@leverege/eslint-config-leverege": "^1.5.3",
62
- "core-js": "^3.2.1"
59
+ "@babel/preset-env": "^7.7.1",
60
+ "@babel/register": "^7.7.0",
61
+ "@leverege/eslint-config-leverege": "^2.0.0",
62
+ "core-js": "^3.4.1"
63
63
  }
64
64
  }
package/src/circleate CHANGED
@@ -375,7 +375,7 @@ jobs:
375
375
 
376
376
  - run:
377
377
  name: Check if coverage meets at least 70%
378
- command: ./node_modules/.bin/nyc check-coverage --branches 70 --functions 70 --lines 70 --statements 70
378
+ command: ./node_modules/.bin/nyc check-coverage --functions 70 --lines 70 --statements 70
379
379
 
380
380
  - run:
381
381
  name: Generate docs
package/src/dockreate CHANGED
@@ -38,7 +38,7 @@ strip_undefined() {
38
38
  }
39
39
 
40
40
  # Useful links with information regarding k8s/docker/nodejs and PID 1
41
- # No PID 1 for NodeJS => https://bit.ly/2Txi9Jq
41
+ # No PID 1 for NodeJS => https://bit.ly/2r4gHkZ
42
42
  # What tini is all about => https://bit.ly/2HsSxqP
43
43
  # Graceful kills with k8s => https://bit.ly/2NONEJG
44
44
  #
@@ -104,7 +104,6 @@ create_bashrc() {
104
104
  #
105
105
  # Version $1 @ `date`
106
106
 
107
- alias golog='cd /var/log/levlog;ls -l'
108
107
  alias h=history
109
108
 
110
109
  alias ls='ls -CF --color=auto'
@@ -113,18 +112,15 @@ alias lla='ls -lha'
113
112
  alias ltr='ls -CF --color=auto -lthr'
114
113
  alias genv='env | grep -i'
115
114
  alias glep='grep -l -s'
116
- alias golog='cd /var/log/levlog'
117
115
  alias m=less
118
116
  alias menv='env | sort | less'
119
117
 
120
118
  alias whatsmyip='wget -qO- ifconfig.co'
121
119
 
122
- alias rcli='redis-cli -h \${DATABASES_REDIS_SERVICE_HOST}'
123
-
124
- alias buny='/usr/src/app/node_modules/bunyan/bin/bunyan'
125
- alias bunlog='golog;cat *-1.log | buny | m'
126
120
  alias dbg='wget -q -O- localhost:5111/logLevel/debug'
127
121
  alias inf='wget -q -O- localhost:5111/logLevel/info'
122
+ alias err='wget -q -O- localhost:5111/logLevel/error'
123
+ alias wrn='wget -q -O- localhost:5111/logLevel/warn'
128
124
 
129
125
  loglev()
130
126
  {
@@ -136,7 +132,7 @@ loglev()
136
132
  logl="logLevel/\$1"
137
133
  fi
138
134
 
139
- printf "Running=> \$wget/\$logl\n"
135
+ printf "Running=> \$wget/\${logl}\n"
140
136
  printf "\n\`\$wget/\$logl\`\n\n"
141
137
  }
142
138
  EOBASHRC
package/src/helmup CHANGED
@@ -355,10 +355,13 @@ function doInstall() {
355
355
  fi
356
356
  HELMUP="helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml $CHARTVER"
357
357
  printf "Helming => `color g \"$HELMUP\"`\n" && $HELMUP
358
- if [ $? -ne 0 ];
358
+ SAVERR=$?
359
+ if [ $SAVERR -ne 0 ];
359
360
  then
360
361
  cat<<NOTRUNNING
361
362
 
363
+ $RED_ERROR helm exited with error status: $SAVERR
364
+
362
365
  $RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
363
366
  issue with the service's helm charts, or chartmuseum may not be
364
367
  up and running? If the latter, try firing it up with: