-
Notifications
You must be signed in to change notification settings - Fork 30
/
package.json
53 lines (53 loc) · 2.42 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
{
"name": "pywebview-react-boilerplate",
"version": "1.0.0",
"description": "A simple boilerplate to get started with pywebview and React",
"main": "index.js",
"scripts": {
"build": "npm run clean && npm run frontend:prod && run-script-os",
"build:macos": "./venv-pywebview/bin/python build-macos.py py2app",
"build:windows": ".\\venv-pywebview\\Scripts\\pyinstaller build-windows.spec",
"build:linux": "./venv-pywebview/bin/pyinstaller build-linux.spec",
"clean": "run-script-os",
"clean:default": "rm -rf dist 2>/dev/null; rm -rf gui 2>/dev/null; rm -rf build 2>/dev/null; ",
"clean:windows": "if exist dist rd /S /Q dist & if exist build rd /S /Q build & if exist gui rd /S /Q gui",
"dev": "parcel serve src/index.html",
"frontend:dev": "parcel build src/index.html --public-url . -d gui",
"frontend:prod": "parcel build src/index.html --public-url . --no-source-maps -d gui",
"init": "npm install && run-script-os",
"init:windows": "virtualenv -p python venv-pywebview && .\\venv-pywebview\\Scripts\\pip install -r requirements.txt",
"init:linux": "virtualenv -p python3 venv-pywebview && if [[ -z \"${KDE_FULL_SESSION}\" ]]; then npm run init:qt5; else npm run init:gtk; fi",
"init:default": "virtualenv -p python3 venv-pywebview && ./venv-pywebview/bin/pip install -r requirements.txt",
"init:qt5": "./venv-pywebview/bin/pip install pyqt5 pyqtwebengine -r requirements.txt",
"init:gtk": "sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-3.0 && ./venv-pywebview/bin/pip install pycairo pygobject -r requirements.txt",
"start": "npm run frontend:dev && run-script-os",
"start:windows": ".\\venv-pywebview\\Scripts\\python src\\index.py",
"start:default": "./venv-pywebview/bin/python src/index.py"
},
"repository": {
"type": "git",
"url": "git+https://github.com/r0x0r/pywebview-react-boilerplate.git"
},
"keywords": [
"pywebview",
"react",
"python",
"javascript"
],
"author": "Roman Sirokov",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/r0x0r/pywebview-react-boilerplate/issues"
},
"homepage": "https://github.com/r0x0r/pywebview-react-boilerplate#readme",
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"parcel-bundler": "^1.12.5",
"run-script-os": "^1.1.6",
"sass": "^1.63.6",
"typescript": "^5.1.6"
}
}