UNPKG

mage-validator

Version:

Validation utility for MAGE user commands & topics (TypeScript)

89 lines (88 loc) 2.66 kB
{ "name": "mage-validator", "version": "0.9.2", "description": "Validation utility for MAGE user commands & topics (TypeScript)", "main": "./lib/index.js", "types": "./lib/index.d.ts", "scripts": { "postinstall": "node -e \"process.exit(require('is-there')('./lib') ? 0 : 1)\" || npm run build", "build": "tsc --project ./src", "prepublish": "run-s test build", "test:lint": " echo 'Check TypeScript code for style issues' && tslint --type-check -e \"node_modules/**/*.ts\" --format codeFrame --project .", "test:cpd": " echo 'Check the codebase for copy-pasted code' && jscpd --config .cpd.yaml", "test:unit": " echo 'Run unit tests' && mocha --compilers ts:ts-node/register -R mocha-reporter ./test/index.ts", "test:coverage": " echo 'Run unit tests and check coverage level' && nyc --check-coverage --reporter=text --reporter=html npm run test:unit", "test:git": " echo 'Make sure all commits are signed' && git-signed 7e6d985", "test": "run-s test:*" }, "nyc": { "lines": 100, "statements": 100, "functions": 100, "branches": 100, "include": [ "src/*.ts", "src/**/*.ts" ], "exclude": [ "typings" ], "extension": [ ".ts" ], "require": [ "ts-node/register" ], "cache": "true", "instrument": "true", "report-dir": "./coverage-report" }, "repository": { "type": "git", "url": "git+https://github.com/mage/mage-validator.git" }, "keywords": [ "mage", "validator", "typescript" ], "author": "Marc Trudel <mtrudel@wizcorp.jp>", "license": "MIT", "bugs": { "url": "https://github.com/mage/mage-validator/issues" }, "homepage": "https://github.com/mage/mage-validator#readme", "devDependencies": { "@types/mocha": "5.2.5", "@types/node": "10.5.3", "@types/reflect-metadata": "0.1.0", "class-transformer": "0.1.9", "class-validator": "0.9.1", "git-message": "2.0.2", "git-signed": "0.1.3", "jscpd": "0.6.22", "mage": "github:mage/mage#master", "mocha": "5.2.0", "mocha-reporter": "0.1.1", "npm-run-all": "4.1.3", "nyc": "12.0.2", "sinon": "6.1.4", "ts-node": "6.0.5", "tslint": "5.11.0", "typescript": "2.9.2" }, "dependencies": { "deep-iterator": "1.1.0", "function-arguments": "1.0.8", "is-there": "4.4.3", "isobject": "3.0.1", "reflect-metadata": "0.1.12" }, "contributors": [ { "name": "stelcheck", "email": "mtrudel@wizcorp.jp", "key": "hkp://keys.gnupg.net#9115133EDCD7C42B13C1890DFCF165CCB3B5B506" } ] }