initial commit

This commit is contained in:
2025-03-10 04:39:31 +01:00
commit d455cebc29
12 changed files with 1486 additions and 0 deletions

12
.github/workflows/ci.yaml vendored Normal file
View File

@@ -0,0 +1,12 @@
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Deps
run: npm install -g pnpm && pnpm install
- name: Typecheck & Lint
run: pnpm check

37
.gitignore vendored Normal file
View File

@@ -0,0 +1,37 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
# do not commit any .env files to git, except for the .env.example file.
.env
.env*.local
# typescript
*.tsbuildinfo
# eslint
.eslintcache
# idea files
.idea

1
.husky/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
_

4
.husky/pre-commit Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged

6
.prettierignore Normal file
View File

@@ -0,0 +1,6 @@
# Ignore artifacts:
build
coverage
# Ignore Lock
pnpm-lock.yaml

1
.prettierrc Normal file
View File

@@ -0,0 +1 @@
{}

1
README.md Normal file
View File

@@ -0,0 +1 @@
# cis-pushover

13
eslint.config.mjs Normal file
View File

@@ -0,0 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintConfigPrettier from "eslint-config-prettier";
/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.node } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintConfigPrettier,
];

49
package.json Normal file
View File

@@ -0,0 +1,49 @@
{
"name": "@cis-oss/pushover",
"version": "0.0.1",
"description": "A client for Pushover, a service for sending notifications. Written in TypeScript. Supports sending to multiple users.",
"keywords": [
"pushover",
"notifications",
"mobile",
"push",
"notification"
],
"homepage": "https://github.com/cis-oss/pushover#readme",
"bugs": "https://github.com/cis-oss/pushover/issues",
"license": "MIT",
"repository": {
"type": "git",
"url": "github:cis-oss/pushover"
},
"author": {
"name": "Alix von Schirp",
"email": "hi@b00tload.space",
"url": "https://b00tload.space"
},
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"lint": "eslint --cache .",
"typecheck": "tsc --noEmit",
"format:check": "prettier --check .",
"check": "pnpm lint && pnpm typecheck && pnpm format:check",
"prepare": "husky"
},
"devDependencies": {
"@eslint/js": "^9.22.0",
"eslint": "^9.22.0",
"eslint-config-prettier": "^10.1.1",
"globals": "^16.0.0",
"prettier": "3.5.3",
"typescript": "^5.5.3",
"typescript-eslint": "^8.26.0",
"husky": ">=7",
"lint-staged": ">=10"
},
"private": true,
"lint-staged": {
"*.{js,ts,jsx,tsx}": "eslint --cache --fix",
"*.{js,ts,jsx,tsx,json,css,md}": "prettier --write"
}
}

1349
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

1
src/index.ts Normal file
View File

@@ -0,0 +1 @@
console.log("Happy developing ✨");

12
tsconfig.json Normal file
View File

@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"outDir": "dist"
},
"include": ["src"]
}