diff --git a/.gitignore b/.gitignore index 45fc417..166c0be 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ README.md.html +*.ccmod diff --git a/ccmod.json b/ccmod.json new file mode 100644 index 0000000..d67bad2 --- /dev/null +++ b/ccmod.json @@ -0,0 +1,10 @@ +{ + "id": "input-api", + "version": "1.0.2", + "title": "input-api", + "description": "Allows mods to add rebindable key bindings", + "repository": "https://github.com/CCDirectLink/input-api", + "tags": ["library"], + "authors": "dmitmel", + "postload": "postload.js" +} diff --git a/pack.sh b/pack.sh new file mode 100755 index 0000000..f1f5ea8 --- /dev/null +++ b/pack.sh @@ -0,0 +1,7 @@ +#!/bin/sh +BASE_NAME="$(jq '.id' ccmod.json | sed 's/^"//;s/"$//')" +NAME="${BASE_NAME}.ccmod" +rm -rf "$BASE_NAME"* +zip -r "$NAME" ./ -x "*.ccmod" "*.zip" "node_modules/*" ".git*" "*.ts" "*.md" \ + "tsconfig.json" "*.sh" "package-lock.json" "pack/*" "bundle.zip" ".prettierrc.json" \ + "*.kra" "*.kra~" "*.png~" "src/*" diff --git a/package.json b/package.json index 358899c..93cc320 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "input-api", - "version": "1.0.1", + "version": "1.0.2", "description": "Allows mods to add rebindable key bindings", "license": "MIT", - "homepage": "https://github.com/dmitmel/input-api", + "homepage": "https://github.com/CCDirectLink/input-api", "module": true, "postload": "postload.js" }