File tree 6 files changed +12
-8
lines changed
6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 57
57
tomli_w.dump(pyproject, f)
58
58
- name : Build dashboard
59
59
run : |
60
- cd dashboard
61
- script/setup
62
- script/build
63
- cd ..
60
+ dashboard/script/setup
61
+ dashboard/script/build
64
62
- name : Build python package
65
63
run : >-
66
64
python3 -m build
Original file line number Diff line number Diff line change @@ -168,3 +168,6 @@ venv39/
168
168
169
169
# ruff
170
170
.ruff_cache /
171
+
172
+ # prebuilt dashboard files
173
+ matter_server /dashboard /
Original file line number Diff line number Diff line change @@ -30,4 +30,5 @@ The production build is generated when you run
30
30
script/build
31
31
```
32
32
33
- The folder ` dist/web ` will contain the build that can be served by any web browser.
33
+ The production build is generated into the matter_server folder, to be picked up by
34
+ the webserver of the python matter server.
Original file line number Diff line number Diff line change 6
6
cd " $( dirname " $0 " ) /.."
7
7
8
8
rm -rf dist
9
+ rm -rf ../matter_server/dashboard
9
10
NODE_ENV=production npm exec -- tsc
10
11
NODE_ENV=production npm exec -- rollup -c
11
12
cp -r public/* dist/web
13
+ mv dist/web ../matter_server/dashboard
Original file line number Diff line number Diff line change 34
34
from .storage import StorageController
35
35
from .vendor_info import VendorInfo
36
36
37
- DASHBOARD_DIR = Path (__file__ ).parent .joinpath ("../../ dashboard/dist/web /" ).resolve ()
37
+ DASHBOARD_DIR = Path (__file__ ).parent .joinpath ("../dashboard/" ).resolve ()
38
38
DASHBOARD_DIR_EXISTS = DASHBOARD_DIR .exists ()
39
39
40
40
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ platforms = ["any"]
67
67
zip-safe = false
68
68
69
69
[tool .setuptools .package-data ]
70
- matter_server = [" py.typed" ]
70
+ matter_server = [" py.typed" , " dashboard/** " ]
71
71
72
72
[tool .setuptools .packages .find ]
73
- include = [" matter_server*" , " dashboard/dist/web* " ]
73
+ include = [" matter_server*" ]
74
74
75
75
[tool .mypy ]
76
76
check_untyped_defs = true
You can’t perform that action at this time.
0 commit comments