-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
90 lines (90 loc) · 4.67 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
82
83
84
85
86
87
88
89
90
{
"$schema": "https://json.schemastore.org/package.json",
"private": true,
"appId": "com.wasp.app",
"name": "web-app-starter-project",
"productName": "Web App Starter Project",
"description": "",
"author": "Nathan Bolton",
"version": "2.0.0",
"license": "(GPL-3.0 OR MPL-2.0)",
"engines": {
"node": "^18.20.0 || ^20.9.0 || >=21.1.0"
},
"main": "www/main.js",
"scripts": {
"build": "yarn clean && node build-www.mjs",
"build:desktop": "yarn clean:desktop && cross-env-shell NODE_ENV=production TARGET_ENV=desktop \"yarn build && yarn icon:desktop && yarn sw && node ./build-electron.mjs && electron-builder build --config .electron-builder.config.js\"",
"build:mobile": "cross-env NODE_ENV=production TARGET_ENV=mobile yarn build && yarn icon:mobile && yarn sw",
"build:web": "cross-env-shell NODE_ENV=production TARGET_ENV=web \"yarn build && yarn icon:web && yarn sw\"",
"clean": "npx rimraf ./www/**/app.css* -g && npx rimraf ./www/**/app.js* -g",
"clean:desktop": "npx rimraf ./www/preload.js* -g && npx rimraf ./www/main.js* -g",
"clean:sw": "npx rimraf ./www/service-worker.js* -g && npx rimraf ./www/workbox-*.js* -g",
"dev": "cross-env NODE_ENV=development TARGET_ENV=unknown yarn build",
"dev:desktop": "yarn clean:desktop && cross-env-shell NODE_ENV=development TARGET_ENV=desktop \"node ./build-electron.mjs && yarn dev:desktop:watch \"",
"dev:desktop:watch": "concurrently \"yarn build\" \"npx electron .\"",
"dev:web": "cross-env NODE_ENV=development TARGET_ENV=web yarn build",
"icon:desktop": "npx icon-gen --icns --icns-name icon --icns-sizes 16,32,64,128,256,512 --ico --ico-name icon -i ./src-www/images/icon-precomposed.svg -o ./src-electron/buildResources",
"icon:mobile": "npx capacitor-assets generate --iconBackgroundColor '#7CB9E8' --iconBackgroundColorDark '#222222' --splashBackgroundColor '#7CB9E8' --splashBackgroundColorDark '#000000' --assetPath src-www/images --android",
"icon:web": "yarn icon:web:splashdark && yarn icon:web:splash && yarn icon:web:favicon && yarn icon:web:pwa",
"icon:web:favicon": "pwa-asset-generator src-www/images/icon-precomposed.svg www/assets/images/icons --index www/index.html --scrape false --type png --icon-only --favicon --padding 0 --maskable false --opaque false && rimraf www/assets/images/icons/manifest-icon-*.png -g",
"icon:web:pwa": "pwa-asset-generator src-www/images/icon.svg www/assets/images/icons --manifest www/app.webmanifest --index www/index.html --scrape false --type png --icon-only --mstile --maskable --background \"#7CB9E8\"",
"icon:web:splash": "pwa-asset-generator src-www/images/splash.svg www/assets/images/icons --manifest www/app.webmanifest --index www/index.html --scrape false --type png --splash-only --background \"#7CB9E8\"",
"icon:web:splashdark": "pwa-asset-generator src-www/images/splash.svg www/assets/images/icons --manifest www/app.webmanifest --index www/index.html --scrape false --type png --dark-mode --splash-only --background \"#111\"",
"lint": "yarn lint:www && yarn lint:electron",
"lint:www": "eslint src-www/scripts",
"lint:electron": "eslint src-electron",
"prettier": "prettier --write ./**/*.{eslintrc,yml,json,js,ts,mjs,md,d.ts}",
"sw": "yarn clean:sw && cross-env-shell NODE_ENV=production npx workbox-cli generateSW workbox-config.js",
"sw:dev": "yarn clean:sw && cross-env-shell NODE_ENV=development npx workbox-cli generateSW workbox-config.js"
},
"dependencies": {
"@capacitor/preferences": "^5.0.4",
"@capacitor/splash-screen": "^5.0.4",
"@snackbar/core": "^1.7.0",
"electron-store": "^8.1.0",
"electron-window-state": "^5.0.3",
"fflate": "~0.8.0",
"idb-keyval": "^6.2.1",
"modern-normalize": "^2.0.0",
"workbox-window": "^7.0.0",
"worker-async": "^1.1.0"
},
"devDependencies": {
"@capacitor/android": "^5.0.5",
"@capacitor/assets": "^3.0.1",
"@capacitor/cli": "^5.0.5",
"@capacitor/core": "^5.0.5",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@total-typescript/ts-reset": "^0.5.1",
"@types/node": "*",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"electron": "^22.3.27",
"electron-builder": "^24.4.0",
"electron-debug": "^3.2.0",
"esbuild": "~0.24.0",
"esbuild-ifdef": "~0.2.0",
"esbuild-plugin-inline-worker": "~0.1.1",
"esbuild-style-plugin": "^1.6.2",
"eslint": "^9.0.0",
"globals": "*",
"husky": "^9.0.11",
"icon-gen": "^4.0.0",
"postcss": "^8.4.24",
"postcss-mixins": "^9.0.4",
"postcss-preset-env": "^9.2.0",
"prettier": "^3.1.1",
"pwa-asset-generator": "^6.3.1",
"rimraf": "^6.0.1",
"ts-reset": "^0.0.1",
"typescript": "~5.7.2",
"typescript-eslint": "^8.0.0",
"workbox-cli": "^7.0.0"
},
"resolutions": {
"esbuild": "~0.24.0",
"typescript": "~5.7.2"
}
}