Skip to content

Commit

Permalink
add the frontend build to git so it can be easily released
Browse files Browse the repository at this point in the history
  • Loading branch information
hoggatt committed Sep 13, 2023
1 parent 1c0a07b commit e4c5f48
Show file tree
Hide file tree
Showing 16 changed files with 9,676 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/

# Distribution / packaging
build/
!st_combobox/frontend/build/
dist/
eggs/
.eggs/
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,11 @@ Streamlit key for unique component identification.
### Example

An example Streamlit app can be found [here](./example.py)

## Build

If any changes were made to the frontend, go to `st_combobox/frontend` and run `npm run build` (`npm install` if you don't have the packages on your machine). Then push the changes made to the `frontend/build` folder to the repo.

You may need to follow [this](https://stackoverflow.com/questions/69692842/error-message-error0308010cdigital-envelope-routinesunsupported) help if you run into issues while building.

Now all you have to do is make a release and the github action will push to PyPi (make sure `setup.py` has a new verison)
21 changes: 21 additions & 0 deletions st_combobox/frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"files": {
"main.js": "./static/js/main.70ce7f5a.chunk.js",
"main.js.map": "./static/js/main.70ce7f5a.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.1401e97d.js",
"runtime-main.js.map": "./static/js/runtime-main.1401e97d.js.map",
"static/js/2.7b601a3e.chunk.js": "./static/js/2.7b601a3e.chunk.js",
"static/js/2.7b601a3e.chunk.js.map": "./static/js/2.7b601a3e.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.da95221f85175e6df53938afa64e861a.js": "./precache-manifest.da95221f85175e6df53938afa64e861a.js",
"service-worker.js": "./service-worker.js",
"static/js/2.7b601a3e.chunk.js.LICENSE.txt": "./static/js/2.7b601a3e.chunk.js.LICENSE.txt",
"static/media/st-arrow.9f06d2cd.svg": "./static/media/st-arrow.9f06d2cd.svg",
"static/media/st-clear.45da9505.svg": "./static/media/st-clear.45da9505.svg"
},
"entrypoints": [
"static/js/runtime-main.1401e97d.js",
"static/js/2.7b601a3e.chunk.js",
"static/js/main.70ce7f5a.chunk.js"
]
}
Loading

0 comments on commit e4c5f48

Please sign in to comment.