Skip to content

Commit cd11c72

Browse files
committed
get rid of buggy firebase and deploy to cloudfront instead
1 parent 3872f11 commit cd11c72

File tree

4 files changed

+22
-18
lines changed

4 files changed

+22
-18
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Taskbase Angular Libraries
22

3-
Some Angular libraries used at Taskbase. See demos at https://taskbase-angular-libraries.firebaseapp.com
3+
Some Angular libraries used at Taskbase. See demos at https://angular-libraries-demo.taskbase.com
4+

deploy.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
if [ "${1}" == "dev" ]; then
6+
echo "there is no dev"
7+
elif [ "${1}" == "prod" ]; then
8+
echo "deploying to prod"
9+
CLOUDFRONT_DISTRIBUTION_ID="EG01URWC7FNFD"
10+
CLOUDFRONT_S3_BUCKET="s3://cf-tb-taskbase-angular-libraries/"
11+
else
12+
echo "Expected prod as argument"
13+
exit 0
14+
fi
15+
16+
aws s3 cp ./dist/angular-libraries-demo/ $CLOUDFRONT_S3_BUCKET --recursive # use trailing slash to copy contents of directory!
17+
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
18+
echo "Done!"
19+

firebase.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

projects/angular-keyboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@taskbase/angular-keyboard",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"peerDependencies": {
55
"@angular/common": "^8.1.3",
66
"@angular/core": "^8.1.3"

0 commit comments

Comments
 (0)