Support react-refresh and shared client/server types (#98)
- Adds support for react-refresh through `@pmmwh/react-refresh-webpack-plugin`. Updated webpack config to support this. Means entire app is no longer refreshed on changes, only individual components, and state is maintained. - React refresh removes need for `google-apps-script-webpack-dev-server` package - In client code, support for server function autocomplete through use of gas-client 1.0.0. Requires certain files to be typescript .ts files - Remove need for "global" exports in main server file through updated gas-webpack-plugin
This commit is contained in:
+7
-7
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-google-apps-script",
|
||||
"version": "2.0.0",
|
||||
"version": "2.1.0",
|
||||
"description": "Starter project for using React with Google Apps Script",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -34,7 +34,6 @@
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"gas-client": "^0.2.1",
|
||||
"prop-types": "^15.7.2",
|
||||
"react": "^17.0.2",
|
||||
"react-bootstrap": "^1.3.0",
|
||||
@@ -51,7 +50,8 @@
|
||||
"@babel/polyfill": "^7.10.4",
|
||||
"@babel/preset-env": "^7.11.0",
|
||||
"@babel/preset-react": "^7.10.4",
|
||||
"@google/clasp": "^2.3.1",
|
||||
"@google/clasp": "2.3.1",
|
||||
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
|
||||
"@types/expect-puppeteer": "^4.4.6",
|
||||
"@types/jest-environment-puppeteer": "^4.4.1",
|
||||
"@types/puppeteer": "^5.4.4",
|
||||
@@ -66,11 +66,10 @@
|
||||
"css-loader": "^3.6.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"dynamic-cdn-webpack-plugin": "^5.0.0",
|
||||
"eslint": "^6.8.0",
|
||||
"eslint": "^8.11.0",
|
||||
"eslint-config-airbnb-base": "^14.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-loader": "^3.0.4",
|
||||
"eslint-plugin-babel": "^5.3.1",
|
||||
"eslint-plugin-googleappsscript": "^1.0.3",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
@@ -81,10 +80,10 @@
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.20.5",
|
||||
"eslint-plugin-standard": "^4.0.1",
|
||||
"gas-client": "^1.0.0",
|
||||
"gas-lib": "^2.0.3",
|
||||
"gas-types-detailed": "^1.0.0",
|
||||
"gas-webpack-plugin": "^1.0.4",
|
||||
"google-apps-script-webpack-dev-server": "^1.0.0",
|
||||
"gas-webpack-plugin": "^1.2.3",
|
||||
"html-webpack-inline-source-plugin": "0.0.10",
|
||||
"html-webpack-plugin": "^3.2.0",
|
||||
"jest": "^27.5.1",
|
||||
@@ -95,6 +94,7 @@
|
||||
"puppeteer": "^13.4.1",
|
||||
"puppeteer-extra": "^3.2.3",
|
||||
"puppeteer-extra-plugin-stealth": "^2.9.0",
|
||||
"react-refresh": "^0.10.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"style-loader": "^1.2.1",
|
||||
"tern": "^0.24.3",
|
||||
|
||||
Reference in New Issue
Block a user