-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 5.23 KB
/
package.json
File metadata and controls
86 lines (86 loc) · 5.23 KB
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
{
"name": "desktop-mode",
"version": "0.8.9",
"private": true,
"type": "module",
"description": "WordPress admin as a desktop OS — draggable, resizable windows on a desktop with a dock.",
"license": "GPL-2.0-or-later",
"types": "src/public-api.ts",
"exports": {
".": {
"types": "./src/public-api.ts",
"import": "./src/public-api.ts",
"default": "./src/public-api.ts"
},
"./global": {
"types": "./src/global.d.ts"
}
},
"engines": {
"node": ">=24.0.0 <25.0.0"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">=24.0.0 <25.0.0",
"onFail": "error"
}
},
"scripts": {
"build": "npm run vendor:pixi && npm run build:desktop && npm run build:iframe-bridge && npm run build:gutenberg-drop-receiver && npm run build:recycle-bin && npm run build:posts-window && npm run build:plugins-window && npm run build:comments-window && npm run build:my-wordpress && npm run build:content-graph && npm run build:ai-assistant && npm run build:animated-logo-wallpaper && npm run build:about-scene && npm run build:os-settings-panel && npm run build:shell-overlays && npm run build:window-system && npm run build:widget-heartbeat && npm run build:pwa-sw",
"build:desktop": "vite build --mode development && vite build --mode production",
"build:iframe-bridge": "DESKTOP_MODE_TARGET=iframe-bridge vite build --mode development && DESKTOP_MODE_TARGET=iframe-bridge vite build --mode production",
"build:gutenberg-drop-receiver": "DESKTOP_MODE_TARGET=gutenberg-drop-receiver vite build --mode development && DESKTOP_MODE_TARGET=gutenberg-drop-receiver vite build --mode production",
"build:recycle-bin": "DESKTOP_MODE_TARGET=recycle-bin vite build --mode development && DESKTOP_MODE_TARGET=recycle-bin vite build --mode production",
"build:posts-window": "DESKTOP_MODE_TARGET=posts-window vite build --mode development && DESKTOP_MODE_TARGET=posts-window vite build --mode production",
"build:plugins-window": "DESKTOP_MODE_TARGET=plugins-window vite build --mode development && DESKTOP_MODE_TARGET=plugins-window vite build --mode production",
"build:comments-window": "DESKTOP_MODE_TARGET=comments-window vite build --mode development && DESKTOP_MODE_TARGET=comments-window vite build --mode production",
"build:my-wordpress": "DESKTOP_MODE_TARGET=my-wordpress vite build --mode development && DESKTOP_MODE_TARGET=my-wordpress vite build --mode production",
"build:content-graph": "DESKTOP_MODE_TARGET=content-graph vite build --mode development && DESKTOP_MODE_TARGET=content-graph vite build --mode production",
"build:ai-assistant": "DESKTOP_MODE_TARGET=ai-assistant vite build --mode development && DESKTOP_MODE_TARGET=ai-assistant vite build --mode production",
"build:animated-logo-wallpaper": "DESKTOP_MODE_TARGET=animated-logo-wallpaper vite build --mode development && DESKTOP_MODE_TARGET=animated-logo-wallpaper vite build --mode production",
"build:about-scene": "DESKTOP_MODE_TARGET=about-scene vite build --mode development && DESKTOP_MODE_TARGET=about-scene vite build --mode production",
"build:os-settings-panel": "DESKTOP_MODE_TARGET=os-settings-panel vite build --mode development && DESKTOP_MODE_TARGET=os-settings-panel vite build --mode production",
"build:shell-overlays": "DESKTOP_MODE_TARGET=shell-overlays vite build --mode development && DESKTOP_MODE_TARGET=shell-overlays vite build --mode production",
"build:window-system": "DESKTOP_MODE_TARGET=window-system vite build --mode development && DESKTOP_MODE_TARGET=window-system vite build --mode production",
"build:widget-heartbeat": "DESKTOP_MODE_TARGET=widget-heartbeat vite build --mode development && DESKTOP_MODE_TARGET=widget-heartbeat vite build --mode production",
"build:pwa-sw": "DESKTOP_MODE_TARGET=pwa-sw vite build --mode development && DESKTOP_MODE_TARGET=pwa-sw vite build --mode production",
"dev": "vite build --mode development --watch",
"vendor:pixi": "node -e \"require('fs').cpSync('node_modules/pixi.js/dist/pixi.min.js', 'assets/vendor/pixi.min.js')\"",
"lint": "eslint 'src/**/*.ts'",
"lint:fix": "eslint 'src/**/*.ts' --fix",
"typecheck": "tsc --noEmit",
"package": "bin/package.sh",
"test": "npm run test:js",
"test:js": "vitest run",
"test:js:watch": "vitest",
"env:start": "wp-env start",
"env:stop": "wp-env stop",
"env:destroy": "wp-env destroy",
"test:php:install": "wp-env run tests-cli --env-cwd=wp-content/plugins/desktop-mode composer install",
"test:php": "wp-env run tests-cli --env-cwd=wp-content/plugins/desktop-mode vendor/bin/phpunit --configuration tests/phpunit/phpunit.xml.dist",
"check:plugin": "wp-env run cli wp plugin check desktop-mode",
"build:i18n": "bin/build-i18n.sh",
"extract:i18n": "bin/extract-i18n.sh",
"i18n": "npm run extract:i18n && npm run build:i18n"
},
"devDependencies": {
"@automattic/wp-babel-makepot": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/ui": "^4.1.4",
"@wordpress/env": "^10.0.0",
"@wordpress/eslint-plugin": "^21.6.0",
"eslint": "^8.57.1",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-local-rules": "^3.0.2",
"jsdom": "^25.0.1",
"rollup-plugin-visualizer": "^7.0.1",
"typescript": "5.9.3",
"vite": "^5.4.10",
"vitest": "^4.1.4"
},
"dependencies": {
"pixi.js": "^8.18.1"
}
}