diff --git a/README.md b/README.md index 25288d3..73bd108 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/package.json b/package.json index 887bffa..76c9161 100644 --- a/package.json +++ b/package.json @@ -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",