-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
119 lines (119 loc) · 3.52 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
{
"name": "react-luckydraw",
"version": "0.1.6",
"author": "Gemer Cheung <gemercheung@gmail.com>",
"description": "Simple luckydraw component for React.",
"main": "lib/index.js",
"homepage": "http://blog.gemer.xyz/react-luckydraw",
"repository": {
"type": "git",
"url": "git+https://github.com/Gemerz/react-luckydraw.git"
},
"keywords": [
"react",
"luckydraw"
],
"license": "ISC",
"prepublish": "npm run build-lib && npm run build-css",
"devDependencies": {
"autoprefixer": "7.1.6",
"babel-core": "6.26.0",
"babel-eslint": "8.0.2",
"babel-jest": "21.2.0",
"babel-loader": "7.1.2",
"babel-preset-react-app": "^3.1.0",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "2.3.0",
"connect-history-api-fallback": "1.5.0",
"cross-spawn": "5.1.0",
"css-loader": "0.28.7",
"detect-port": "1.2.2",
"dotenv": "4.0.0",
"eslint": "4.11.0",
"eslint-config-react-app": "^2.0.1",
"eslint-loader": "1.9.0",
"eslint-plugin-flowtype": "2.39.1",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.4.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
"filesize": "3.5.11",
"fs-extra": "4.0.2",
"gh-pages": "^1.1.0",
"gzip-size": "4.0.0",
"highlight.js": "^9.9.0",
"html-webpack-plugin": "2.30.1",
"http-proxy-middleware": "0.17.4",
"jest": "21.2.1",
"json-loader": "0.5.7",
"object-assign": "4.1.1",
"path-exists": "3.0.0",
"postcss-loader": "2.0.8",
"prettier": "^1.8.2",
"promise": "8.0.1",
"react-dev-utils": "^4.2.1",
"react-highlight": "^0.10.0",
"recursive-readdir": "2.2.1",
"strip-ansi": "4.0.0",
"style-loader": "0.19.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"sw-precache": "^5.0.0",
"url-loader": "0.6.2",
"webpack": "3.8.1",
"webpack-dev-server": "2.9.4",
"webpack-manifest-plugin": "1.3.2",
"whatwg-fetch": "2.0.3"
},
"dependencies": {
"d3": "^4.4.0",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"react-tabs": "^2.1.1",
"styled-components": "^2.2.3",
"sweetalert": "^2.0.8"
},
"scripts": {
"start": "node scripts/start.js",
"build": "node scripts/build.js && npm run gen-service-worker",
"format": "prettier --write 'src/**/*.{js,jsx}' '*.{js,jsx}' 'cosmos/**/*.{js,jsx}' --single-quote",
"test": "node scripts/test.js --env=jsdom",
"gen-service-worker": "sw-precache --config=sw-precache-config.js",
"build-lib": "BABEL_ENV=production babel src/LuckyDraw -d lib --ignore spec.js,test.js",
"build-css": "./node_modules/stylus/bin/stylus -w src/LuckyDraw/Style -o lib/LuckyDraw.css",
"deploy": "gh-pages -d build"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
"setupFiles": [
"<rootDir>/config/polyfills.js"
],
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
}
},
"babel": {
"presets": [
"react-app"
]
},
"eslintConfig": {
"extends": "react-app"
}
}