🎨 clean up bundle script

This commit is contained in:
Flam3rboy 2021-07-11 11:05:09 +02:00
parent eb1c3856e2
commit e70cdfe282
3 changed files with 9 additions and 904 deletions

View File

@ -14,18 +14,14 @@ jobs:
os: [windows, macos, ubuntu] os: [windows, macos, ubuntu]
include: include:
- os: windows - os: windows
build: npx caxa -i . -m "This may take a while to run the first time, please wait..." --output "fosscord-api-windows-${{ github.sha }}.exe" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" build: npm run bundle:windows
artifact: fosscord-api-windows-${{ github.sha }}.exe artifact: fosscord-api-windows.exe
- os: macos - os: macos
build: | build: npm run bundle:macos
npx caxa -i . -m "This may take a while to run the first time, please wait..." --output "fosscord-api.app" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" artifact: fosscord-api-macos.app.tgz
tar -czf "fosscord-api-macos-${{ github.sha }}.app.tgz" "fosscord-api.app"
artifact: fosscord-api-macos-${{ github.sha }}.app.tgz
- os: ubuntu - os: ubuntu
build: | build: npm run bundle:linux
npx caxa -i . -m "This may take a while to run the first time, please wait..." --output "fosscord" -- "{{caxa}}/node_modules/.bin/node" "{{caxa}}/dist/start.js" artifact: fosscord-api-linux.tgz
tar -czf "fosscord-api-linux-${{ github.sha }}.tgz" "fosscord"
artifact: fosscord-api-linux-${{ github.sha }}.tgz
runs-on: ${{ matrix.os }}-latest runs-on: ${{ matrix.os }}-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

876
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,23 +11,9 @@
"start": "npm run build && node dist/start", "start": "npm run build && node dist/start",
"build": "tsc -b .", "build": "tsc -b .",
"dev": "tsnd --respawn src/start.ts", "dev": "tsnd --respawn src/start.ts",
"bundle": "npm run build && pkg --no-bytecode --public-packages=* package.json" "bundle:macos": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api.app' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-macos.app.tgz' 'fosscord-api.app'",
}, "bundle:linux": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js' && tar -czf 'fosscord-api-linux.tgz' 'fosscord'",
"pkg": { "bundle:windows": "npx caxa -i . -m 'This may take a while to run the first time, please wait...' --output 'fosscord-api-windows.exe' -- '{{caxa}}/node_modules/.bin/node' '{{caxa}}/dist/start.js'"
"scripts": [
"dist/**/*.js"
],
"assets": [
"locales",
"assets",
"client_test"
],
"targets": [
"latest-linux-x64",
"latest-win-x64",
"latest-macos-x64"
],
"outputPath": "build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -89,7 +75,6 @@
"0x": "^4.10.2", "0x": "^4.10.2",
"caxa": "^2.1.0", "caxa": "^2.1.0",
"jest": "^26.6.3", "jest": "^26.6.3",
"pkg": "^5.3.0",
"saslprep": "^1.0.3", "saslprep": "^1.0.3",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"ts-node-dev": "^1.1.6", "ts-node-dev": "^1.1.6",