mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-12-07 14:18:09 -06:00
57 lines
2.6 KiB
JSON
57 lines
2.6 KiB
JSON
{
|
|
"name": "decky-plugin-template",
|
|
"version": "0.0.1",
|
|
"description": "A template to quickly create decky plugins from scratch, based on TypeScript and webpack",
|
|
"type": "module",
|
|
"scripts": {
|
|
"setup": "echo 'If you are using alpine linux, do not expect any support.' && pnpm i && pnpm update @decky/ui --latest && ([ -f ./cli/decky ] || pnpm run setup:cli) && (which docker >/dev/null || echo 'Docker not found, you will need it for backend development.')",
|
|
"setup:cli": "mkdir -p cli && case \"$(uname -s)-$(uname -m)\" in 'Linux-x86_64') url=decky-linux-x86_64 ;; 'Darwin-x86_64') url=decky-macOS-x86_64 ;; 'Darwin-arm64') url=decky-macOS-aarch64 ;; *) echo \"Unsupported system: $(uname -s)-$(uname -m)\"; exit 1 ;; esac && curl -L \"https://github.com/SteamDeckHomebrew/cli/releases/latest/download/$url\" -o ./cli/decky && chmod +x ./cli/decky",
|
|
"build": "rollup -c",
|
|
"build:plugin": "pnpm run build && ./cli/decky plugin build .",
|
|
"build:deploy": "pnpm run build:plugin && pnpm run deploy",
|
|
"deploy": "dotenv -- pnpm run deploy:run",
|
|
"deploy:run": "set -e; PLUGIN_SAFE_NAME=$(echo \"$PLUGIN_NAME\" | tr ' ' '-'); SSH_OPTS=\"-C -p $DECK_PORT -o StrictHostKeyChecking=no -o ConnectTimeout=10\"; [ -n \"$DECK_KEY\" ] && SSH_OPTS=\"$SSH_OPTS $DECK_KEY\"; echo \"📦 Deploying 'out/$PLUGIN_NAME.zip' to $DECK_USER@$DECK_IP:$DECK_DIR/homebrew/plugins/$PLUGIN_SAFE_NAME\"; cat \"out/$PLUGIN_NAME.zip\" | ssh $SSH_OPTS $DECK_USER@$DECK_IP \"set -e; mkdir -p '$DECK_DIR/homebrew/plugins/$PLUGIN_SAFE_NAME'; bsdtar -xpf - -C '$DECK_DIR/homebrew/plugins/$PLUGIN_SAFE_NAME' --strip-components=1\"",
|
|
"watch": "rollup -c -w",
|
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/SteamDeckHomebrew/decky-plugin-template.git"
|
|
},
|
|
"keywords": [
|
|
"decky",
|
|
"plugin",
|
|
"plugin-template",
|
|
"steam-deck",
|
|
"deck"
|
|
],
|
|
"author": "You <you@you.tld>",
|
|
"license": "BSD-3-Clause",
|
|
"bugs": {
|
|
"url": "https://github.com/SteamDeckHomebrew/decky-plugin-template/issues"
|
|
},
|
|
"homepage": "https://github.com/SteamDeckHomebrew/decky-plugin-template#readme",
|
|
"devDependencies": {
|
|
"@decky/rollup": "^1.0.1",
|
|
"@decky/ui": "^4.10.6",
|
|
"@types/react": "18.3.3",
|
|
"@types/react-dom": "18.3.0",
|
|
"@types/webpack": "^5.28.5",
|
|
"dotenv-cli": "^7.4.2",
|
|
"rollup": "^4.22.5",
|
|
"typescript": "^5.6.2"
|
|
},
|
|
"dependencies": {
|
|
"@decky/api": "^1.1.2",
|
|
"react-icons": "^5.3.0",
|
|
"tslib": "^2.7.0"
|
|
},
|
|
"pnpm": {
|
|
"peerDependencyRules": {
|
|
"ignoreMissing": [
|
|
"react",
|
|
"react-dom"
|
|
]
|
|
}
|
|
}
|
|
}
|