@leverege/build-tools 2.39.1 → 2.39.3
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/package.json +4 -3
- package/src/Utils.mjs +1 -0
- package/src/dockreate.sh +25 -2
- package/src/helmup.sh +6 -0
- package/src/overwhelm.mjs +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.3",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"getfbcfg": "src/getfbcfg.mjs",
|
|
25
25
|
"getjson": "src/getjson.mjs",
|
|
26
26
|
"git-tar": "src/git-tar.sh",
|
|
27
|
+
"helmcycle": "src/helmup.sh",
|
|
27
28
|
"helmdn": "src/helmdn.sh",
|
|
28
29
|
"helmup": "src/helmup.sh",
|
|
29
30
|
"helminit": "src/helmup.sh",
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"klog": "src/klog.sh",
|
|
36
37
|
"npm-link": "src/npm-link.sh",
|
|
37
38
|
"npm-unlink": "src/npm-unlink.sh",
|
|
38
|
-
"overwhelm": "src/overwhelm.
|
|
39
|
+
"overwhelm": "src/overwhelm.mjs",
|
|
39
40
|
"pkgck": "src/pkgck.sh",
|
|
40
41
|
"pkglint": "src/pkglint.sh",
|
|
41
42
|
"prune-git": "src/prune-git.sh",
|
|
@@ -68,6 +69,6 @@
|
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
71
|
"@leverege/eslint-config-leverege": "^4.2.0",
|
|
71
|
-
"npm": "^10.
|
|
72
|
+
"npm": "^10.1.0"
|
|
72
73
|
}
|
|
73
74
|
}
|
package/src/Utils.mjs
CHANGED
package/src/dockreate.sh
CHANGED
|
@@ -228,11 +228,34 @@ fi
|
|
|
228
228
|
# TODO: these should be combined into one require
|
|
229
229
|
nodeimg=$(packageJson '.leverege.nodeimg')
|
|
230
230
|
nodeimg="${nodeimg:-hydrogen-alpine}"
|
|
231
|
-
nodeops=$(packageJson '.leverege.nodeops')
|
|
232
231
|
apkadds=$(packageJson '.leverege.apkadds')
|
|
233
232
|
runuser=$(packageJson '.leverege.runuser')
|
|
234
233
|
[ -z "${runuser}" ] && runuser='node'
|
|
235
234
|
|
|
235
|
+
# DEPRECATED 09/11/2023
|
|
236
|
+
nodeops=$(packageJson '.leverege.nodeops')
|
|
237
|
+
if [ ! -z "$nodeops" ];
|
|
238
|
+
then
|
|
239
|
+
cat<<DEP_NODEOPS
|
|
240
|
+
|
|
241
|
+
Support for the node options being specified in the leverege section of
|
|
242
|
+
package.json has been deprecated in favor of using the `color g NODE_OPTIONS` env
|
|
243
|
+
variable in the helm/values.yaml chart. Remove this line from the leverege
|
|
244
|
+
section in package.json:
|
|
245
|
+
|
|
246
|
+
`color y "\"nodeops\" : \"$nodeops\""`
|
|
247
|
+
|
|
248
|
+
and then add this line to the config section of the service's helm chart
|
|
249
|
+
values.yaml file:
|
|
250
|
+
|
|
251
|
+
`color g "NODE_OPTIONS: \"\""`
|
|
252
|
+
|
|
253
|
+
and finally set it from values-local.yaml at deployment. Don't forget to
|
|
254
|
+
update the helm chart version and push it to the museum.
|
|
255
|
+
DEP_NODEOPS
|
|
256
|
+
yesToContinue "to ignore this warning"
|
|
257
|
+
fi
|
|
258
|
+
|
|
236
259
|
npmlogging='--silent' # allow for verbose npm logs
|
|
237
260
|
if [ "$VERBOSE_DOCKREATE_NPM" == "yes" ];
|
|
238
261
|
then
|
|
@@ -351,7 +374,7 @@ cat<<IMGINFO
|
|
|
351
374
|
Project: $(color g $project)
|
|
352
375
|
Container: $(color g $container)
|
|
353
376
|
NodeImage: $(color g $nodeimg)
|
|
354
|
-
|
|
377
|
+
NodeOps: $(color r $nodeops) `color toast DEPRECATED`
|
|
355
378
|
AddedPkgs: $(color g $apkadds)
|
|
356
379
|
PluggedIn: ${pluggedIn}
|
|
357
380
|
Version: $(color g $version) $tagstat
|
package/src/helmup.sh
CHANGED
|
@@ -622,6 +622,7 @@ function doInstall() {
|
|
|
622
622
|
# helminit is used to redeploy an existing service
|
|
623
623
|
if [ "$INVOKED_AS" == "helminit" ] && [ -f "$SERVICE/helmup.plugin" ];
|
|
624
624
|
then
|
|
625
|
+
yesToContinue "if are you `color y certain` you want to run `color y helminit`"
|
|
625
626
|
local BACKUP_DIR="$SERVICE-bak"
|
|
626
627
|
if [ ! -d "$BACKUP_DIR" ];
|
|
627
628
|
then
|
|
@@ -639,6 +640,11 @@ CATBACKUP
|
|
|
639
640
|
fi
|
|
640
641
|
fi
|
|
641
642
|
|
|
643
|
+
if [ "$INVOKED_AS" == "helmcycle" ];
|
|
644
|
+
then
|
|
645
|
+
helmdn $SERVICE
|
|
646
|
+
fi
|
|
647
|
+
|
|
642
648
|
# If we're referencing a plugin then execute it and continue
|
|
643
649
|
ifPluggedIn $SERVICE && continue
|
|
644
650
|
|
package/src/overwhelm.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import parse from 'parse-gitignore'
|
|
|
15
15
|
import ask from 'readline-sync'
|
|
16
16
|
import YAML from 'js-yaml'
|
|
17
17
|
|
|
18
|
-
import { debug, log, shellCmd } from './Utils.mjs'
|
|
18
|
+
import { debug, err, log, shellCmd } from './Utils.mjs'
|
|
19
19
|
|
|
20
20
|
const optionsDefinitions = [
|
|
21
21
|
/* eslint-disable no-multi-spaces */
|
|
@@ -384,6 +384,6 @@ log( `\n\nExecuting: ${chalk.bold.yellow( cmd )}\n\n` )
|
|
|
384
384
|
try {
|
|
385
385
|
await shellCmd( cmd )
|
|
386
386
|
} catch ( error ) {
|
|
387
|
-
|
|
387
|
+
err( { error, cmd }, '***ERROR overwhelm' )
|
|
388
388
|
process.exit( 1 )
|
|
389
389
|
}
|