-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
40 lines (40 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
{
"name": "deadlock",
"version": "1.0.0",
"productName": "Deadlock",
"description": "A behavior pack tool for Minecraft Bedrock utilizing the Gametest API.",
"private": true,
"devDependencies": {
"@minecraft/server-ui": "1.0.0-beta.1.19.60-stable",
"@minecraft/server": "1.1.0-beta.1.19.60-stable",
"@minecraft/server-gametest": "1.0.0-beta.1.19.60-stable",
"prettier": "^2.8.4",
"typescript": "^4.9.5"
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 4,
"useTabs": false,
"semi": true,
"printWidth": 250
},
"scripts": {
"enableMcLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-1958404141-86561845-1752920682-3514627264-368642714-62675701-733520436",
"enableMcPreviewLoopback": "CheckNetIsolation.exe LoopbackExempt -a -p=S-1-15-2-424268864-5579737-879501358-346833251-474568803-887069379-4040235476",
"format": "npx prettier --write ./",
"linux//": " --- BUILD (Linux) --- ",
"clean": "rm -rf build/",
"mkDirs": "mkdir -p build",
"copy:assets": "cp -R animation_controllers/ animations entities/ functions/ CHANGELOG.md LICENSE manifest.json pack_icon.png README.md build",
"build": "./node_modules/typescript/bin/tsc -p tsconfig.json && npm run copy:assets",
"dist": "npm run clean && npm run format && npm run build; cd build; zip -0 -r Deadlock-v${npm_package_version}.mcpack ../build .",
"windows//": " --- BUILD (Windows) --- ",
"clean_win": "rd /s /q build>nul 2>&1|echo.>nul",
"mkdir_win": "@if exist build (rd /s /q build && mkdir build) else (mkdir build)",
"copy_assets_win": "@powershell Copy-Item -Path ^(\\\"animation_controllers\\\",\\\"animations\\\",\\\"entities\\\",\\\"functions\\\",\\\"CHANGELOG.md\\\",\\\"LICENSE\\\",\\\"manifest.json\\\",\\\"pack_icon.png\\\",\\\"README.md\\\"^) -Destination \"build\" -Recurse",
"build_win": "npm run mkdir_win 1>nul && node node_modules\\typescript\\bin\\tsc -p tsconfig.json && npm run copy_assets_win 1>nul",
"build_win_noscript": "npm run mkdir_win 1>nul && npm run copy_assets_win 1>nul",
"zip_win": "@powershell Compress-Archive -Path \\\"build\\*\\\" -DestinationPath \\\"build\\Deadlock-v%npm_package_version%.mcpack\\\" -Force",
"dist_win": "npm run clean_win && npm run format && npm run build_win 1>nul && npm run zip_win 1>nul"
}
}