Skip to content

Commit

Permalink
React Project Configuration for Github Pages and Using Build as Stati…
Browse files Browse the repository at this point in the history
…c files
  • Loading branch information
kevintamakuwala committed Oct 17, 2023
1 parent ab1080f commit 2894cb8
Show file tree
Hide file tree
Showing 30 changed files with 176 additions and 115 deletions.
2 changes: 1 addition & 1 deletion components.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</nav>

<div class="wrapper" id="component-items">

<!-- components will be fetched here -->

</div>
Expand Down
11 changes: 5 additions & 6 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@
},
{
"name" : "Contact Form",
"url" :"/components/contact_form" ,
"url" :"/components/contact_form",
"authorName" : "NaitikPatel-325",
"imgUrl" : "./images/contact.png "
}
,
"imgUrl" : "./images/contact.png "
},
{
"name" : "Sliders",
"url" :"http://192.168.137.1:3000/slider" ,
"url" :"/components/react/build/?slider",
"authorName" : "kevintamakuwala",
"imgUrl" : "./images/slider.png "
"imgUrl" : "./images/slider.png"
}

]
19 changes: 0 additions & 19 deletions components/react-components/src/App.js

This file was deleted.

33 changes: 0 additions & 33 deletions components/react-components/src/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions components/react-components/src/pages/layout/Layout.jsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions components/react/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"files": {
"main.css": "/components/react/build/static/css/main.7c33173d.css",
"main.js": "/components/react/build/static/js/main.418486b6.js",
"index.html": "/components/react/build/index.html",
"main.7c33173d.css.map": "/components/react/build/static/css/main.7c33173d.css.map",
"main.418486b6.js.map": "/components/react/build/static/js/main.418486b6.js.map"
},
"entrypoints": [
"static/css/main.7c33173d.css",
"static/js/main.418486b6.js"
]
}
1 change: 1 addition & 0 deletions components/react/build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="React Components"/><link rel="manifest" href="/components/react/build/manifest.json"/><title>React Components</title><script defer="defer" src="/components/react/build/static/js/main.418486b6.js"></script><link href="/components/react/build/static/css/main.7c33173d.css" rel="stylesheet"></head><body><noscript>React Based Components</noscript><div id="root"></div></body></html>
File renamed without changes.
2 changes: 2 additions & 0 deletions components/react/build/static/css/main.7c33173d.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2894cb8

Please sign in to comment.