Skip to content

Commit

Permalink
Added deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatoum committed Aug 19, 2020
1 parent 42519d6 commit 31952bf
Show file tree
Hide file tree
Showing 8 changed files with 1,286 additions and 5 deletions.
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Chimp
#
![Chimp by Xolv.io](./images/chimp.png?raw=true)
#

## Your Quality Faster Companion

Please go to http://chimpjs.com for documentation
# IMPORTANT ANNOUNCEMENT - July 22nd, 2018

The Chimp that you know and love is now being split into two separate projects, both of which are intended to help you deliver higher quality faster.

The first is [*Chimpy*](https://github.com/TheBrainFamily/chimpy). This project will continue evolving and supporting the current thinking behind Chimp 1.x.

The second is [*Chimp 2.0*](https://github.com/xolvio/chimp). This project will be built from scratch based on the learnings made while using Chimp 1.x in the field.

For more details about this decision, [please see the full announcement here.](https://medium.com/@sam_hatoum/the-future-of-chimp-js-e911f8e9aaa6)

## Chimp 2.0
Chimp 2.0 is likely to be a [Yeoman](http://yeoman.io/) for quality. The intention is to have Chimp be your companion that you can call on to help you create high quality code that is optimized for changes

## Quality Faster
Please checkout the new [Quality Faster](https://www.qualityfaster.com) guide where you can learn how to build quality in to your application across the full stack.

Anyone that purchased The Meteor Testing Manual will get this guide for free. [See here for the announcement](https://www.qualityfaster.com/landing/meteor-testing.html).

## Community
**Slack:** Please join our Slack [xolv.io/community](http://community.xolv.io) #chimp channel, where you can chat, find help and help others. (it might take a minute for the free Now.sh serverless function to start up!)
3 changes: 2 additions & 1 deletion documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "docusaurus start",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"deploy": "sh ./scripts/deployToS3.sh s3://www.chimpjs.com && yarn run invalidate",
"invalidate": "aws cloudfront create-invalidation --distribution-id $XOLVIO_WEBSITE_DISTRIBUTION_ID --paths \"/*\"",
"serve": "docusaurus serve"
},
"dependencies": {
Expand Down
11 changes: 11 additions & 0 deletions documentation/scripts/deployToS3.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
echo "Cleaning the bucket $1"

aws s3 rm $1 --recursive

#echo "Syncing gzipped files to bucket $1"
#aws s3 sync ./build/ $1 \
#--include "*" --acl public-read --cache-control max-age=31556926,public --content-encoding gzip \
#--delete \

echo "Syncing non-gzipped files to bucket $1"
aws s3 sync ./build/ $1 --acl public-read --cache-control max-age=31556926,public
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "The AWS CloudFormation template for this Serverless application",
"Resources": {
"ServerlessDeploymentBucket": {
"Type": "AWS::S3::Bucket",
"Properties": {
"BucketEncryption": {
"ServerSideEncryptionConfiguration": [
{
"ServerSideEncryptionByDefault": {
"SSEAlgorithm": "AES256"
}
}
]
}
}
},
"ServerlessDeploymentBucketPolicy": {
"Type": "AWS::S3::BucketPolicy",
"Properties": {
"Bucket": {
"Ref": "ServerlessDeploymentBucket"
},
"PolicyDocument": {
"Statement": [
{
"Action": "s3:*",
"Effect": "Deny",
"Principal": "*",
"Resource": [
{
"Fn::Join": [
"",
[
"arn:",
{
"Ref": "AWS::Partition"
},
":s3:::",
{
"Ref": "ServerlessDeploymentBucket"
},
"/*"
]
]
}
],
"Condition": {
"Bool": {
"aws:SecureTransport": false
}
}
}
]
}
}
}
},
"Outputs": {
"ServerlessDeploymentBucketName": {
"Value": {
"Ref": "ServerlessDeploymentBucket"
}
}
}
}

0 comments on commit 31952bf

Please sign in to comment.