-
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
Showing
136 changed files
with
2,902 additions
and
2,833 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 |
---|---|---|
|
@@ -38,7 +38,7 @@ workflows: | |
- build | ||
- deploy: | ||
name: Deploy (demo) | ||
context: "AWS Deploy" | ||
context: AWS Deploy | ||
<<: *filter_demo | ||
tag: demo | ||
requires: | ||
|
@@ -47,7 +47,7 @@ workflows: | |
- test_cypress | ||
- deploy: | ||
name: Deploy (prod) | ||
context: "AWS Deploy" | ||
context: AWS Deploy | ||
env: prod | ||
<<: *filter_prod | ||
requires: | ||
|
@@ -56,24 +56,24 @@ workflows: | |
- test_cypress | ||
- cf-function-deploy: | ||
name: Deploy CloudFront Functions (demo) | ||
context: "AWS Deploy" | ||
context: AWS Deploy | ||
env: demo | ||
<<: *filter_demo | ||
requires: | ||
- test | ||
- test_nginx | ||
- test_cypress | ||
- "Deploy (demo)" | ||
- Deploy (demo) | ||
- cf-function-deploy: | ||
name: Deploy CloudFront Functions (prod) | ||
context: "AWS Deploy" | ||
context: AWS Deploy | ||
env: prod | ||
<<: *filter_prod | ||
requires: | ||
- test | ||
- test_nginx | ||
- test_cypress | ||
- "Deploy (prod)" | ||
- Deploy (prod) | ||
|
||
jobs: | ||
# Note (allie): This is its own job because I don't | ||
|
@@ -130,11 +130,11 @@ jobs: | |
parameters: | ||
env: | ||
type: enum | ||
default: "demo" | ||
enum: ["demo", "prod"] | ||
default: demo | ||
enum: [demo, prod] | ||
tag: | ||
type: string | ||
default: "" | ||
default: '' | ||
steps: | ||
- checkout | ||
- run: | ||
|
@@ -154,11 +154,11 @@ jobs: | |
parameters: | ||
env: | ||
type: enum | ||
default: "demo" | ||
enum: ["demo", "prod"] | ||
default: demo | ||
enum: [demo, prod] | ||
tag: | ||
type: string | ||
default: "" | ||
default: '' | ||
steps: | ||
- checkout | ||
- setup_npmrc | ||
|
@@ -196,8 +196,8 @@ jobs: | |
parameters: | ||
env: | ||
type: enum | ||
default: "demo" | ||
enum: ["demo", "prod"] | ||
default: demo | ||
enum: [demo, prod] | ||
steps: | ||
- checkout: | ||
path: ~/project | ||
|
@@ -207,7 +207,7 @@ jobs: | |
environment: | ||
ENV: <<parameters.env>> | ||
command: | | ||
for x in *.js; do | ||
for x in *.js; do | ||
functionName=$(basename $x .js) | ||
aws cloudfront describe-function --name $functionName-$ENV > /dev/null 2>&1 | ||
if [[ $? == 0 ]]; then | ||
|
@@ -229,7 +229,7 @@ jobs: | |
environment: | ||
ENV: <<parameters.env>> | ||
command: | | ||
for x in *.js; do | ||
for x in *.js; do | ||
functionName=$(basename $x .js) | ||
etag=$(aws cloudfront describe-function --name $functionName-$ENV --query 'ETag' --output text) | ||
aws cloudfront publish-function \ | ||
|
@@ -254,4 +254,4 @@ executors: | |
JOBS: 2 | ||
|
||
orbs: | ||
aws-cli: circleci/[email protected] | ||
aws-cli: circleci/[email protected] |
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,9 +1,9 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"comma-dangle": false, | ||
"parser": "vue", | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"endOfLine": "lf" | ||
} | ||
"semi": false, | ||
"singleQuote": true, | ||
"comma-dangle": false, | ||
"parser": "vue", | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"endOfLine": "lf" | ||
} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
module.exports = { | ||
presets: [['@babel/preset-env', {targets: {node: 'current'}}]], | ||
presets: [['@babel/preset-env', { targets: { node: 'current' } }]], | ||
env: { | ||
test: { | ||
plugins: [ | ||
'@babel/plugin-transform-runtime' | ||
] | ||
} | ||
} | ||
'@babel/plugin-transform-runtime', | ||
], | ||
}, | ||
}, | ||
} |
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.