-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
81 lines (81 loc) · 3.09 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"name": "yt_clipper",
"description": "Mark up YouTube videos and quickly generate clipped webms.",
"author": "exwm",
"version": "5.28.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/exwm/yt_clipper"
},
"homepage": "https://openuserjs.org/scripts/elwm/yt_clipper",
"source": "src/markup/yt_clipper.ts",
"targets": {
"userscript": {
"distDir": "./dist/js",
"engines": {
"browsers": "since 2019 and > 0.5% and not op_mini all and not IE 11"
}
}
},
"scripts": {
"pretty:ts": "npx prettier \"src/**/*.{ts,js,json}\" --write",
"pretty:py": "poetry run ruff check --select I --fix src/clipper && poetry run ruff format src/clipper",
"pretty:py:check": "poetry run ruff format --check src/clipper",
"test:py": "poetry run pytest src/clipper -s --cov=src/clipper --cov-report=html -m \"not slow\"",
"test:py:slow": "poetry run pytest src/clipper --cov=src/clipper --cov-report=html",
"lint:py": "poetry run ruff check src/clipper",
"lint:py:fix": "yarn run lint:py --fix",
"poetry:sync": "poetry lock --no-update && poetry install --sync",
"build:ts": "npx tsc --watch",
"build:ts:ne": "npx tsc --noEmit --watch",
"build:ts:p": "run-s -c build:ts pretty",
"build:py": "poetry run pyinstaller ./src/clipper/yt_clipper.py --icon=../../../assets/image/pepe-clipper.gif -F --workpath ./dist/py/work/ --distpath ./dist/py/ --specpath ./dist/py/spec",
"build:all": "run-s -c build:ts:p build:py",
"bundle:w": "npx parcel watch --no-scope-hoist --no-optimize --no-hmr",
"bundle:tc:w": "run-p -c build:ts:ne bundle:w",
"bundle:prod": "npx parcel build --no-scope-hoist --no-optimize",
"clean:dist": "rm -r ./dist/*",
"clean:sandbox": "rm -r ./sandbox/*",
"version:patch": "npx commit-and-tag-version -r patch && poetry run bumpit -p patch || true",
"version:minor": "npx commit-and-tag-version -r minor && poetry run bumpit -p minor || true",
"version:major": "npx commit-and-tag-version -r major && poetry run bumpit -p major || true",
"pigar": "pigar -P ./src/clipper -p ./src/clipper/requirements.txt --without-referenced-comments",
"precommit-msg": "echo 'Pre-commit checks...' && exit 0"
},
"pre-commit": [
"precommit-msg",
"lint:py",
"test:py"
],
"dependencies": {
"common-tags": "^1.8.2",
"d3-drag": "^1.2.5",
"d3-ease": "^1.0.7",
"d3-selection": "^1.4.2",
"dompurify": "^3.1.7",
"file-saver": "^2.0.5",
"immer": "^9.0.12",
"lodash.clonedeep": "^4.5.0",
"lodash.isequal": "^4.5.0"
},
"devDependencies": {
"@types/chart.js": "^2.9.41",
"@types/common-tags": "^1.8.4",
"@types/d3-ease": "^1.0.13",
"@types/dompurify": "^3.0.5",
"@types/file-saver": "^2.0.7",
"@types/jszip": "^3.4.1",
"browserslist": "^4.24.0",
"commit-and-tag-version": "12.4.4",
"npm-run-all": "^4.1.5",
"parcel": "^2.12.0",
"pre-commit": "^1.2.2",
"prettier": "^3.3.3",
"typescript": "^5.6.2"
},
"alias": {
"jszip": ".parcel-globals/jszip.js",
"chart.js": ".parcel-globals/chart.js.js"
}
}