1 | {
|
2 | "name": "sinon",
|
3 | "description": "JavaScript test spies, stubs and mocks.",
|
4 | "version": "8.1.1",
|
5 | "homepage": "https://sinonjs.org/",
|
6 | "author": "Christian Johansen",
|
7 | "repository": {
|
8 | "type": "git",
|
9 | "url": "http://github.com/sinonjs/sinon.git"
|
10 | },
|
11 | "bugs": {
|
12 | "url": "http://github.com/sinonjs/sinon/issues"
|
13 | },
|
14 | "funding": {
|
15 | "type": "opencollective",
|
16 | "url": "https://opencollective.com/sinon"
|
17 | },
|
18 | "license": "BSD-3-Clause",
|
19 | "scripts": {
|
20 | "test-node": "mocha --recursive -R dot \"test/**/*-test.js\"",
|
21 | "test-dev": "npm run test-node -- --watch -R min",
|
22 | "test-headless": "mochify --no-detect-globals --recursive -R dot --grep WebWorker --invert --plugin [ proxyquire-universal ] \"test/**/*-test.js\"",
|
23 | "test-coverage": "nyc npm run test-headless -- --transform [ babelify --ignore [ test ] --plugins [ babel-plugin-istanbul ] ]",
|
24 | "test-cloud": "npm run test-headless -- --wd",
|
25 | "test-webworker": "mochify --no-detect-globals --https-server 8080 --no-request-interception test/webworker/webworker-support-assessment.js",
|
26 | "test-esm": "mocha -r esm test/es2015/module-support-assessment-test.es6",
|
27 | "test-esm-bundle": "node test/es2015/check-esm-bundle-is-runnable.js",
|
28 | "test-docker-image": "docker-compose up",
|
29 | "test": "run-s test-node test-headless test-webworker test-esm",
|
30 | "check-dependencies": "dependency-check package.json --no-dev --ignore-module esm",
|
31 | "build": "node ./build.js",
|
32 | "build-docs": "cd docs; bundle exec jekyll build",
|
33 | "serve-docs": "cd docs; bundle exec jekyll serve --incremental --verbose",
|
34 | "lint": "run-p lint-js lint-markdown",
|
35 | "lint-js": "eslint '**/*.{js,mjs}'",
|
36 | "lint-markdown": "find docs -type f -name '*.md' ! -name 'changelog.md' | xargs markdownlint",
|
37 | "pretest-webworker": "npm run build",
|
38 | "prebuild": "rimraf pkg && npm run check-dependencies",
|
39 | "postbuild": "npm run test-esm-bundle",
|
40 | "prepublishOnly": "npm run build",
|
41 | "prettier": "prettier lib/**/*.js test/**/*.js",
|
42 | "preversion": "./scripts/preversion.sh",
|
43 | "postversion": "./scripts/postversion.sh"
|
44 | },
|
45 | "nyc": {
|
46 | "instrument": false,
|
47 | "temp-dir": "coverage/.nyc_output",
|
48 | "reporter": [
|
49 | "text",
|
50 | "lcovonly"
|
51 | ]
|
52 | },
|
53 | "lint-staged": {
|
54 | "*.js": "eslint",
|
55 | "*.mjs": "eslint --ext mjs --parser-options=sourceType:module",
|
56 | "docs/**/*.md": "markdownlint"
|
57 | },
|
58 | "dependencies": {
|
59 | "@sinonjs/commons": "^1.7.0",
|
60 | "@sinonjs/formatio": "^4.0.1",
|
61 | "@sinonjs/samsam": "^4.2.2",
|
62 | "diff": "^4.0.2",
|
63 | "lolex": "^5.1.2",
|
64 | "nise": "^3.0.1",
|
65 | "supports-color": "^7.1.0"
|
66 | },
|
67 | "devDependencies": {
|
68 | "@babel/core": "^7.8.3",
|
69 | "@sinonjs/referee": "^4.0.0",
|
70 | "babel-plugin-istanbul": "^6.0.0",
|
71 | "babelify": "^10.0.0",
|
72 | "browserify": "^16.5.0",
|
73 | "dependency-check": "^4.1.0",
|
74 | "eslint": "^6.8.0",
|
75 | "eslint-config-prettier": "^6.9.0",
|
76 | "eslint-config-sinon": "^3.0.0",
|
77 | "eslint-plugin-ie11": "^1.0.0",
|
78 | "eslint-plugin-local-rules": "^0.1.0",
|
79 | "eslint-plugin-mocha": "^6.1.0",
|
80 | "eslint-plugin-prettier": "^3.1.0",
|
81 | "esm": "^3.2.25",
|
82 | "husky": "^3.0.8",
|
83 | "lint-staged": "^9.4.1",
|
84 | "markdownlint-cli": "^0.20.0",
|
85 | "mocha": "^6.2.0",
|
86 | "mochify": "^6.6.0",
|
87 | "npm-run-all": "^4.1.5",
|
88 | "nyc": "^15.0.0",
|
89 | "prettier": "^1.18.2",
|
90 | "proxyquire": "^2.1.3",
|
91 | "proxyquire-universal": "^2.1.0",
|
92 | "proxyquireify": "^3.2.1",
|
93 | "puppeteer": "^1.19.0",
|
94 | "rimraf": "^3.0.0"
|
95 | },
|
96 | "files": [
|
97 | "lib",
|
98 | "pkg",
|
99 | "scripts/support-sinon.js",
|
100 | "AUTHORS",
|
101 | "CONTRIBUTING.md",
|
102 | "CHANGELOG.md",
|
103 | "LICENSE",
|
104 | "README.md"
|
105 | ],
|
106 | "browser": "./lib/sinon.js",
|
107 | "main": "./lib/sinon.js",
|
108 | "module": "./pkg/sinon-esm.js",
|
109 | "cdn": "./pkg/sinon.js",
|
110 | "jsdelivr": "./pkg/sinon.js",
|
111 | "esm": {
|
112 | "cjs": {
|
113 | "mutableNamespace": false,
|
114 | "cache": true
|
115 | },
|
116 | "mode": "auto"
|
117 | },
|
118 | "husky": {
|
119 | "hooks": {
|
120 | "pre-commit": "lint-staged"
|
121 | }
|
122 | }
|
123 | }
|