@leverege/build-tools 2.5.39 → 2.5.41
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/repo-init/config.tgz +0 -0
- package/package.json +7 -7
- package/src/bash-funcs +13 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.41",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"command-line-args": "^5.1.1",
|
|
57
57
|
"command-line-usage": "^6.1.1",
|
|
58
58
|
"dotenv": "^9.0.2",
|
|
59
|
-
"execa": "^5.
|
|
59
|
+
"execa": "^5.1.1",
|
|
60
60
|
"figlet": "^1.5.0",
|
|
61
61
|
"git-branch": "^2.0.1",
|
|
62
62
|
"glob": "^7.1.7",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"js-yaml": "^4.1.0",
|
|
65
65
|
"kubernetes-client": "^9.0.0",
|
|
66
66
|
"ncp": "^2.0.0",
|
|
67
|
-
"npm-check-updates": "^11.
|
|
67
|
+
"npm-check-updates": "^11.6.0",
|
|
68
68
|
"npm-registry-fetch": "^9.0.0",
|
|
69
|
-
"open": "^8.0
|
|
69
|
+
"open": "^8.2.0",
|
|
70
70
|
"ora": "^5.4.0",
|
|
71
71
|
"parse-gitignore": "^1.0.1",
|
|
72
72
|
"readline-sync": "^1.4.10",
|
|
@@ -74,11 +74,11 @@
|
|
|
74
74
|
"simple-git": "^2.39.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.
|
|
78
|
-
"@babel/core": "^7.14.
|
|
77
|
+
"@babel/cli": "^7.14.3",
|
|
78
|
+
"@babel/core": "^7.14.3",
|
|
79
79
|
"@babel/node": "^7.14.2",
|
|
80
80
|
"@leverege/babel-preset-leverege-node": "^1.1.1",
|
|
81
81
|
"@leverege/eslint-config-leverege": "^2.2.0",
|
|
82
|
-
"npm": "^7.
|
|
82
|
+
"npm": "^7.16.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/bash-funcs
CHANGED
|
@@ -70,3 +70,16 @@ function setOrUnset() {
|
|
|
70
70
|
[ ! -z "$1" ] && setting=`color g $1`
|
|
71
71
|
echo "$setting"
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
function getManagedSecret() {
|
|
75
|
+
local SECNAME=$1
|
|
76
|
+
local PROJECT="${2:-leverege-docker-images}"
|
|
77
|
+
SECRET=$(gcloud secrets versions access latest --secret="$SECNAME" --project=$PROJECT)
|
|
78
|
+
if [ $? -ne 0 ];
|
|
79
|
+
then
|
|
80
|
+
printf "This failed=>[gcloud secrets versions access latest --secret="$SECNAME" --project=$PROJECT]\n"
|
|
81
|
+
printf "Returned =>[$SECRET]\n\n"
|
|
82
|
+
exit 1
|
|
83
|
+
fi
|
|
84
|
+
echo $SECRET
|
|
85
|
+
}
|