Skip to content

Instantly share code, notes, and snippets.

@staylor
Last active October 12, 2018 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staylor/c2e665b8bb9704113e46c5e5028a6caa to your computer and use it in GitHub Desktop.
Save staylor/c2e665b8bb9704113e46c5e5028a6caa to your computer and use it in GitHub Desktop.
{
"scripts": {
"develop": "rimraf public && gatsby develop",
"auth": "gcloud auth login",
"project": "gcloud config set project $GCP_PROJECT",
"build": "rimraf public && gatsby build",
"upload": "gsutil -m rsync -r ./public $UPLOAD_URL",
"tasks": "yarn project && yarn build && yarn upload",
"dev": "env-cmd dev yarn develop",
"dev-static": "env-cmd dev-static yarn build",
"production": "env-cmd production yarn tasks"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment