From 1418bb58edb65f8980c82bd4167282c78db7db6d Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Wed, 12 Jan 2022 22:17:03 +1100 Subject: [PATCH] Finished creating project without using create-react-app, i.e. following 5.5.1, 5.5.2 --- recipes-app/.babelrc | 3 + recipes-app/.gitignore | 72 + recipes-app/.vscode/settings.json | 1 + recipes-app/dist/assets/bundle.js | 2 + recipes-app/dist/assets/bundle.js.LICENSE.txt | 32 + recipes-app/dist/index.html | 11 + recipes-app/dist/main.js | 32 + recipes-app/package-lock.json | 7658 +++++++++++++++++ recipes-app/package.json | 26 + recipes-app/src/components/Ingredient.js | 9 + recipes-app/src/components/IngredientsList.js | 12 + recipes-app/src/components/Instructions.js | 12 + recipes-app/src/components/Menu.js | 17 + recipes-app/src/components/Recipe.js | 13 + recipes-app/src/data/recipes.json | 36 + recipes-app/src/index.js | 6 + recipes-app/webpack.config.js | 12 + 17 files changed, 7954 insertions(+) create mode 100644 recipes-app/.babelrc create mode 100644 recipes-app/.gitignore create mode 100644 recipes-app/.vscode/settings.json create mode 100644 recipes-app/dist/assets/bundle.js create mode 100644 recipes-app/dist/assets/bundle.js.LICENSE.txt create mode 100644 recipes-app/dist/index.html create mode 100644 recipes-app/dist/main.js create mode 100644 recipes-app/package-lock.json create mode 100644 recipes-app/package.json create mode 100644 recipes-app/src/components/Ingredient.js create mode 100644 recipes-app/src/components/IngredientsList.js create mode 100644 recipes-app/src/components/Instructions.js create mode 100644 recipes-app/src/components/Menu.js create mode 100644 recipes-app/src/components/Recipe.js create mode 100644 recipes-app/src/data/recipes.json create mode 100644 recipes-app/src/index.js create mode 100644 recipes-app/webpack.config.js diff --git a/recipes-app/.babelrc b/recipes-app/.babelrc new file mode 100644 index 0000000..456751f --- /dev/null +++ b/recipes-app/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["@babel/preset-env", "@babel/preset-react"] +} \ No newline at end of file diff --git a/recipes-app/.gitignore b/recipes-app/.gitignore new file mode 100644 index 0000000..1e351b1 --- /dev/null +++ b/recipes-app/.gitignore @@ -0,0 +1,72 @@ +# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig + +# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,react +# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,react + +### react ### +.DS_* +*.log +logs +**/*.backup.* +**/*.back.* + +node_modules +bower_components + +*.sublime* + +psd +thumb +sketch + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# Support for Project snippet scope + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,react + +# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) + diff --git a/recipes-app/.vscode/settings.json b/recipes-app/.vscode/settings.json new file mode 100644 index 0000000..fc03454 --- /dev/null +++ b/recipes-app/.vscode/settings.json @@ -0,0 +1 @@ +{"prettier.tabWidth": 2} \ No newline at end of file diff --git a/recipes-app/dist/assets/bundle.js b/recipes-app/dist/assets/bundle.js new file mode 100644 index 0000000..c062d7a --- /dev/null +++ b/recipes-app/dist/assets/bundle.js @@ -0,0 +1,2 @@ +/*! For license information please see bundle.js.LICENSE.txt */ +(()=>{"use strict";var e={962:(e,t,n)=>{var r=n(294),l=n(935);function a(e){var t=e.amount,n=e.measurement,l=e.name;return r.createElement("li",null,t," ",n," ",l)}function o(){return o=Object.assign||function(e){for(var t=1;t{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function l(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,u,i=l(e),s=1;s{var r=n(294),l=n(418),a=n(840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n