82 строки
2.0 KiB
JSON
82 строки
2.0 KiB
JSON
{
|
|
"name": "nise",
|
|
"version": "5.1.4",
|
|
"description": "Fake XHR and server",
|
|
"keywords": [
|
|
"test",
|
|
"testing",
|
|
"fake",
|
|
"mock",
|
|
"xhr",
|
|
"server"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "http://github.com/sinonjs/nise.git"
|
|
},
|
|
"main": "lib/index.js",
|
|
"module": "nise.js",
|
|
"scripts": {
|
|
"bundle": "browserify --no-detect-globals -s nise -o nise.js lib/index.js",
|
|
"lint": "eslint .",
|
|
"prettier:check": "prettier --check '**/*.{js,css,md}'",
|
|
"prettier:write": "prettier --write '**/*.{js,css,md}'",
|
|
"prepare": "npm run bundle",
|
|
"prepublishOnly": "mkdocs gh-deploy -r upstream || mkdocs gh-deploy -r origin",
|
|
"test": "mocha lib/**/*.test.js",
|
|
"test:coverage": "nyc --reporter=lcov --reporter=text --all npm test -- --reporter dot",
|
|
"test:headless": "mochify --https-server --plugin [ proxyquire-universal ] --no-detect-globals test/global-hack.js lib/**/*.test.js"
|
|
},
|
|
"browser": {
|
|
"jsdom": false,
|
|
"jsdom-global": false
|
|
},
|
|
"author": "",
|
|
"license": "BSD-3-Clause",
|
|
"nyc": {
|
|
"exclude": [
|
|
"nise.js",
|
|
"coverage/**",
|
|
"**/*.test.js"
|
|
]
|
|
},
|
|
"files": [
|
|
"nise.js",
|
|
"lib/**/*.js",
|
|
"!lib/**/*.test.js"
|
|
],
|
|
"devDependencies": {
|
|
"@sinonjs/eslint-config": "^4.0.5",
|
|
"@sinonjs/referee": "^9.1.1",
|
|
"browserify": "^16.2.3",
|
|
"husky": "^4.2.1",
|
|
"jsdom": "^16.2.0",
|
|
"jsdom-global": "3.0.2",
|
|
"lint-staged": "^10.5.3",
|
|
"mocha": "^10.1.0",
|
|
"mochify": "^9.2.0",
|
|
"nyc": "^15.0.0",
|
|
"prettier": "^1.19.1",
|
|
"proxyquire": "^2.1.3",
|
|
"proxyquire-universal": "^2.1.0",
|
|
"proxyquireify": "^3.2.1",
|
|
"sinon": ">=9"
|
|
},
|
|
"dependencies": {
|
|
"@sinonjs/commons": "^2.0.0",
|
|
"@sinonjs/fake-timers": "^10.0.2",
|
|
"@sinonjs/text-encoding": "^0.7.1",
|
|
"just-extend": "^4.0.2",
|
|
"path-to-regexp": "^1.7.0"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,css,md}": "prettier --check",
|
|
"*.js": "eslint --quiet"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "lint-staged"
|
|
}
|
|
}
|
|
}
|