-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
executable file
·151 lines (151 loc) · 5.11 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "jest-html",
"version": "1.5.0",
"description": "Preview Jest snapshots right in your browser",
"bin": {
"jest-html": "lib/previewer.js"
},
"main": "lib/serializer/",
"engines": {
"node": ">=6"
},
"author": "Guillermo Grau Panea",
"license": "MIT",
"keywords": [
"Jest",
"test",
"snapshot",
"serializer",
"html",
"preview"
],
"homepage": "https://github.com/guigrpa/jest-html#readme",
"bugs": {
"url": "https://github.com/guigrpa/jest-html/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/guigrpa/jest-html.git"
},
"scripts": {
"start": "node lib/server/startup",
"startProd": "node lib/previewer",
"compile": "rm -rf ./lib && mkdir lib && babel --out-dir lib --ignore \"**/__mocks__/**\",\"**/__tests__/**\" --copy-files src",
"compileWatch": "yarn compile -w",
"docs": "extract-docs --template docs/templates/README.md --output README.md",
"build": "yarn lint && yarn flow && yarn compile && yarn buildClient && yarn test && yarn docs && yarn xxl",
"buildClient": "yarn build:webpack -p --mode production --env.NODE_ENV=production",
"buildClientWatch": "yarn build:webpack --mode development -w",
"build:webpack": "webpack --config ./src/webpackConfig.js --color --progress --display-chunks",
"travis": "yarn compile && yarn testCovFullExceptMin",
"lint": "eslint src",
"flow": "flow check || exit 0",
"prettier": "prettier --single-quote --trailing-comma es5 --write \"src/**/*.js\"",
"test": "yarn testCovFull",
"testCovFull": "yarn testCovPrepare && yarn testDev && yarn testProd && yarn testCovReport",
"testCovFullExceptMin": "yarn testCovPrepare && yarn testDev && yarn testProd && yarn testCovReport",
"testCovFast": "yarn testCovPrepare && yarn testDev && yarn testCovReport",
"jest": "jest --watch --coverage",
"jestDebug": "node --debug-brk --inspect node_modules/.bin/jest -i",
"testCovPrepare": "rm -rf ./coverage .nyc_output .nyc_tmp && mkdir .nyc_tmp",
"testDev": "NODE_ENV=development jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-dev.json",
"testProd": "NODE_ENV=production jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-prod.json",
"testMin": "TEST_MINIFIED_LIB=1 jest --coverage && mv .nyc_output/coverage-final.json .nyc_tmp/coverage-min.json",
"testCovReport": "cp .nyc_tmp/* .nyc_output/ && nyc report --reporter=html --reporter=lcov --reporter=text"
},
"dependencies": {
"babel-polyfill": "6.26.0",
"body-parser": "^1.18.3",
"chokidar": "^2.0.4",
"commander": "^2.17.1",
"escape-html": "1.0.3",
"express": "^4.16.3",
"globby": "^8.0.1",
"lodash.debounce": "4.0.8",
"opn": "^5.3.0",
"pretty-format": "^23.5.0",
"socket.io": "^2.1.1",
"storyboard": "^3.1.4",
"storyboard-preset-console": "^3.1.4",
"timm": "^1.6.1",
"whatwg-fetch": "^2.0.4"
},
"peerDependencies": {
"jest": ">= 17.0.0"
},
"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.0.0",
"babel-loader": "^7.1.5",
"babel-preset-es2015": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"coveralls": "^3.0.2",
"css-loader": "^1.0.0",
"eslint": "^5.3.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"extract-docs": "^1.6.1",
"file-loader": "^1.1.11",
"flow-bin": "^0.78.0",
"font-awesome": "^4.7.0",
"giu": "^0.16.0-alpha.1",
"jest": "^23.0.0",
"moment": "^2.22.2",
"node-sass": "^4.9.3",
"node-uuid": "1.4.8",
"nyc": "^12.0.2",
"oao": "^1.5.1",
"prettier": "^1.14.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
"react-frame-component": "^4.0.1",
"react-marked-markdown": "^1.4.6",
"react-router-dom": "^4.3.1",
"react-test-renderer": "^16.4.2",
"sass-loader": "^7.1.0",
"socket.io-client": "^2.1.1",
"style-loader": "^0.22.1",
"typeface-gloria-hallelujah": "^0.0.54",
"webpack": "^4.1.1",
"webpack-cli": "^3.1.0",
"xxl": "1.2.0"
},
"jest": {
"testRegex": "src/.*__tests__/.*\\.(test|spec)\\.(js|jsx)$",
"roots": [
"<rootDir>/src"
],
"moduleNameMapper": {
"^typeface-.*": "<rootDir>/test/emptyObject.js",
"^.+\\.(css|less|sass)$": "<rootDir>/test/emptyObject.js",
"^.+\\.(gif|ttf|eot|svg)$": "<rootDir>/test/emptyString.js"
},
"coverageDirectory": ".nyc_output",
"coverageReporters": [
"json",
"text",
"html"
],
"snapshotSerializers": [
"<rootDir>/lib/serializer"
],
"collectCoverageFrom": [
"src/**/*.js",
"!src/previewer.js",
"!src/client/startup.js",
"!src/server/startup.js",
"!src/server/webpackConfig.js",
"!**/node_modules/**",
"!**/__tests__/**",
"!**/__mocks__/**"
],
"setupTestFrameworkScriptFile": "./test/setup.js"
}
}