Skip to content

Commit 4e0405f

Browse files
committed
fix: add --minify to bundle script
1 parent 9fbcddb commit 4e0405f

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"dependencies": {
3-
"@observablehq/plot": "^0.6.17",
4-
"anywidget": "^0.9.0",
5-
"d3": "^7.9.0",
6-
"d3-scale-chromatic": "^3.1.0"
7-
},
8-
"scripts": {
9-
"bundle": "esbuild --format=esm --bundle --outdir=src/pyobsplot/static --entry-names=static-[name] src/js/widget.js src/js/styles.css",
10-
"dev": "npm run bundle -- --watch",
11-
"build": "npm run bundle && uv build",
12-
"test": "uv run pytest",
13-
"uistart": "uv run -- jupyter lab --config tests/ui/jupyter_server_config.py",
14-
"uitest": "npx playwright test --workers=1 --config tests/ui/playwright.config.cjs",
15-
"uitest:debug": "PWDEBUG=1 npm run uitest",
16-
"uitest:report": "http-server ./tests/ui/playwright-report -a localhost -o",
17-
"uitest:update": "npm run uitest -- --update-snapshots",
18-
"uitest:ui": "npm run uitest -- --ui"
19-
},
20-
"devDependencies": {
21-
"@jupyterlab/galata": "^5.1.5",
22-
"@playwright/test": "^1.38.1",
23-
"esbuild": "^0.25.0"
24-
},
25-
"type": "module",
26-
"workspaces": [
27-
"packages/pyobsplot-js"
28-
]
2+
"dependencies": {
3+
"@observablehq/plot": "^0.6.17",
4+
"anywidget": "^0.9.0",
5+
"d3": "^7.9.0",
6+
"d3-scale-chromatic": "^3.1.0"
7+
},
8+
"scripts": {
9+
"bundle": "esbuild --minify --format=esm --bundle --outdir=src/pyobsplot/static --entry-names=static-[name] src/js/widget.js src/js/styles.css",
10+
"dev": "npm run bundle -- --watch",
11+
"build": "npm run bundle && uv build",
12+
"test": "uv run pytest",
13+
"uistart": "uv run -- jupyter lab --config tests/ui/jupyter_server_config.py",
14+
"uitest": "npx playwright test --workers=1 --config tests/ui/playwright.config.cjs",
15+
"uitest:debug": "PWDEBUG=1 npm run uitest",
16+
"uitest:report": "http-server ./tests/ui/playwright-report -a localhost -o",
17+
"uitest:update": "npm run uitest -- --update-snapshots",
18+
"uitest:ui": "npm run uitest -- --ui"
19+
},
20+
"devDependencies": {
21+
"@jupyterlab/galata": "^5.1.5",
22+
"@playwright/test": "^1.38.1",
23+
"esbuild": "^0.25.0"
24+
},
25+
"type": "module",
26+
"workspaces": [
27+
"packages/pyobsplot-js"
28+
]
2929
}

0 commit comments

Comments
 (0)