-
Notifications
You must be signed in to change notification settings - Fork 26
/
package.json
31 lines (31 loc) · 1.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"scripts": {
"dev": "pip install -e '.[dev]' && npm run build -- --sourcemap=inline --watch",
"build": "esbuild js/widget.js --minify --format=esm --bundle --outdir=src/ipyaladin/static",
"prepare": "husky install",
"format": "npx prettier . --write && ruff format",
"start-test-server": "python3 -m jupyter lab --config js/ui-tests/jupyter_server_test_config.py",
"python-test": "python3 -m pytest",
"js-test": "npm run start-test-server & npx playwright test",
"update-snapshots": "npx playwright test --update-snapshots"
},
"devDependencies": {
"@jupyterlab/galata": "^5.2.3",
"@playwright/test": "^1.44.0",
"esbuild": "^0.20.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.2",
"prettier": "3.2.5",
"trailing-whitespaces": "^1.0.8"
},
"lint-staged": {
"*.{js,css,md,yml}": "prettier --write",
"*{py,ipynb}": [
"trailing-whitespaces",
"ruff format",
"ruff check --fix"
],
"*ipynb":
"python3 -m jupyter nbconvert --clear-output --ClearMetadataPreprocessor.enabled=True --ClearMetadataPreprocessor.preserve_nb_metadata_mask=nbsphinx --inplace"
}
}