UNPKG

@toryt/contracts

Version:

Design-by-Contract and Test-by-Contract for JavaScript

115 lines (114 loc) 4.38 kB
{ "name": "@toryt/contracts", "version": "8.0.0", "description": "Design-by-Contract and Test-by-Contract for JavaScript", "main": "lib/index.js", "directories": { "test": "test" }, "scripts": { "status": "knip; ncu; npm audit || exit 0", "lint": "eslint \"{test,lib}/**/*\"", "test": "npm run lint && nyc mocha 'test/**/*Test.js'", "reportCoverage": "nyc report --reporter=text-lcov > coverage.lcov", "browserify": "browserify -s toryt.contracts.v --outfile contracts-v.js lib/index.js", "browserifyTest": "browserify -r should --outfile browser/test/suite.js test/**/*Test.js", "browserTest": "mochify --allow-chrome-as-root 'test/**/*Test.js'", "watch": "mochify --watch --reporter min 'test/**/*Test.js'", "wd": "mochify --wd --wd-file .min-wd.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:google_pixel_4xl": "mochify --wd --wd-file .min-wd-google_pixel_4xl.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:ipad_pro": "mochify --wd --wd-file .min-wd-ipad_pro.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:iphone_11": "mochify --wd --wd-file .min-wd-iphone_11.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:osx-chrome": "mochify --wd --wd-file .min-wd-osx-chrome.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:osx-edge": "mochify --wd --wd-file .min-wd-osx-edge.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:osx-firefox": "mochify --wd --wd-file .min-wd-osx-firefox.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:osx-safari": "mochify --wd --wd-file .min-wd-osx-safari.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:samsung_galaxy_s9": "mochify --wd --wd-file .min-wd-samsung_galaxy_s9.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:samsung_galaxy_s20": "mochify --wd --wd-file .min-wd-samsung_galaxy_s20.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:samsung_galaxy_tab_s6": "mochify --wd --wd-file .min-wd-samsung_galaxy_tab_s6.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:windows-chrome": "mochify --wd --wd-file .min-wd-windows-chrome.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:windows-edge": "mochify --wd --wd-file .min-wd-windows-edge.js --async-polling false --reporter dot 'test/**/*Test.js'", "wd:windows-firefox": "mochify --wd --wd-file .min-wd-windows-firefox.js --async-polling false --reporter dot 'test/**/*Test.js'", "format": "prettier -w .", "preversion": "npm run test", "upgrade": "rm -Rf node_modules package-lock.json && npm install && npm test" }, "repository": { "type": "git", "url": "git+https://bitbucket.org/toryt/contracts.git" }, "keywords": [ "design-by-contract", "test-by-contract", "Toryt", "unit", "test", "contract", "contracts", "precondition", "postcondition", "invariant" ], "author": { "name": "Jan Dockx", "email": "jandockx@gmail.com" }, "contributors": [], "license": "Apache-2.0", "homepage": "https://bitbucket.org/toryt/contracts", "bugs": { "url": "https://bitbucket.org/toryt/contracts/issues" }, "engines": { "node": ">=v20.19.4" }, "devDependencies": { "@types/node": "^24.3.0", "browserify": "^17.0.1", "eslint": "^9.34.0", "eslint-plugin-depend": "^1.2.0", "eslint-plugin-json": "^4.0.1", "eslint-plugin-no-secrets": "^2.2.1", "globals": "^16.3.0", "just.randomstring": "^0.1.1", "knip": "^5.63.1", "mocha": "^11.7.2", "mochify": "^9.2.0", "neostandard": "^0.12.2", "npm-check-updates": "^18.0.3", "nyc": "^17.1.0", "prettier": "^3.6.2", "should": "^13.2.3", "typescript": "^5.9.2" }, "prettier": { "printWidth": 120, "proseWrap": "always", "endOfLine": "lf", "arrowParens": "avoid", "semi": false, "singleQuote": true, "trailingComma": "none" }, "mocha": { "require": [ "should" ], "checkLeaks": true, "reporter": "dot", "recursive": true }, "nyc": { "check-coverage": true, "per-file": true, "lines": 100, "statements": 100, "functions": 100, "branches": 100, "reporter": [ "html", "text" ] }, "notes": {} }