blob: d68b31efeda55e0d295b07a6bbdeeb03063e64d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{
"dependencies": {
"@types/node": "^18.11.10",
"chalk": "^4.1.2",
"typescript": "^4.9.3"
},
"scripts": {
"compile": "npm run compile-debug",
"compile-debug": "cp src/index.ts src/.index.ts.bak && cd src && node version.js && node debug.js && cd .. && tsc -p ./tsconfig.json && cp -r node_modules dist && cp -r src/sourcegen.js dist && cp -r src/operators dist && cp -r src/functions dist && cp -r src/modules dist && cp -r src/conditions dist && cd dist && node sourcegen.js && cd .. && rm src/index.ts && mv src/.index.ts.bak src/index.ts",
"compile-release": "cp src/index.ts src/.index.ts.bak && cd src && node version.js && node release.js && cd .. && tsc -p ./tsconfig.json && cp -r node_modules dist && cp -r src/sourcegen.js dist && cp -r src/operators dist && cp -r src/functions dist && cp -r src/modules dist && cp -r src/conditions dist && cd dist && node sourcegen.js && cd .. && rm src/index.ts && mv src/.index.ts.bak src/index.ts",
"debug": "npm run compile-debug && cd dist && pkg -t node18-macos-arm64 --public --no-bytecode -o ../bin/wing-debug-mac-arm64 -C GZip index.js && cp ../bin/wing-debug-mac-arm64 $HOME/bin/wing",
"build": "npm run build-debug && npm run build-release",
"build-debug": "npm run compile-debug && cd dist && pkg -t node18-linux-arm64 --public --no-bytecode -o ../bin/wing-debug-linux-glibc-arm64 -C GZip index.js && pkg -t node18-linux-x64 --public --no-bytecode -o ../bin/wing-debug-linux-glibc-x64 -C GZip index.js && pkg -t node18-linuxstatic-arm64 --public --no-bytecode -o ../bin/wing-debug-linux-arm64 -C GZip index.js && pkg -t node18-linuxstatic-x64 --public --no-bytecode -o ../bin/wing-debug-linux-x64 -C GZip index.js && pkg -t node18-alpine-arm64 --public --no-bytecode -o ../bin/wing-debug-linux-musl-arm64 -C GZip index.js && pkg -t node18-alpine-x64 --public --no-bytecode -o ../bin/wing-debug-linux-musl-x64 -C GZip index.js && pkg -t node18-win-arm64 --public --no-bytecode -o ../bin/wing-debug-win32-arm64 -C GZip index.js && pkg -t node18-win-x64 --public --no-bytecode -o ../bin/wing-debug-win32-x64 -C GZip index.js && pkg -t node18-macos-arm64 --public --no-bytecode -o ../bin/wing-debug-mac-arm64 -C GZip index.js && pkg -t node18-mac-x64 --public --no-bytecode -o ../bin/wing-debug-mac-x64 -C GZip index.js",
"build-release": "npm run compile-release && cd dist && pkg -t node18-linux-arm64 -o ../bin/wing-release-linux-glibc-arm64 -C GZip index.js && pkg -t node18-linux-x64 -o ../bin/wing-release-linux-glibc-x64 -C GZip index.js && pkg -t node18-linuxstatic-arm64 -o ../bin/wing-release-linux-arm64 -C GZip index.js && pkg -t node18-linuxstatic-x64 -o ../bin/wing-release-linux-x64 -C GZip index.js && pkg -t node18-alpine-arm64 -o ../bin/wing-release-linux-musl-arm64 -C GZip index.js && pkg -t node18-alpine-x64 -o ../bin/wing-release-linux-musl-x64 -C GZip index.js && pkg -t node18-win-arm64 -o ../bin/wing-release-win32-arm64 -C GZip index.js && pkg -t node18-win-x64 -o ../bin/wing-release-win32-x64 -C GZip index.js && pkg -t node18-macos-arm64 -o ../bin/wing-release-mac-arm64 -C GZip index.js && pkg -t node18-mac-x64 -o ../bin/wing-release-mac-x64 -C GZip index.js"
}
}
|