UNPKG

@decaf-ts/for-couchdb

Version:
114 lines (113 loc) 6.02 kB
{ "name": "@decaf-ts/for-couchdb", "version": "0.14.5", "description": "decaf-ts couchdb wrappers", "type": "module", "exports": { ".": { "import": { "types": "./lib/types/index.d.mts", "default": "./lib/esm/index.js" }, "require": { "types": "./lib/types/index.d.cts", "default": "./lib/cjs/index.cjs" }, "default": "./lib/esm/index.js" } }, "types": "./lib/types/index.d.mts", "scripts": { "do-install": "NPM_TOKEN=$(cat .npmtoken) npm install", "update-dependencies": "PREFIX=\"decaf-ts\"; npm ls | grep \"$PREFIX\" | awk -F/ '{print $NF}' | sed 's/@.*//' | xargs -I package npm update @\"$PREFIX\"/package", "update-scripts": "npx update-scripts", "on-first-run": "npx update-scripts --boot", "set-git-auth": "git config url.\"https://api:$(cat .token)@github.com/\".insteadOf \"https://github.com/\" && git config url.\"https://ssh:$(cat .token)@github.com/\".insteadOf \"ssh://git@github.com/\" && git config url.\"https://git:$(cat .token)@github.com/\".insteadOf \"git@github.com:\"", "flash-forward": "npx npm-check-updates -u && npm run do-install", "reset": "rm -rf * && git checkout . && git pull && npm run do-install", "build": "build-scripts --dev", "build:prod": "build-scripts --prod", "test": "jest --runInBand --coverage --detectOpenHandles --passWithNoTests", "test:unit": "jest --testPathPatterns=\"/tests/unit\" --passWithNoTests --detectOpenHandles", "test:integration": "jest --testPathPatterns=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles", "test:all": "jest --testPathPatterns=\"/tests\" --passWithNoTests --detectOpenHandles", "test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts", "coverage": "rimraf ./workdocs/reports/data/*.json && npm run test:all -- --coverage --config=./workdocs/reports/jest.coverage.config.cjs", "lint": "eslint .", "lint-fix": "eslint --fix .", "prepare-pr": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs", "prepare-release": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs", "release": "./bin/tag-release.sh", "clean-publish": "npx clean-publish", "drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/", "uml": "cd workdocs/uml && for FILE in ./*.puml; do docker run --rm -v $(pwd):/work -w /work miy4/plantuml -DPLANTUML_LIMIT_SIZE=8192 -tpng $FILE; done && cd ../.. && cp -fr workdocs/uml/*.png workdocs/resources/", "docs": "npx rimraf ./docs && mkdir docs && build-scripts --docs", "publish-docs": "docker run -it --rm --user $(id -u):$(id -g) -v \"$(pwd)/workdocs/confluence:/content\" -e ATLASSIAN_API_TOKEN=$(cat .confluence-token) ghcr.io/markdown-confluence/publish:latest", "docker:login": "echo $(cat .token) | docker login ghcr.io -u decaf --password-stdin", "docker:build": "npm run docker:build-booter && npm run docker:build-couchdb", "docker:pull": "npm run docker:login && docker pull ghcr.io/decaf-ts/couchdb:latest && docker pull ghcr.io/decaf-ts/couchdb-booter:latest", "docker:build-booter": "docker build -t ghcr.io/decaf-ts/couchdb-booter:$(cat package.json | jq -r '.version') -t ghcr.io/decaf-ts/couchdb-booter:latest -f ./docker/Dockerfile-booter ./docker", "docker:build-couchdb": "docker build -t ghcr.io/decaf-ts/couchdb:$(cat package.json | jq -r '.version') -t ghcr.io/decaf-ts/couchdb:latest -f ./docker/Dockerfile-couchdb ./docker", "docker:publish": "npm run docker:publish-booter && npm run docker:publish-couchdb", "docker:publish-booter": "docker push ghcr.io/decaf-ts/couchdb-booter:$(cat package.json | jq -r '.version') && docker push ghcr.io/decaf-ts/couchdb-booter:latest", "docker:publish-couchdb": "docker push ghcr.io/decaf-ts/couchdb:$(cat package.json | jq -r '.version') && docker push ghcr.io/decaf-ts/couchdb:latest", "repo:init": "codex exec \"$(cat ./.codex/prompts/repo-setup.md)\nbase_path is `./`, initialize the repository\"", "repo:setup": "codex exec \"$(cat ./.codex/prompts/repo-setup.md)\nbase_path is ./\"", "repo:doc": "codex exec \"$(cat ./.codex/prompts/doc.md) $(cat ./.codex/prompts/bulk-docs.md)\nbase_path is ./\"", "repo:tests": "codex exec \"$(cat ./.codex/prompts/bulk-tests.md)\nbase_path is ./ and coverage is 95%\" -s workspace-write", "repo:readme": "codex exec \"$(cat ./.codex/prompts/update-readme.md)\nbase_path is ./\"", "repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:readme", "sync-codex": "./bin/sync-codex.sh" }, "repository": { "type": "git", "url": "git+https://github.com/decaf-ts/for-couchdb.git" }, "engines": { "node": ">=20.0.0", "npm": ">=10.0.0" }, "files": [ "lib", "dist", "docker", "workdocs/assets/slogans.json" ], "keywords": [ "couchdb", "database", "docker", "template", "decaf", "typescript", "deployment", "replication", "nosql", "integration", "ci/cd" ], "author": "Tiago Venceslau and Contributors", "license": "MPL-2.0", "bugs": { "url": "https://github.com/decaf-ts/for-couchdb/issues" }, "homepage": "https://github.com/decaf-ts/for-couchdb#readme", "devDependencies": { "@decaf-ts/cli": "latest", "@decaf-ts/utils": "latest", "@types/jest": "^30.0.0", "@types/node": "^24.5.0" }, "peerDependencies": { "@decaf-ts/core": "latest", "@decaf-ts/db-decorators": "latest", "@decaf-ts/decoration": "latest", "@decaf-ts/decorator-validation": "latest", "@decaf-ts/injectable-decorators": "latest", "@decaf-ts/logging": "latest", "@decaf-ts/transactional-decorators": "latest" }, "main": "./lib/cjs/index.cjs", "module": "./lib/esm/index.js", "sideEffects": false }