UNPKG

@decaf-ts/utils

Version:

module management utils for decaf-ts

123 lines (122 loc) 4.8 kB
{ "name": "@decaf-ts/utils", "version": "0.3.4", "description": "module management utils for decaf-ts", "type": "module", "exports": { "require": "./lib/index.cjs", "import": "./lib/esm/index.js" }, "types": "lib/index.d.ts", "bin": { "tag-release": "bin/tag-release.cjs", "update-scripts": "bin/update-scripts.cjs", "build-scripts": "bin/build-scripts.cjs" }, "scripts": { "do-install": "TOKEN=$(cat .token) 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": "node ./bin/update-scripts.cjs", "on-first-run": "node ./bin/update-scripts.cjs --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": "node ./bin/build-scripts.cjs --dev && npm run build:commands", "build:prod": "node ./bin/build-scripts.cjs --prod && npm run build:commands", "build:commands": "node ./bin/build-scripts.cjs --commands", "test": "jest --runInBand --detectOpenHandles", "test:unit": "jest --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles", "test:integration": "jest --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles", "test:all": "jest --testPathPattern=\"/tests\" --passWithNoTests", "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.ts", "lint": "eslint .", "lint-fix": "eslint --fix .", "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 && node ./bin/build-scripts.cjs --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" }, "repository": { "type": "git", "url": "git+https://github.com/decaf-ts/utils.git" }, "engines": { "node": ">=20.0.0", "npm": ">=10.0.0" }, "files": [ "lib", "dist", "bin" ], "keywords": [ "decaf", "cli", "ci", "cd", "automation", "utils", "boilerplate", "doc", "docs", "strings", "input", "logging", "documentation", "ci/cd", "fs", "environment", "md", "typescript", "ts" ], "author": "Tiago Venceslau", "license": "MIT", "bugs": { "url": "https://github.com/decaf-ts/utils/issues" }, "homepage": "https://github.com/decaf-ts/utils#readme", "devDependencies": { "@eslint/js": "^9.25.1", "@rollup/plugin-commonjs": "^28.0.3", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.1", "@rollup/plugin-typescript": "^12.1.2", "@stylistic/eslint-plugin": "^4.2.0", "@types/jest": "^29.5.14", "@types/prompts": "^2.4.9", "clean-publish": "^5.1.0", "dpdm": "^3.14.0", "eslint": "^9.25.1", "eslint-config-prettier": "^10.1.2", "eslint-plugin-prettier": "^5.2.6", "globals": "^16.0.0", "jest": "^29.7.0", "jest-html-reporters": "^3.1.7", "jest-junit": "^16.0.0", "jsdoc": "^4.0.4", "jsdoc-mermaid": "^1.0.0", "markdown-include": "^0.4.3", "minimist": "^1.2.8", "nodemon": "^3.1.9", "npm-check-updates": "^18.0.0", "prettier": "3.5.3", "rimraf": "^6.0.1", "rollup": "^4.40.0", "ts-jest": "^29.3.2", "ts-loader": "^9.5.2", "ts-node": "^10.9.2", "typescript": "^5.8.3", "typescript-eslint": "^8.31.0" }, "dependencies": { "@decaf-ts/logging": "latest", "prompts": "^2.4.2", "styled-string-builder": "^1.4.6", "typed-object-accumulator": "^0.1.4" } }