1 | {
|
2 | "name": "testdouble",
|
3 | "version": "3.16.6",
|
4 | "description": "A minimal test double library for TDD with JavaScript",
|
5 | "homepage": "https://github.com/testdouble/testdouble.js",
|
6 | "author": {
|
7 | "name": "Justin Searls",
|
8 | "email": "justin@testdouble.com",
|
9 | "url": "http://testdouble.com"
|
10 | },
|
11 | "main": "lib/index.js",
|
12 | "exports": {
|
13 | ".": {
|
14 | "types": "./index.d.ts",
|
15 | "require": "./lib/index.js",
|
16 | "import": "./lib/index.mjs"
|
17 | },
|
18 | "./": "./"
|
19 | },
|
20 | "files": [
|
21 | "src",
|
22 | "lib",
|
23 | "dist",
|
24 | "index.d.ts"
|
25 | ],
|
26 | "config": {
|
27 | "build_file": "dist/testdouble.js"
|
28 | },
|
29 | "scripts": {
|
30 | "clean": "rimraf dist lib coverage",
|
31 | "clean:hard": "npm run clean && rimraf node_modules \"examples/*/node_modules\"",
|
32 | "postclean": "mkdirp dist",
|
33 | "compile:browser": "cross-conf-env browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p [ tsify --project tsconfig-browser.json ] -p headerify",
|
34 | "compile:node": "tsc",
|
35 | "compile:esm": "cp src/index.mjs lib/index.mjs",
|
36 | "precompile": "npm run clean",
|
37 | "compile": "run-s compile:node compile:browser compile:esm",
|
38 | "cover": "nyc --reporter=lcov --reporter=text-summary --reporter=html npm test",
|
39 | "cover:report": "codeclimate-test-reporter < coverage/lcov.info",
|
40 | "cover:ci": "if test \"`node -v | awk '{print substr($1, 2, 1)}'`\" = \"8\" ; then run-s cover cover:report ; fi",
|
41 | "style": "run-p style:js style:ts",
|
42 | "style:js": "standard --fix",
|
43 | "style:ts": "standard --fix --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin \"**/*.ts\"",
|
44 | "test": "run-s test:unit test:safe test:esm test:no-loader-esm test:example",
|
45 | "test:unit": "teenytest --helper test/helper.js \"test/unit/**/*.test.{js,ts}\"",
|
46 | "test:safe": "teenytest --helper test/helper.js \"test/safe/**/*.test.{js,ts}\"",
|
47 | "test:esm": "if node test/supports-esm.js; then NODE_OPTIONS='--loader=quibble' TS_NODE_IGNORE='(?:^|/)node_modules/,notypescript' ./test/safe-esm/teenytest-proxy.js --helper test/helper.js test/safe-esm/replace.test.js; fi",
|
48 | "test:no-loader-esm": "if node test/supports-esm.js; then TS_NODE_IGNORE='(?:^|/)node_modules/,notypescript' teenytest test/helper.js './test/safe-esm/*.no-loader-test.{mjs,js}'; fi",
|
49 | "test:ci": "npm run compile && run-p style test && echo \"All done!\"",
|
50 | "test:example": "run-p test:example:babel test:example:jest test:example:jest-broken test:example:plain-html test:example:node test:example:node-ava test:example:webpack test:example:node-esm",
|
51 | "test:example:babel": "./script/run-examples babel",
|
52 | "test:example:jest": "./script/run-examples jest",
|
53 | "test:example:jest-broken": "./script/run-examples jest-broken",
|
54 | "test:example:plain-html": "./script/run-examples plain-html",
|
55 | "test:example:node": "./script/run-examples node",
|
56 | "test:example:node-ava": "./script/run-examples node-ava",
|
57 | "test:example:node-esm": "if node test/supports-esm.js; then ./script/run-examples node-esm; fi",
|
58 | "test:example:webpack": "./script/run-examples webpack",
|
59 | "version:write": "echo \"export default '$npm_package_version'\" > src/version.js",
|
60 | "preversion": "git pull --rebase",
|
61 | "version": "npm run version:write && npm run compile && git add src/version.js",
|
62 | "postversion": "git push --tags && git push && npm publish",
|
63 | "prepare": "npm run compile"
|
64 | },
|
65 | "browser": {
|
66 | "./src/replace/module/index.js": "./src/replace/module/index.browser.js",
|
67 | "./lib/replace/module/index.js": "./lib/replace/module/index.browser.js",
|
68 | "quibble": "./src/quibble.browser.js"
|
69 | },
|
70 | "standard": {
|
71 | "globals": [
|
72 | "td",
|
73 | "assert",
|
74 | "ES_SUPPORT"
|
75 | ],
|
76 | "ignore": [
|
77 | "index.d.ts",
|
78 | "examples/**"
|
79 | ]
|
80 | },
|
81 | "nyc": {
|
82 | "include": [
|
83 | "src/**/*.js"
|
84 | ],
|
85 | "exclude": [
|
86 | "examples"
|
87 | ],
|
88 | "all": true
|
89 | },
|
90 | "teenytest": {
|
91 | "plugins": [
|
92 | "test/support/tdify-plugin.js",
|
93 | "teenytest-promise"
|
94 | ]
|
95 | },
|
96 | "dependencies": {
|
97 | "lodash": "^4.17.15",
|
98 | "quibble": "^0.6.7",
|
99 | "stringify-object-es5": "^2.5.0",
|
100 | "theredoc": "^1.0.0"
|
101 | },
|
102 | "devDependencies": {
|
103 | "@types/node": "^13.7.6",
|
104 | "@typescript-eslint/eslint-plugin": "^2.21.0",
|
105 | "@typescript-eslint/parser": "^2.21.0",
|
106 | "browserify": "^16.5.0",
|
107 | "codeclimate-test-reporter": "^0.5.1",
|
108 | "cross-conf-env": "^1.1.2",
|
109 | "dedent": "^0.7.0",
|
110 | "headerify": "^1.0.1",
|
111 | "is-number": "^7.0.0",
|
112 | "is-promise": "^4.0.0",
|
113 | "mkdirp": "^1.0.3",
|
114 | "npm-run-all": "^4.1.5",
|
115 | "nyc": "^15.0.0",
|
116 | "rimraf": "^3.0.2",
|
117 | "standard": "^14.3.1",
|
118 | "teenytest": "^6.0.2",
|
119 | "teenytest-promise": "^1.0.0",
|
120 | "testdouble": "^3.12.5",
|
121 | "ts-node": "^8.10.1",
|
122 | "tsify": "^4.0.1",
|
123 | "typescript": "^3.8.2"
|
124 | },
|
125 | "directories": {
|
126 | "doc": "./docs",
|
127 | "example": "./examples",
|
128 | "lib": "./lib",
|
129 | "src": "./src"
|
130 | },
|
131 | "typings": "./index.d.ts",
|
132 | "keywords": [
|
133 | "tdd",
|
134 | "bdd",
|
135 | "mock",
|
136 | "stub",
|
137 | "spy",
|
138 | "test double",
|
139 | "double"
|
140 | ],
|
141 | "bugs": {
|
142 | "url": "https://github.com/testdouble/testdouble.js/issues"
|
143 | },
|
144 | "repository": {
|
145 | "type": "git",
|
146 | "url": "https://github.com/testdouble/testdouble.js.git"
|
147 | },
|
148 | "license": "MIT",
|
149 | "engines": {
|
150 | "node": ">= 4.0.0"
|
151 | }
|
152 | }
|