Skip to content

Commit c2fded4

Browse files
committed
add tools and scripts required for local dev
1 parent e2b12bb commit c2fded4

File tree

2 files changed

+105
-110
lines changed

2 files changed

+105
-110
lines changed

package-lock.json

Lines changed: 98 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"@testing-library/jest-dom": "^4.2.4",
88
"@testing-library/react": "^9.3.2",
99
"@testing-library/user-event": "^7.1.2",
10+
"axios": "^0.19.2",
11+
"concurrently": "^5.3.0",
1012
"dynamodb-toolbox": "^0.2.0-beta.1",
13+
"http-proxy-middleware": "^1.0.5",
1114
"react": "^16.13.1",
1215
"react-dom": "^16.13.1",
1316
"react-router-dom": "^5.2.0",
@@ -17,11 +20,14 @@
1720
"serverless-cloudside-plugin": "^1.0.3",
1821
"serverless-esbuild": "^1.4.0",
1922
"serverless-export-outputs": "^1.0.2",
20-
"serverless-offline": "^6.5.0"
23+
"serverless-offline": "^6.5.0",
24+
"swr": "^0.3.0"
2125
},
2226
"scripts": {
2327
"test": "react-scripts test",
2428
"eject": "react-scripts eject",
29+
"start": "concurrently --kill-others 'npm run serverless:start' 'npm run watch:css && REACT_APP_CONNECT=http://localhost:4000 react-scripts start'",
30+
"serverless:start": "serverless offline start --noPrependStageInUrl --ignoreJWTSignature --httpPort 4000",
2531
"build:css": "NODE_ENV=production postcss src/assets/tailwind.css -o src/assets/main.css",
2632
"watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css",
2733
"website:start": "npm run watch:css && react-scripts start",

0 commit comments

Comments
 (0)