UNPKG

express-base-controller

Version:
95 lines (94 loc) 3.97 kB
{ "name": "express-base-controller", "version": "4.0.2", "engines": { "node": ">=14.0.0", "npm": ">=8.0.0" }, "description": "a nodejs api controller", "main": "dist/index.js", "module": "dist/index.js", "typings": "dist/index.d.ts", "scripts": { "******************** VERSION *****************************": "", "preversion": "npm run lint && npm run test:once && npm run changelog:prepare", "version": "npm run bundle && git add -A dist && npm run changelog:finalize && npm run changelog:commit", "postversion": "git push && git push --tags && git fetch origin", "********************** DEVELOPMENT ***********************": "", "start": "npm run clear && npm run watch", "********************** LINT ******************************": "", "lint": "eslint \"src/**/*.ts\"", "********************** TEST ******************************": "", "jest": "jest", "test": "npm run test:watch", "test:watch": "npm run jest -- --watch", "test:docker": "npm run coverage", "test:once": "npm run jest", "test:verbose": "npm run jest -- --verbose", "********************** COVERAGE **************************": "", "coverage": "npm run jest -- --coverage", "********************** BUDLE *****************************": "", "bundle": "npm run clear && npm run tsc", "********************** TRANSPILE **************************": "", "tsc": "tsc -p src/tsconfig.app.json", "********************** WATCH ******************************": "", "watch": "concurrently -k -p \"[{name}]\" -n \"TypeScript\" -c \"yellow.bold\" \"npm run watch:ts\"", "watch:ts": "npm run tsc -- -w", "********************** CLEAR **********************": "", "clear": "npm run clear:dist", "clear:dist": "find dist -type f \\( -iname '*.js' -o -iname '*.js.map' -o -iname '*.d.ts' -o -iname '*.d.ts.map' \\) -delete", "********************** CHANGELOG **********************": "", "changelog": "npm run changelog:prepare && npm run changelog:finalize", "changelog:prepare": "npm run changelog:insertBlankline && npm run changelog:insertChanges", "changelog:insertChanges": "git log v$npm_package_version..HEAD --oneline | sed 's/.*/* &/' | cat - CHANGELOG.md > temp.md && mv temp.md CHANGELOG.md", "changelog:insertBlankline": "echo \"\" | cat - CHANGELOG.md > temp.md && mv temp.md CHANGELOG.md", "changelog:finalize": "npm run changelog:addVersion && npm run changelog:edit", "changelog:addVersion": "echo \"## $npm_package_version\n\" | cat - CHANGELOG.md > temp.md && mv temp.md CHANGELOG.md", "changelog:edit": "$EDITOR -w CHANGELOG.md", "changelog:commit": "git commit CHANGELOG.md -m 'update change log'" }, "keywords": [ "node", "js" ], "authors": [ { "name": "Adrian Etter", "email": "<engineering@adrianetter.com", "url": "https://www.adrianetter.com)" } ], "license": "MIT", "repository": { "type": "git", "url": "https://github.com/eydrian/api-controller" }, "bugs": { "url": "https://github.com/eydrian/api-controller/issues" }, "homepage": "https://github.com/eydrian/api-controller#readme", "peerDependencies": { "express": "^4.17.3", "mongoose": "^8.2.1" }, "devDependencies": { "@types/express": "^4.17.21", "@types/jest": "^29.5.12", "@types/mongoose": "^5.11.96", "@types/node": "^20.11.24", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/eslint-plugin-tslint": "^7.0.2", "@typescript-eslint/parser": "^7.1.1", "eslint": "^8.57.0", "eslint-plugin-eslint-vertical-import": "^2.0.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-simple-import-sort": "^12.0.0", "eslint-plugin-unused-imports": "^3.1.0", "express": "^4.18.3", "jest": "^29.7.0", "mongoose": "^8.2.1", "node-mocks-http": "^1.14.1", "ts-jest": "^29.1.2", "typescript": "^5.3.3" } }