chore: add cloudflare worker emulator and supporting bits. now fully offline!

This commit is contained in:
41666 2020-12-11 21:09:55 -05:00
parent 6ddb3e3192
commit a44983b088
10 changed files with 601 additions and 258 deletions

View file

@ -26,7 +26,8 @@
"test": "jest",
"ui": "next dev -p 6601",
"ui:build": "next build",
"ui:prod": "cross-env next start -p ${PORT:-3000}"
"ui:prod": "cross-env next start -p ${PORT:-3000}",
"worker": "node src/backend-emulator/main.js"
},
"dependencies": {
"chroma-js": "^2.1.0",
@ -45,8 +46,8 @@
"devDependencies": {
"@babel/core": "^7.12.9",
"@cloudflare/workers-types": "^2.1.0",
"@cloudflare/wrangler": "^1.12.2",
"@icons/material": "^0.4.1",
"@peculiar/webcrypto": "^1.1.4",
"@storybook/addon-actions": "^6.1.10",
"@storybook/addon-essentials": "^6.1.10",
"@storybook/addon-links": "^6.1.10",
@ -72,6 +73,8 @@
"babel-jest": "^26.6.3",
"babel-loader": "^8.2.2",
"babel-plugin-styled-components": "^1.12.0",
"chokidar": "^3.4.3",
"dotenv": "^8.2.0",
"enzyme": "^3.11.0",
"enzyme-to-json": "^3.6.1",
"eslint": "^7.15.0",
@ -79,7 +82,6 @@
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-jsdoc": "^30.7.8",
"eslint-plugin-react": "^7.21.5",
"express": "^4.17.1",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"jest-environment-enzyme": "^7.1.2",
@ -92,6 +94,7 @@
"prettier-plugin-organize-imports": "^1.1.1",
"prettier-plugin-pkg": "^0.8.0",
"prettier-plugin-sh": "^0.6.0",
"redis": "^3.0.2",
"stylelint": "^13.8.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-standard": "^20.0.0",
@ -102,6 +105,6 @@
"ts-loader": "^8.0.11",
"tsconfig-paths-webpack-plugin": "^3.3.0",
"typescript": "^4.1.2",
"webpack": "^5.10.0"
"webpack": "4.33.0"
}
}