* Add .gitignore for compiles web assets

* Update react dependencies

- Add mantine/core
- Add mantine-datatable

* Add more packages

- mantine/dropzone
- mantine/notifications

* Fix for development docker image
This commit is contained in:
Oliver 2023-07-19 06:28:00 +10:00 committed by GitHub
parent 6d3978ea28
commit 1125bf4396
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1342 additions and 2 deletions

View File

@ -131,7 +131,7 @@ CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ./Inve
FROM inventree_base as dev FROM inventree_base as dev
# Install nodejs / npm / yarn # Install nodejs / npm / yarn
RUN apk add --no-cache --update nodejs npm && npm cache clean -f && npm install -g n && n stable && npm install -g yarn RUN apk add --no-cache --update nodejs npm && npm install -g yarn
# The development image requires the source code to be mounted to /home/inventree/ # The development image requires the source code to be mounted to /home/inventree/
# So from here, we don't actually "do" anything, apart from some file management # So from here, we don't actually "do" anything, apart from some file management

2
InvenTree/web/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
# Ignore compiled react files
./static/web/

View File

@ -1,6 +1,12 @@
{ {
"dependencies": { "dependencies": {
"@emotion/react": "^11.11.1",
"@mantine/core": "^6.0.17",
"@mantine/dropzone": "^6.0.17",
"@mantine/hooks": "^6.0.17",
"@mantine/notifications": "^6.0.17",
"eslint": "^8.41.0", "eslint": "^8.41.0",
"eslint-config-google": "^0.14.0" "eslint-config-google": "^0.14.0",
"mantine-datatable": "^2.8.5"
} }
} }

1332
yarn.lock Normal file

File diff suppressed because it is too large Load Diff