package.json
{
"name": "generic-model-bookshelf",
"version": "0.7.1",
"description": "Generic model for bookshelf (ORM)",
"main": "lib/GenericModel.js",
"directories": {
"lib": "./lib",
"doc": "./docs",
"test": "./tests"
},
"scripts": {
"lint": "cross-env NODE_ENV=test eslint -c ./.eslintrc.json \"lib/**/*.js\" \"tests/**/*.js\"",
"docs": "documentation build lib/** -f html -o docs",
"docs:readme": "documentation readme --section API",
"mocha": "cross-env NODE_ENV=test _mocha --opts mocha.opts",
"migrate": "knex --knexfile ./knexfile.js migrate:latest",
"test": "cross-env TZ=UTC NODE_ENV=test npm run migrate && npm run lint && npm run test:coverage",
"test:watch": "cross-env TZ=UTC NODE_ENV=test npm run migrate && npm run lint && npm run mocha -- --watch",
"test:coverage": "cross-env NODE_ENV=test nyc --reporter=text-summary --reporter=lcov --reporter=cobertura --report-dir=./coverage --reporter=html npm run mocha -- --reporter=min --exit",
"update:docs": "npm run docs && git add docs/. && git diff-index --quiet HEAD || git commit -m 'docs: updating `docs`'",
"update-version": "node -e 'require(\"@contartec-team/version-release\").updateVersion()'",
"release-version": "node -e 'require(\"@contartec-team/version-release\").releaseVersion()'"
},
"repository": {
"type": "git",
"url": "https://github.com/contartec-team/generic-model-bookshelf.git"
},
"keywords": [
"node",
"js",
"bookshelf",
"generic",
"model"
],
"author": "contartec",
"license": "MIT",
"dependencies": {
"@contartec-team/object-utils": "https://github.com/contartec-team/object-utils.git",
"bookshelf-virtuals-plugin": "^0.1.1",
"dotenv": "^10.0.0",
"moment": "^2.29.1",
"validate.js": "^0.13.0"
},
"devDependencies": {
"@contartec-team/git-hooks": "git+https://github.com/contartec-team/git-hooks.git",
"@contartec-team/version-release": "^0.1.0",
"bookshelf": "1.1.x",
"bookshelf-modelbase": "^2.10.1",
"bookshelf-soft-delete": "^5.0.0",
"chai": "^3.5.0",
"chai-as-promised": "^7.1.1",
"chai-shallow-deep-equal": "^1.4.6",
"chai-things": "^0.2.0",
"co": "^4.6.0",
"co-mocha": "^1.1.3",
"codecov": "^3.8.0",
"cross-env": "^7.0.3",
"documentation": "^13.2.0",
"eslint": "^8.0.0",
"husky": "^7.0.0",
"jsdoc": "^3.6.2",
"knex": "^0.95.0",
"knex-cleaner": "^1.3.1",
"mocha": "^6.1.4",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^15.1.0",
"pg": "^8.7.0",
"sinon": "^11.1.0",
"sinon-as-promised": "^4.0.2",
"sinon-chai": "^3.7.0"
},
"husky": {
"hooks": {
"pre-push": "npm run lint && npm run update:docs"
}
},
"nyc": {
"exclude": [
"*.js",
"tests",
"enums"
]
}
}