Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really fix the panel build #15

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build-panels.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cd src/check-watch-panel
yarn build-dist
yarn build
3 changes: 3 additions & 0 deletions src/check-watch-panel/dist-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd build
cp static/js/*.js main.js
cp static/css/*.css main.css
4 changes: 2 additions & 2 deletions src/check-watch-panel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build && yarn run build-dist",
"build-dist": "mkdir -p build && cd build && cp static/js/*.js main.js && cp static/css/*.css main.css",
"build": "react-scripts build && yarn run dist-build",
"dist-build": "./dist-build.sh",
"lint": "eslint --ext .js,.ts && prettier -c .",
"lint:fix": "eslint --fix --ext .js,.ts && prettier -w .",
"test": "react-scripts test",
Expand Down
2 changes: 1 addition & 1 deletion src/check-watch-panel/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function App() {
const liveCheckService = useLiveCheckService(devService);

useEffect(() => {
const listener = (event) => {
const listener = (event: any) => {
const message = event.data;
switch (message.type) {
case 'addWatch':
Expand Down
Loading