From ef4b8384fe3c5ef7afca86a424f84c82ce0bcf2c Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 8 Aug 2023 11:03:10 +0100 Subject: [PATCH] setup deploy --- .gitignore | 3 +++ node_modules/.cache/eslint-webpack-plugin/.eslintcache | 1 - package.json | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 node_modules/.cache/eslint-webpack-plugin/.eslintcache diff --git a/.gitignore b/.gitignore index 2f47b9b..f066513 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,6 @@ # Documentation here: https://yarnpkg.com/features/zero-installs #!.yarn/cache .pnp.* + +node_modules/ +build/ \ No newline at end of file diff --git a/node_modules/.cache/eslint-webpack-plugin/.eslintcache b/node_modules/.cache/eslint-webpack-plugin/.eslintcache deleted file mode 100644 index 776d175..0000000 --- a/node_modules/.cache/eslint-webpack-plugin/.eslintcache +++ /dev/null @@ -1 +0,0 @@ -[{"/Users/kieran/Documents/GitHub/zap_stream_admin/src/index.tsx":"1","/Users/kieran/Documents/GitHub/zap_stream_admin/src/layout.tsx":"2","/Users/kieran/Documents/GitHub/zap_stream_admin/src/pages/root.tsx":"3"},{"size":697,"mtime":1691422030506,"results":"4","hashOfConfig":"5"},{"size":6217,"mtime":1691422351490,"results":"6","hashOfConfig":"5"},{"size":52,"mtime":1691422005081,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","suppressedMessages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"11"},"sj259k",{"filePath":"12","messages":"13","suppressedMessages":"14","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"15","messages":"16","suppressedMessages":"17","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"11"},"/Users/kieran/Documents/GitHub/zap_stream_admin/src/index.tsx",[],[],[],"/Users/kieran/Documents/GitHub/zap_stream_admin/src/layout.tsx",[],[],"/Users/kieran/Documents/GitHub/zap_stream_admin/src/pages/root.tsx",[],[]] \ No newline at end of file diff --git a/package.json b/package.json index d270d49..0ce4482 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,9 @@ "name": "zap_stream_admin", "packageManager": "yarn@3.6.1", "scripts": { - "start": "webpack serve" + "start": "webpack serve", + "build": "webpack --node-env=production --mode=production", + "deploy": "wrangler pages publish build --project-name zap-stream-admin" }, "dependencies": { "react": "^18.2.0",