-
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.
Clean up npm scripts. Add app link to README.md.
- Loading branch information
1 parent
2df0b36
commit 608ec4e
Showing
6 changed files
with
251 additions
and
8 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 |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
/.spago | ||
dist | ||
public/bundle.* | ||
.s3cmd |
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,3 +1,4 @@ | ||
# Redexer | ||
|
||
Step through the reduction of an untyped lambda calculus term. | ||
Play with it [here](https://redexer.maxhallinan.com/). |
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,86 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Syncing images and fonts..." | ||
s3cmd sync \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=31557600" \ | ||
--include "*.png" \ | ||
--include "*.jpg" \ | ||
--include "*.gif" \ | ||
--include "*.ico" \ | ||
--include "*.eot" \ | ||
--include "*.svg" \ | ||
--include "*.ttf" \ | ||
--include "*.woff" \ | ||
--include "*.woff2" \ | ||
--include "*.otf" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing html..." | ||
s3cmd put \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--recursive \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=86400, must-revalidate" \ | ||
--add-header="Expires:access plus 1 day" \ | ||
--mime-type="text/html; charset=utf-8" \ | ||
--include "*.html" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing css..." | ||
s3cmd put \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--recursive \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=604800" \ | ||
--mime-type="text/css" \ | ||
--include "*.css" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing js..." | ||
s3cmd sync \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=604800" \ | ||
--mime-type="application/javascript" \ | ||
--include "*.js" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing json..." | ||
s3cmd sync \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=86400, must-revalidate" \ | ||
--mime-type="application/json" \ | ||
--include "*.json" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing xml..." | ||
s3cmd sync \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--exclude "*.*" \ | ||
--add-header="Cache-Control:public, max-age=2629800" \ | ||
--mime-type="application/xml" \ | ||
--include "*.xml" \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com | ||
|
||
echo "Syncing remaining and cleaning up..." | ||
s3cmd sync \ | ||
--acl-public \ | ||
--no-preserve \ | ||
--delete-removed \ | ||
-c .s3cmd \ | ||
dist/ s3://redexer.maxhallinan.com |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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