UNPKG

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