Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Commit

Permalink
Add packing script
Browse files Browse the repository at this point in the history
  • Loading branch information
krypciak committed Aug 11, 2023
1 parent 01fd988 commit 9388fc6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package-lock.json
plugin.js
dist
node_modules
*.ccmod
7 changes: 7 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
BASE_NAME='cc-livesplit-one'
NAME="${BASE_NAME}_$(jq '.version' ccmod.json | sed 's/^"//;s/"$//').ccmod"
rm -rf "$BASE_NAME"*
esbuild --target=es2018 --format=esm --platform=node --bundle --outfile='plugin.js' 'plugin.ts'
zip -r "$NAME" ./ -x "*.zip" "node_modules/*" ".git*" "*.ts" "README.md" "package.json" "tsconfig.json" "pack.sh" "package-lock.json"

0 comments on commit 9388fc6

Please sign in to comment.