docs(README): add bundler to README

This commit is contained in:
Julian Lobbes 2023-07-21 12:13:22 +02:00
parent 6cda35d900
commit 9dc5ca66ed
2 changed files with 21 additions and 2 deletions

View File

@ -51,6 +51,14 @@ To start the frontend asset bundler, run:
npm run start
```
It supports file watching and hot reloading of the browser window.
To clean the bundle files, run:
```bash
npm run clean
```
## Backend
To run commands inside the backend container, run the following:
@ -68,3 +76,13 @@ To enter django's interactive shell, run:
```bash
sudo docker exec -it medwings-django python manage.py shell
```
# Deployment
This section is incomplete.
1. Build the asset bundle:
```bash
npm run build
```

View File

@ -2,7 +2,7 @@
"name": "medwings",
"version": "0.0.1",
"description": "Mobile Early Deterioration Warning System.",
"main": "index.js",
"main": "./app/static/dist/index.js",
"author": "Julian Lobbes",
"license": "AGPL-3.0",
"source": "./assets/js/entry.js",
@ -13,7 +13,8 @@
},
"scripts": {
"build": "parcel build --dist-dir app/static/dist assets/main.js",
"start": "parcel --dist-dir app/static/dist --hmr-port 34471 assets/main.js"
"start": "parcel --dist-dir app/static/dist --hmr-port 34471 assets/main.js",
"clean": "rm -rvf app/static/dist/*"
},
"devDependencies": {
"autoprefixer": "^10.4.14",