From afae7cafdaaba9c2e2d1a874678baa9d610ccde3 Mon Sep 17 00:00:00 2001 From: lukwarne Date: Thu, 16 Mar 2023 13:11:57 +1100 Subject: [PATCH] Release 1.1.3 --- CHANGELOG.md | 7 ++++++ README.md | 26 ++++++++++++++--------- deployment/build-s3-dist.sh | 2 +- source/aws-connect-vm-portal/package.json | 4 ++-- 4 files changed, 26 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0b802e..19044c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.3] - 2023-03-16 + +### Changed +- Modified 'Building distributable for customization' steps in README +- Updated Typescript dependency due to babel__traverse [issue](https://github.com/DefinitelyTyped/DefinitelyTyped/issues/63431) +- Run portal build with legacy [peerDependencies](https://stackoverflow.com/a/66620869/10141884) due to React update + ## [1.1.2] - 2023-01-25 ### Changed diff --git a/README.md b/README.md index 2a4b160..bd855f3 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,10 @@ We have added a new branch to this solution: the "development" branch. The "deve ## Running unit tests for customization * Clone the repository, then make the desired code changes +* Install jest +``` +npm install -g jest +``` * Next, run unit tests to make sure added customization passes the tests ``` cd ./source/aws-connect-vm-serverless @@ -19,17 +23,20 @@ export DIST_OUTPUT_BUCKET=my-bucket-name # bucket where customized code will res export SOLUTION_NAME=my-solution-name export VERSION=my-version # version number for the customized code ``` -_Note:_ You would have to create an S3 bucket with the prefix 'my-bucket-name-'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be publicly accessible. +_Note:_ You would have to create an S3 bucket with the name 'my-bucket-name-'; aws_region is where you are testing the customized solution. Also, the assets in bucket should be accessible from the accounts you will run the CloudFormation stack. +* The build script requires Maven and npm; please ensure you have both of these installed in your environment. * Now build the distributable: ``` -chmod +x ./build-s3-dist.sh \n -./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION \n +cd ./deployment +chmod +x ./build-s3-dist.sh +./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION ``` * Deploy the distributable to an Amazon S3 bucket in your account. _Note:_ you must have the AWS Command Line Interface installed. ``` -aws s3 cp ./dist/ s3://my-bucket-name-/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile aws-cred-profile-name \n +aws s3 cp ./regional-s3-assets s3://$DIST_OUTPUT_BUCKET-/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile +aws s3 cp ./global-s3-assets s3://$DIST_OUTPUT_BUCKET-/$SOLUTION_NAME/$VERSION/ --recursive --acl bucket-owner-full-control --profile ``` * Get the link of the solution template uploaded to your Amazon S3 bucket. @@ -41,13 +48,12 @@ aws s3 cp ./dist/ s3://my-bucket-name-/$SOLUTION_NAME/$VERSION/ --re ``` |-deployment/ - |-build-s3-dist.sh [ shell script for packaging distribution assets ] - |-run-unit-tests.sh [ shell script for executing unit tests ] - |-solution.yaml [ solution CloudFormation deployment template ] + |-build-s3-dist.sh [ shell script for packaging distribution assets ] + |-run-unit-tests.sh [ shell script for executing unit tests ] + |-voicemail-for-amazon-connect.template [ solution CloudFormation deployment template ] |-source/ - |-example-function-js [ Example microservice function in javascript ] - |- lib/ [ Example function libraries ] - |-example-function-py [ Example microservice function in python ] + |-aws-connect-vm-serverless [ Backend functions for processing voicemails ] + |-aws-connect-vm-portal [ Voicemail configuration portal ] ``` diff --git a/deployment/build-s3-dist.sh b/deployment/build-s3-dist.sh index bcf78c8..f7df975 100755 --- a/deployment/build-s3-dist.sh +++ b/deployment/build-s3-dist.sh @@ -78,7 +78,7 @@ echo $source_dir cd $source_dir/aws-connect-vm-serverless npm install cd ../aws-connect-vm-portal -npm install +npm install --legacy-peer-deps cd .. npm install typescript npm install react-dom diff --git a/source/aws-connect-vm-portal/package.json b/source/aws-connect-vm-portal/package.json index 76542d1..8bd926c 100755 --- a/source/aws-connect-vm-portal/package.json +++ b/source/aws-connect-vm-portal/package.json @@ -32,7 +32,7 @@ "redux-thunk": "^2.3.0", "request": "^2.88.0", "request-promise": "^4.2.4", - "typescript": "^3.6.4" + "typescript": "^4.9.5" }, "scripts": { "build": "sh -ac '. ./env/.env.prod; npx react-scripts build'", @@ -63,4 +63,4 @@ "remote-redux-devtools": "^0.5.16", "replace-in-file": "^5.0.2" } -} \ No newline at end of file +}