Skip to content

Commit

Permalink
Merge pull request #777 from awslabs/bump/2.19.0
Browse files Browse the repository at this point in the history
chore(release): 2.19.0
  • Loading branch information
biffgaut authored Aug 24, 2022
2 parents 1adcc5d + e72906b commit de21a34
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.19.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.18.0...v2.19.0) (2022-08-24)

(no changes in this release)

## [2.18.0](https://github.com/awslabs/aws-solutions-constructs/compare/v2.17.0...v2.18.0) (2022-08-19)

(no changes in this release)
Expand Down
11 changes: 5 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,16 @@ docker$ ./deployment/build-patterns.sh

### Partial Build

First run a clean Full Build before doing the partial build.
First run a clean Full Build before doing the partial build (the full build installs all the tools required
to build the library). Once you've initialized the Docker container by running a full build, you can
build and test individual constructs by following the steps below.

```console
$ cd <root-of-aws-solutions-constructs-repo>
$ docker run -u root --rm --net=host -it -v $PWD:$PWD -w $PWD jsii/superchain:1-buster-slim-node14
docker$ ./deployment/align-version.sh
docker$ cd source
docker$ export PATH=$(npm bin):$PATH
docker$ cd patterns/@aws-solutions-constructs/my-module
docker$ source ./deployment/v2/allow-partial-builds.sh
docker$ cd my-module
docker$ npm run build+lint+test
docker$ ../../../../deployment/align-version.sh revert
```

## Code of Conduct
Expand Down
8 changes: 8 additions & 0 deletions deployment/align-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash
echo !!!!!!!!!!!!!!!!!!!!
echo
echo Building V1 from the main branch is deprecated.
echo
echo Run source ./deployment/v2/align-version.sh to prepare the development environment for V2
echo
exit 1

set -euo pipefail

deployment_dir=$(cd $(dirname $0) && pwd)
Expand Down
7 changes: 7 additions & 0 deletions deployment/allow-partial-builds.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
echo !!!!!!!!!!!!!!!!!!!!
echo
echo Building V1 from the main branch is deprecated.
echo
echo Run source ./deployment/v2/allow-partial-build.sh to prepare the development environment for V2
echo
exit 1

result=${PWD##*/} # to assign to a variable

Expand Down
8 changes: 8 additions & 0 deletions deployment/build-patterns.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/bash
echo !!!!!!!!!!!!!!!!!!!!
echo
echo Building V1 from the main branch is deprecated.
echo
echo Run ./deployment/v2/build-patterns.sh to do a V2 build
echo
exit 1

set -euo pipefail

deployment_dir=$(cd $(dirname $0) && pwd)
Expand Down
26 changes: 26 additions & 0 deletions deployment/v2/allow-partial-builds.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

result=${PWD##*/} # to assign to a variable

(return 0 2>/dev/null) && sourced=1 || sourced=0

if [ $sourced -ne 1 ]
then
echo
echo
echo 'Error - You must run this script with the source directive:'
echo
echo ' source ./deployment/v2/allow-partial-builds.sh'
echo
elif [ $result != 'aws-solutions-constructs' ]
then
echo
echo
echo 'Error - You must run this script from the aws-solutions-constructs folder.'
echo
else
./deployment/v2/align-version.sh
cd source
export PATH=$(npm bin):$PATH
cd patterns/@aws-solutions-constructs
fi
2 changes: 1 addition & 1 deletion source/lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"./patterns/@aws-solutions-constructs/*"
],
"rejectCycles": "true",
"version": "2.18.0"
"version": "2.19.0"
}

0 comments on commit de21a34

Please sign in to comment.