diff --git a/react-ui/package.json b/react-ui/package.json index 709c5bfcb623cd76f6b0e5264378ad3f909a58a7..4c9271009563219b7aed130bf1d46e0695f02697 100755 --- a/react-ui/package.json +++ b/react-ui/package.json @@ -37,7 +37,8 @@ "build::api": "npx @rtk-query/codegen-openapi ./scripts/openapi-config.json", "build": "yarn build::api && yarn build::frontend", "lint": "eslint src", - "lint::fix": "eslint src --fix" + "lint::fix": "eslint src --fix", + "dev": "./scripts/dev.sh" }, "eslintConfig": { "extends": [ diff --git a/react-ui/scripts/dev.sh b/react-ui/scripts/dev.sh new file mode 100755 index 0000000000000000000000000000000000000000..3a2d208858603433cf61c69ade5aa21d46f26377 --- /dev/null +++ b/react-ui/scripts/dev.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +docker run \ + -it \ + --rm \ + -v $(pwd):/app \ + -w /app \ + -p 127.0.0.1:3000:3000 \ + --network gosdn-csbi-arista-base-net \ + node:20-alpine3.20 \ + npx vite