Skip to content

Commit

Permalink
fix(ui): cp-stack-outputs before running build
Browse files Browse the repository at this point in the history
Also changed the order of the '@wizeline/serverless-amplify-plugin' to be after stack-output since our UI build command relies on stack-outputs.json
  • Loading branch information
brettstack committed May 5, 2020
1 parent f0e8607 commit b1268f2
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ dist
.DS_Store
stats.json
.serverless

.env.development
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

.cache
coverage
.webpack
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@semantic-release/github": "^7.0.5",
"@semantic-release/npm": "^7.0.5",
"@semantic-release/release-notes-generator": "^9.0.1",
"@wizeline/serverless-amplify-plugin": "^1.5.0",
"@wizeline/serverless-amplify-plugin": "^1.5.1",
"eslint": "^5.16.0 || ^6.1.0",
"eslint-config-airbnb": "^18.0.1",
"eslint-plugin-import": "^2.18.2",
Expand All @@ -53,4 +53,4 @@
"webpack": "^4.43.0"
},
"dependencies": {}
}
}
1 change: 1 addition & 0 deletions packages/ui/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start-cloud-api": "npm run cp-stack-outputs && react-scripts start",
"start": "npm run cp-stack-outputs && react-scripts start",
"cp-stack-outputs": "cp ../../stack-outputs.json ./src",
"build": "react-scripts build",
"build": "npm run cp-stack-outputs && react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"package": "serverless package && zip -r ui.zip build .serverless serverless.yaml package.json package-lock.json",
Expand Down
5 changes: 3 additions & 2 deletions serverless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ plugins:
- serverless-iam-roles-per-function
- serverless-webpack
- serverless-apigateway-service-proxy
# - '../serverless-amplify-plugin'
- '@wizeline/serverless-amplify-plugin'
# - serverless-plugin-split-stacks
- serverless-stack-output
- serverless-cloudside-plugin
- serverless-plugin-aws-alerts
# NOTE: serverless-amplify-plugin must be after serverless-stack-output, since the UI build command relies on stack-outputs.json
# - '../serverless-amplify-plugin'
- '@wizeline/serverless-amplify-plugin'
- serverless-offline

custom:
Expand Down

0 comments on commit b1268f2

Please sign in to comment.