forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Elad Ben-Israel
committed
May 31, 2018
1 parent
b340201
commit 82bfbb9
Showing
8 changed files
with
73 additions
and
10 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
node_modules | ||
lerna-debug.log | ||
dist | ||
pack | ||
|
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,45 @@ | ||
|
||
#!/bin/bash | ||
# Creates our beta bundle for the CDK. | ||
# Assume we have a bootstrapped and packaged repository | ||
set -euo pipefail | ||
root=$PWD | ||
|
||
staging="$(mktemp -d)" | ||
cd ${staging} | ||
|
||
echo "Staging: ${staging}" | ||
|
||
# Bundle structure | ||
# ================ | ||
# | ||
# + bin | ||
# + docs | ||
# + repo | ||
# + npm | ||
# + maven | ||
# + node_modules | ||
# | ||
|
||
# Create a local npm repository | ||
mkdir -p repo/npm | ||
rsync -aL ${root}/pack/*.tgz repo/npm # cdk modules | ||
rsync -aL ${root}/local-npm/*.tgz repo/npm # jsii modules | ||
|
||
# Create a local maven repository | ||
mkdir -p repo/maven | ||
cp ${root}/packages/aws-cdk-java/target/*.jar repo/maven | ||
|
||
# Deploy the docs website to docs/ | ||
rsync -a ${root}/packages/aws-cdk-docs/dist/docs/ ./docs | ||
|
||
# Bootstrap a production-ready node_modules closure with all npm modules (jsii and CDK) | ||
npm install --global-style --production --no-save repo/npm/*.tgz | ||
|
||
# Symlink 'bin' to the root | ||
ln -s node_modules/.bin bin | ||
|
||
# Copy to ./dist | ||
dist=${root}/dist | ||
rm -fr ${dist} | ||
rsync -av ${staging}/ ${dist} |
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,10 @@ | ||
#!/bin/bash | ||
set -e | ||
export PATH=$PWD/node_modules/.bin:$PATH | ||
|
||
packdir="$PWD/pack" | ||
rm -fr ${packdir} | ||
mkdir -p ${packdir} | ||
|
||
lerna ls | grep -v "private" | cut -d" " -f1 | xargs -n1 -I{} \ | ||
lerna exec --scope {} --stream -- "npm pack && mv *.tgz ${packdir}" |
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