UNPKG

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