@candlerip/shared-devops 0.0.20 → 0.0.22

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/.env ADDED
@@ -0,0 +1,8 @@
1
+ APP_PORT=5000
2
+ AUTH0_BASE_URL=http://localhost:5000
3
+ AUTH0_CLIENT_ID=eYKLeReXC8Uk94vWpmCUNP8bqrkas4b9
4
+ AUTH0_CLIENT_SECRET=2I-H-lo6hp7WZGGTArGrjfx6-nZ-4MB12fvOA0IXmkUWWM6LvATGKe59dM3Juqrq
5
+ AUTH0_ISSUER_BASE_URL=https://candlerip-development.eu.auth0.com
6
+ AUTH0_SECRET=364e19b6ce657d7a1272bb3d2ce660c9cb32a3100eaa5da84ad57b80c65e1979
7
+ BACKEND_URL=http://localhost:5000/api
8
+ DATABASE_URL=mongodb+srv://candlerip:CandleRip_2023@cluster.g17bc5o.mongodb.net/development
@@ -1,10 +1,22 @@
1
1
  #!/bin/bash
2
2
  set -e
3
3
 
4
- PARAMS=$(aws ssm get-parameters --names ${1//,/ } --output text --query "Parameters[*].{Name:Name,Value:Value}" --with-decryption | sed -E 's/\s+/=/g')
4
+ ARRAY=(${1//,/ })
5
5
 
6
- PARAMS1="${PARAMS[@]//_DEVELOPMENT/}"
7
- PARAMS2="${PARAMS1[@]//_PRODUCTION/}"
6
+ NAMES_ARRAY[0]="${ARRAY[@]:0:10}"
7
+ NAMES_ARRAY[1]="${ARRAY[@]:10:20}"
8
+ NAMES_ARRAY[2]="${ARRAY[@]:20:30}"
9
+
10
+ ENVS=()
11
+ for NAMES in "${NAMES_ARRAY[@]}"
12
+ do
13
+ if [ -n "$NAMES" ]; then
14
+ PARAMS=$(aws ssm get-parameters --names $NAMES --output text --query "Parameters[*].{Name:Name,Value:Value}" --with-decryption | sed -E 's/\s+/=/g')
15
+ PARAMS1="${PARAMS[@]//_DEVELOPMENT/}"
16
+ PARAMS2="${PARAMS1[@]//_PRODUCTION/}"
17
+ ENVS+=("$PARAMS2")
18
+ fi
19
+ done
8
20
 
9
21
  if [[ $2 ]]
10
22
  then
@@ -13,4 +25,4 @@ else
13
25
  FILENAME=".env"
14
26
  fi
15
27
 
16
- printf "%s\n" "${PARAMS2[@]}" > $FILENAME
28
+ printf "%s\n" "${ENVS[@]}" > $FILENAME
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared-devops",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "crsd-create-env-file": "./environment/create-env-file.sh",
@@ -8,7 +8,6 @@
8
8
  "crsd-eslint": "./eslint/eslint.sh",
9
9
  "crsd-prettier": "./prettier/prettier.sh",
10
10
  "crsd-publish-to-npm": "./npm/publish-to-npm.sh",
11
- "crsd-update-shared-packages": "./npm/update-shared-packages.sh",
12
11
  "crsd-tsc-build": "./typescript/tsc-build.sh",
13
12
  "crsd-tsc-watch": "./typescript/tsc-watch.sh"
14
13
  },
@@ -1,11 +0,0 @@
1
- #!/bin/bash
2
-
3
- PACKAGES=( @candlerip/shared4 @candlerip/shared-devops )
4
- for PACKAGE in "${PACKAGES[@]}"
5
- do
6
- npm list --depth=0 | grep $PACKAGE
7
- success=$?
8
- if [ $success == 0 ]; then
9
- npm i $PACKAGE@latest
10
- fi
11
- done