-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend gulp task to publish to S3 #18
Comments
Hi! We would like to help. How about using https://github.com/pgherveou/gulp-awspublish ? |
Sure. That plugin looks good. Go ahead @mhrisse 🎇 |
Hi! There is also https://github.com/serverless/serverless-client-s3 which is on the original serverless repo, but does not work with v1.0 properly yet. It looks very simple, maybe the way to go? @mjzone |
@mhrisse Since it is not properly supported let's go with gulp-awspublish. |
If you check my edited gulpfile, https://github.com/99xt/serverless-react-boilerplate/blob/react-authenticate/gulpfile.js, I added a couple very simple tasks that webpack the app and sync to an s3 bucket using the AWS CLI. See tasks deploy-web, build-web, and sync-web-s3 It copies a webpack.[stage].config.js to webpack.config.js first so you can set up a different config for each environment. What I haven't done yet is create a way to change s3 buckets per stage, a simple conditional would suffice, but having point to env variables would be more elegant. |
No description provided.
The text was updated successfully, but these errors were encountered: