This file contains hidden or 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
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
S3BUCKETNAME="$1" | |
else | |
echo ERROR: Failed to supply S3 bucket name | |
exit 1 | |
fi | |
aws s3 sync build s3://$S3BUCKETNAME --delete --cache-control max-age=31536000,public |
This file contains hidden or 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
// bind a computed property getter&setter to Vuex state&mutation | |
// install it with `Vue.use(VuexComputed)` after `Vue.use(Vuex, ...)` line | |
const VuexComputed = { | |
install (Vue) { | |
/** | |
* computed property factory | |
* @param {String} statePropName state property name in Vuex store | |
* @param {String} mutationType name of mutation updating state property | |
* @param {Number} [debounce=false] wait time argument passed to lodash debounce function | |
* @return {Object} the new computed property to inject |