|
9 | 9 | "url": "http://testdouble.com" |
10 | 10 | }, |
11 | 11 | "main": "lib/index.js", |
12 | | - "files": [ |
13 | | - "src", |
14 | | - "lib", |
15 | | - "dist", |
16 | | - "index.d.ts" |
17 | | - ], |
| 12 | + "files": ["src", "lib", "dist", "index.d.ts"], |
18 | 13 | "config": { |
19 | 14 | "build_file": "dist/testdouble.js" |
20 | 15 | }, |
21 | 16 | "scripts": { |
22 | | - "clean": "rm -rf dist lib coverage", |
| 17 | + "clean": "rimraf dist lib coverage", |
23 | 18 | "postclean": "mkdirp dist", |
24 | | - "compile:browser": "browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p tsify -p headerify", |
| 19 | + "compile:browser": |
| 20 | + "cross-conf-env browserify src/index.js --standalone td --outfile $npm_package_config_build_file -p tsify -p headerify", |
25 | 21 | "compile:node": "tsc", |
26 | 22 | "precompile": "npm run clean", |
27 | 23 | "compile": "run-s compile:node compile:browser", |
28 | 24 | "cover": "nyc --reporter=lcov --reporter=text-summary --reporter=html npm test", |
29 | 25 | "cover:report": "codeclimate-test-reporter < coverage/lcov.info", |
30 | 26 | "style": "run-p style:js style:ts", |
31 | 27 | "style:js": "standard --fix", |
32 | | - "style:ts": "standard --fix --parser typescript-eslint-parser --plugin typescript \"**/*.ts\"", |
| 28 | + "style:ts": |
| 29 | + "standard --fix --parser typescript-eslint-parser --plugin typescript \"**/*.ts\"", |
33 | 30 | "test": "teenytest --helper test/helper.js \"test/**/*.test.{js,ts}\"", |
34 | 31 | "test:all": "run-s test test:example", |
35 | 32 | "test:unit": "teenytest --helper test/helper.js \"test/unit/**/*.test.{js,ts}\"", |
36 | 33 | "test:safe": "teenytest --helper test/helper.js \"test/safe/**/*.test.{js,ts}\"", |
37 | 34 | "test:ci": "npm run compile && run-p style test:all && echo \"All done!\"", |
38 | | - "test:example": "npm link && run-p test:example:babel test:example:jest test:example:jest-broken test:example:plain-html test:example:node test:example:webpack", |
| 35 | + "test:example": |
| 36 | + "npm link && run-p test:example:babel test:example:jest test:example:jest-broken test:example:plain-html test:example:node test:example:webpack", |
39 | 37 | "test:example:babel": "./script/run-examples babel", |
40 | 38 | "test:example:jest": "./script/run-examples jest", |
41 | 39 | "test:example:jest-broken": "./script/run-examples jest-broken", |
42 | 40 | "test:example:plain-html": "./script/run-examples plain-html", |
43 | 41 | "test:example:node": "./script/run-examples node", |
44 | 42 | "test:example:webpack": "./script/run-examples webpack", |
45 | 43 | "version:write": "echo \"export default '$npm_package_version'\" > src/version.js", |
46 | | - "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", |
| 44 | + "version:changelog": |
| 45 | + "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", |
47 | 46 | "preversion": "git pull --rebase && npm run test:ci", |
48 | 47 | "version": "npm run version:write && npm run compile && git add src/version.js", |
49 | | - "postversion": "git push --tags && npm run version:changelog && git push && npm publish", |
| 48 | + "postversion": |
| 49 | + "git push --tags && npm run version:changelog && git push && npm publish", |
50 | 50 | "prepare": "npm run compile" |
51 | 51 | }, |
52 | 52 | "browser": { |
53 | 53 | "./src/replace/module.js": "./src/replace/module.browser.js", |
54 | 54 | "quibble": "./src/quibble.browser.js" |
55 | 55 | }, |
56 | 56 | "standard": { |
57 | | - "globals": [ |
58 | | - "td", |
59 | | - "assert", |
60 | | - "ES_SUPPORT" |
61 | | - ], |
62 | | - "ignore": [ |
63 | | - "index.d.ts", |
64 | | - "examples/**" |
65 | | - ] |
| 57 | + "globals": ["td", "assert", "ES_SUPPORT"], |
| 58 | + "ignore": ["index.d.ts", "examples/**"] |
66 | 59 | }, |
67 | 60 | "nyc": { |
68 | | - "include": [ |
69 | | - "src/**/*.js" |
70 | | - ], |
71 | | - "exclude": [ |
72 | | - "examples" |
73 | | - ], |
| 61 | + "include": ["src/**/*.js"], |
| 62 | + "exclude": ["examples"], |
74 | 63 | "all": true |
75 | 64 | }, |
76 | 65 | "teenytest": { |
77 | | - "plugins": [ |
78 | | - "test/support/tdify-plugin.js" |
79 | | - ] |
| 66 | + "plugins": ["test/support/tdify-plugin.js"] |
80 | 67 | }, |
81 | 68 | "dependencies": { |
82 | 69 | "es6-map": "^0.1.5", |
|
87 | 74 | "devDependencies": { |
88 | 75 | "browserify": "^16.1.0", |
89 | 76 | "codeclimate-test-reporter": "^0.5.0", |
| 77 | + "cross-conf-env": "^1.1.2", |
90 | 78 | "eslint-plugin-typescript": "^0.9.0", |
91 | 79 | "headerify": "^1.0.1", |
92 | 80 | "is-number": "^5.0.0", |
93 | 81 | "mkdirp": "^0.5.1", |
94 | 82 | "npm-run-all": "^4.1.2", |
95 | 83 | "nyc": "^11.5.0", |
96 | 84 | "pryjs": "^1.0.3", |
| 85 | + "rimraf": "^2.6.2", |
97 | 86 | "standard": "^11.0.0", |
98 | 87 | "teenytest": "^5.1.1", |
99 | 88 | "testdouble": "^3.5.0", |
|
109 | 98 | "src": "./src" |
110 | 99 | }, |
111 | 100 | "typings": "./index.d.ts", |
112 | | - "keywords": [ |
113 | | - "tdd", |
114 | | - "bdd", |
115 | | - "mock", |
116 | | - "stub", |
117 | | - "spy", |
118 | | - "test double", |
119 | | - "double" |
120 | | - ], |
| 101 | + "keywords": ["tdd", "bdd", "mock", "stub", "spy", "test double", "double"], |
121 | 102 | "bugs": { |
122 | 103 | "url": "https://github.com/testdouble/testdouble.js/issues" |
123 | 104 | }, |
|
0 commit comments