Skip to content

Commit 2512227

Browse files
authored
chore: update dev config (langgenius#31329)
1 parent 121d301 commit 2512227

File tree

4 files changed

+46
-45
lines changed

4 files changed

+46
-45
lines changed

.devcontainer/post_create_command.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pipx install uv
88

99
echo "alias start-api=\"cd $WORKSPACE_ROOT/api && uv run python -m flask run --host 0.0.0.0 --port=5001 --debug\"" >> ~/.bashrc
1010
echo "alias start-worker=\"cd $WORKSPACE_ROOT/api && uv run python -m celery -A app.celery worker -P threads -c 1 --loglevel INFO -Q dataset,priority_dataset,priority_pipeline,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,workflow,schedule_poller,schedule_executor,triggered_workflow_dispatcher,trigger_refresh_executor,retention\"" >> ~/.bashrc
11-
echo "alias start-web=\"cd $WORKSPACE_ROOT/web && pnpm dev\"" >> ~/.bashrc
11+
echo "alias start-web=\"cd $WORKSPACE_ROOT/web && pnpm dev:inspect\"" >> ~/.bashrc
1212
echo "alias start-web-prod=\"cd $WORKSPACE_ROOT/web && pnpm build && pnpm start\"" >> ~/.bashrc
1313
echo "alias start-containers=\"cd $WORKSPACE_ROOT/docker && docker-compose -f docker-compose.middleware.yaml -p dify --env-file middleware.env up -d\"" >> ~/.bashrc
1414
echo "alias stop-containers=\"cd $WORKSPACE_ROOT/docker && docker-compose -f docker-compose.middleware.yaml -p dify --env-file middleware.env down\"" >> ~/.bashrc

dev/start-web

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ set -x
55
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
66
cd "$SCRIPT_DIR/../web"
77

8-
pnpm install && pnpm dev
8+
pnpm install && pnpm dev:inspect

web/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
"and_qq >= 14.9"
2424
],
2525
"scripts": {
26-
"dev": "next dev --inspect",
26+
"dev": "next dev",
27+
"dev:inspect": "next dev --inspect",
2728
"build": "next build",
2829
"build:docker": "next build && node scripts/optimize-standalone.js",
2930
"start": "node ./scripts/copy-and-start.mjs",
30-
"lint": "eslint --cache",
31-
"lint:ci": "pnpm lint --concurrency 3",
31+
"lint": "eslint --cache --concurrency=\"auto\"",
32+
"lint:ci": "eslint --cache --concurrency 3",
3233
"lint:fix": "pnpm lint --fix",
3334
"lint:quiet": "pnpm lint --quiet",
3435
"lint:complexity": "pnpm lint --rule 'complexity: [error, {max: 15}]' --quiet",
@@ -200,7 +201,7 @@
200201
"@vitejs/plugin-react": "5.1.2",
201202
"@vitest/coverage-v8": "4.0.17",
202203
"autoprefixer": "10.4.21",
203-
"code-inspector-plugin": "1.2.9",
204+
"code-inspector-plugin": "1.3.6",
204205
"cross-env": "10.1.0",
205206
"esbuild-wasm": "0.27.2",
206207
"eslint": "9.39.2",

web/pnpm-lock.yaml

Lines changed: 39 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)