From c80250e4c240f8749dd6fcd5787a82829c21b51c Mon Sep 17 00:00:00 2001 From: default Date: Fri, 20 Feb 2026 10:01:18 +0000 Subject: [PATCH] EC-21: FEAT: Added gitea packages as well Refers: Evercatch/Evercatch-board#21 --- .npmignore | 22 ++++++++++++++++++++++ .npmrc | 9 +++++++++ README.md | 2 +- package.json | 6 +++++- 4 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .npmignore create mode 100644 .npmrc diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..7048540 --- /dev/null +++ b/.npmignore @@ -0,0 +1,22 @@ +# .npmignore + +# Ignore Gitea/Git configurations +.gitea/ +.git/ +.gitignore + +# Ignore Environment/Config files +.env +.env.example + +# Ignore Maintenance & Repo Management files +# (Users installing the package usually don't need these) +CODEOWNERS +CONTRIBUTING.md +SECURITY.md + +# Ignore Logs +npm-debug.log +*.log + +# Note: NEVER ignore package.json, README.md, LICENSE, or your actual code (index.js) diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..a0cdc1a --- /dev/null +++ b/.npmrc @@ -0,0 +1,9 @@ +# .npmrc +# 1. Tell npm that @evercatch packages live on your server +@evercatch:registry=https://git.psmattas.com/api/packages/Evercatch/npm/ + +# 2. Set the registry for publishing +registry=https://git.psmattas.com/api/packages/Evercatch/npm/ + +# 3. Setup Auth using an Environment Variable +//git.psmattas.com/api/packages/Evercatch/npm/:_authToken=${GITEA_TOKEN} diff --git a/README.md b/README.md index 01adc98..ff13ae5 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The final technology stack is being determined. The planned stack is as follows: Once released, the package will be available on npm: ```bash # This will not work until the first official release -npm install @evercatch/evercatch +npm install @evercatch/sdk ``` ### Local Development diff --git a/package.json b/package.json index 12ff378..8aeed51 100644 --- a/package.json +++ b/package.json @@ -12,5 +12,9 @@ "keywords": ["evercatch", "webhooks", "sdk"], "engines": { "node": ">=16" - } + }, + "scripts": { + "publish:public": "npm publish", + "publish:gitea": "npm publish --registry=https://git.psmattas.com/api/packages/Evercatch/npm/" +} }