1 | {
|
2 | "name": "testdouble",
|
3 | "version": "3.9.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 | "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 \"**/*.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 | "es6-map": "^0.1.5",
|
87 | "lodash": "^4.17.11",
|
88 | "quibble": "^0.5.5",
|
89 | "stringify-object-es5": "^2.5.0",
|
90 | "theredoc": "^1.0.0"
|
91 | },
|
92 | "devDependencies": {
|
93 | "browserify": "^16.2.3",
|
94 | "codeclimate-test-reporter": "^0.5.1",
|
95 | "cross-conf-env": "^1.1.2",
|
96 | "eslint-plugin-typescript": "^0.12.0",
|
97 | "headerify": "^1.0.1",
|
98 | "is-number": "^7.0.0",
|
99 | "mkdirp": "^0.5.1",
|
100 | "npm-run-all": "^4.1.5",
|
101 | "nyc": "^13.0.1",
|
102 | "pryjs": "^1.0.3",
|
103 | "rimraf": "^2.6.2",
|
104 | "standard": "^12.0.1",
|
105 | "teenytest": "^5.1.1",
|
106 | "testdouble": "^3.8.1",
|
107 | "ts-node": "^7.0.1",
|
108 | "tsify": "^4.0.0",
|
109 | "typescript": "^3.1.1",
|
110 | "typescript-eslint-parser": "^20.0.0"
|
111 | },
|
112 | "directories": {
|
113 | "doc": "./docs",
|
114 | "example": "./examples",
|
115 | "lib": "./lib",
|
116 | "src": "./src"
|
117 | },
|
118 | "typings": "./index.d.ts",
|
119 | "keywords": [
|
120 | "tdd",
|
121 | "bdd",
|
122 | "mock",
|
123 | "stub",
|
124 | "spy",
|
125 | "test double",
|
126 | "double"
|
127 | ],
|
128 | "bugs": {
|
129 | "url": "https://github.com/testdouble/testdouble.js/issues"
|
130 | },
|
131 | "repository": {
|
132 | "type": "git",
|
133 | "url": "https://github.com/testdouble/testdouble.js.git"
|
134 | },
|
135 | "license": "MIT",
|
136 | "engines": {
|
137 | "node": ">= 4.0.0"
|
138 | }
|
139 | }
|