-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
652 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Each line is a file pattern followed by one or more owners. | ||
|
||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @hnishar will be requested for review when someone opens a pull request. | ||
* @hnishar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# VSCode extension | ||
.vscode/ | ||
/.favorites.json | ||
|
||
# TypeScript incremental build states | ||
*.tsbuildinfo | ||
|
||
# Local state files & OS specifics | ||
.DS_Store | ||
node_modules/ | ||
source/**/package-lock.json | ||
|
||
# CDK Context & Staging files | ||
cdk.context.json | ||
.cdk.staging/ | ||
cdk.out/ | ||
*.tabl.json | ||
|
||
source/patterns/**/tsconfig.json | ||
deployment/dist/* | ||
.DS_Store | ||
|
||
*.pptx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
deployment_dir="$PWD" | ||
source_dir="$deployment_dir/../source" | ||
dist_dir="$deployment_dir/dist" | ||
|
||
cd $source_dir/ | ||
export PATH=$(npm bin):$PATH | ||
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS:-}" | ||
|
||
echo "=============================================================================================" | ||
echo "packaging..." | ||
time lerna run --bail --stream jsii-pacmak || fail | ||
cd $deployment_dir/ | ||
|
||
echo "------------------------------------------------------------------------------" | ||
echo "[Copy] CDK templates for all patterns into the deployment dir for CfnNagScan" | ||
echo "------------------------------------------------------------------------------" | ||
|
||
echo "mkdir -p $dist_dir" | ||
mkdir -p $dist_dir | ||
|
||
for subdir in $source_dir/patterns/\@aws-solutions-constructs/* ; do | ||
if [ -d "$subdir" -a `basename $subdir` != "node_modules" ]; then | ||
cd $subdir/test | ||
|
||
echo "Checking integ CFN templates in $subdir/test" | ||
cnt=`find . -name "*expected.json" -type f | wc -l` | ||
prefix=`basename $subdir` | ||
if [ "$prefix" != "core" ] | ||
then | ||
if [ "$cnt" -eq "0" ] | ||
then | ||
echo "************** [ERROR] ************* Did not find any integ CFN templates in $subdir; please add atleast one by writing an integ test case and running cdk-integ command to generate the CFN template for it" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo "Copying templates from $subdir/test" | ||
for i in `find . -name "*expected.json" -type f`; do | ||
prefix=`basename $subdir` | ||
suffix=`basename $i` | ||
cp $subdir/test/$i $dist_dir/$prefix-$suffix.template | ||
done | ||
cd $source_dir | ||
fi | ||
done | ||
|
||
echo "------------------------------------------------------------------------------" | ||
echo "[Copy] packages for all patterns into the deployment dir" | ||
echo "------------------------------------------------------------------------------" | ||
|
||
echo "mkdir -p $dist_dir" | ||
mkdir -p $dist_dir | ||
|
||
for dir in $(find $source_dir/patterns/\@aws-solutions-constructs/ -name dist | grep -v node_modules | grep -v coverage); do | ||
echo "Merging ${dir} into ${dist_dir}" >&2 | ||
rsync -a $dir/ ${dist_dir}/ | ||
done | ||
|
||
echo "------------------------------------------------------------------------------" | ||
echo "[List] deployment/dist contents" | ||
echo "------------------------------------------------------------------------------" | ||
|
||
find $dist_dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,5 @@ | |
"./patterns/@aws-solutions-constructs/*" | ||
], | ||
"rejectCycles": "true", | ||
"version": "1.59.0" | ||
"version": "1.60.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.