UNPKG

json-routing

Version:

JSON configurable MVC routing for express 4

112 lines (111 loc) 2.73 kB
{ "name": "json-routing", "description": "JSON configurable MVC routing for express 4", "version": "2.0.10", "author": "Giorgio Modoni <modogio@gmail.com>", "homepage": "http://gimox.github.io/json-routing", "main": "./build/json-route.js", "repository": { "type": "git", "url": "https://github.com/gimox/json-routing" }, "bugs": { "url": "https://github.com/gimox/json-routing/issues" }, "scripts": { "test": "npm run test:coverage", "test:mocha": "mocha --compilers $(npm bin)/ts:ts-node/register ./test.ts", "start": "npm run live", "build:release": "npm run build && npm run doc", "live": "nodemon --exec $(npm bin)/ts-node -- ./demo/server.ts", "build": "rm -rf ./build && npm run lint && $(npm bin)/tsc -p tsconfig.json", "lint": "tslint --config ./tslint.json ./demo/server.ts", "doc": "typedoc --out ./doc ./src/json-routing.ts", "test:coverage": "nyc mocha --compilers ts:ts-node/register ./test.ts", "test:coverage:check": "nyc check-coverage --lines 75 --functions 75 --branches 75", "test:coverage:report": "nyc report", "test:coverage:coveralls": "nyc report --reporter=text-lcov | ./node_modules/coveralls/bin/coveralls.js" }, "license": "MIT", "devDependencies": { "@types/chai": "^3.4.35", "@types/chai-http": "0.0.30", "@types/cors": "^2.8.1", "@types/mocha": "^2.2.40", "chai": "^3.5.0", "chai-http": "^3.0.0", "coveralls": "^2.13.0", "mocha": "^3.2.0", "nodemon": "^1.11.0", "nyc": "^10.2.0", "pre-push": "^0.1.1", "ts-node": "^3.0.2", "tslint": "^4.5.1", "typedoc": "^0.5.5", "typescript": "^2.2.2" }, "engines": { "node": ">=6.9.1" }, "dependencies": { "@types/body-parser": "^1.16.3", "@types/express": "^4.0.35", "@types/express-jwt": "0.0.35", "@types/node": "^7.0.0", "body-parser": "^1.17.2", "cli-table": "^0.3.1", "express": "^4.15.2", "express-jwt": "^5.3.0", "express-validator": "^3.2.0" }, "keywords": [ "routes", "route", "cors", "json-route", "json", "route-config", "express", "route-config" ], "nyc": { "lines": 70, "statements": 70, "functions": 60, "branches": 60, "extension": [ ".ts", ".tsx" ], "exclude": [ "**/*.d.ts", "demo", "test.ts" ], "require": [ "ts-node/register" ], "check-coverage": true, "watermarks": { "lines": [ 80, 95 ], "functions": [ 80, 95 ], "branches": [ 80, 95 ], "statements": [ 80, 95 ] } }, "pre-push": [ "test" ] }