-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
82 lines (82 loc) · 2.51 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
{
"name": "ui-widgets-ts",
"version": "1.0.0",
"description": "Module by React Typescript",
"author": "caitengjiao1987@gmail.com",
"keywords": [
"Component",
"Typescript",
"Module",
"React",
"Storybook",
"JEST"
],
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"scripts": {
"clean": "rimraf dist/*",
"copy": "cpx 'src/app/**/*.{png,jpg,css}' dist",
"build:ts": "tsc -p src",
"test": "jest --notify --coverage --bail",
"watch": "tsc -p src -w",
"prebuild": "npm run clean && npm run test && npm run copy",
"build": "npm run build:ts",
"storybook": "start-storybook -p 9001 -c storybook/.config"
},
"jest": {
"globals": {
"__TS_CONFIG__": "src/tsconfig.json"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
},
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx)$",
"coverageThreshold": {
"global": {
"lines": 75
}
}
},
"devDependencies": {
"@kadira/react-storybook-addon-info": "^3.4.0",
"@kadira/storybook": "^2.35.3",
"@kadira/storybook-addon-knobs": "^1.7.1",
"@types/enzyme": "^2.7.9",
"@types/jest": "^19.2.2",
"@types/node": "^7.0.13",
"@types/react": "^15.0.22",
"@types/react-dom": "^0.14.23",
"bootstrap": "^3.3.7",
"cpx": "^1.5.0",
"cross-env": "^4.0.0",
"css-loader": "^0.28.0",
"enzyme": "^2.8.2",
"expose-loader": "^0.7.3",
"file-loader": "^0.11.1",
"imports-loader": "^0.7.1",
"jest": "^19.0.2",
"jquery": "^2.2.4",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-test-renderer": "^15.5.4",
"rimraf": "^2.6.1",
"source-map-loader": "^0.2.1",
"ts-jest": "^19.0.10",
"ts-loader": "^2.0.3",
"tslint": "^5.1.0",
"tslint-loader": "^3.5.2",
"typescript": "^2.3.0",
"url-loader": "^0.5.8",
"webpack": "^2.4.1",
"webpack-merge": "^4.1.0"
}
}