forked from faceyspacey/react-universal-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
141 lines (141 loc) · 4.36 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
{
"name": "jaybe-react-universal-component",
"version": "1.1.0",
"description": "A higher order component for loading components with promises",
"main": "dist/index.js",
"typings": "index.d.ts",
"author": "James FaceySpacey Gillmore <[email protected]> (http://www.faceyspacey.com)",
"contributors": [
"Zack Jackson <[email protected]> (https://github.com/ScriptedAlchemy)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/faceyspacey/react-universal-component/issues"
},
"homepage": "https://github.com/faceyspacey/react-universal-component#readme",
"keywords": [
"universal",
"ruc",
"unviersal react",
"ssr",
"code splitting",
"aggressive code splitting",
"lodable",
"react",
"async component",
"universal react",
"async rendering",
"webpack 4"
],
"scripts": {
"build": "babel src -d dist",
"flow-copy": "flow-copy-source src dist -i 'requireById/index.js'",
"flow-watch": "clear; printf \"\\033[3J\" & npm run flow & fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf \"\\033[3J\" && npm run flow'",
"flow": "flow; test $? -eq 0 -o $? -eq 2",
"clean": "rimraf dist && mkdir dist",
"test": "jest",
"lint": "eslint --fix ./",
"format": "prettier --single-quote --parser=flow --semi=false --write '{src,__tests__,__fixtures__}/**/*.js' && npm run lint",
"precommit": "lint-staged && npm test",
"cm": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"prepublish": "npm run clean && npm run build && npm run flow-copy"
},
"devDependencies": {
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/node": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-async-to-generator": "^7.1.0",
"@babel/plugin-transform-flow-strip-types": "^7.1.6",
"@babel/plugin-transform-object-assign": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-loader": "^8.0.4",
"babel-plugin-dynamic-import-node": "^2.2.0",
"babel-plugin-module-resolver": "^3.1.1",
"babel-plugin-react-intl": "^3.0.1",
"babel-eslint": "^7.2.3",
"babel-plugin-universal-import": "^3.0.0",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-flowtype": "^2.32.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-react": "^7.0.1",
"flow-bin": "^0.49.1",
"flow-copy-source": "^1.1.0",
"husky": "^0.14.3",
"jest": "^23.6.0",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.7.0",
"react-dom": "^16.4.1",
"enzyme-to-json": "^3.3.4",
"lint-staged": "^7.2.0",
"prettier": "^1.3.1",
"react": "^16.4.1",
"react-test-renderer": "^16.4.1",
"rimraf": "^2.5.4",
"semantic-release": "^6.3.6",
"slash": "^1.0.0",
"travis-github-status": "^1.6.3"
},
"peerDependencies": {
"react": "*"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"lint-staged": {
"*.js": [
"prettier --single-quote --parser=flow --semi=false --write",
"eslint --fix",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/faceyspacey/react-universal-component.git"
},
"dependencies": {
"hoist-non-react-statics": "^2.2.1",
"prop-types": "^15.5.10"
},
"jest": {
"testURL": "http://localhost/",
"verbose": true,
"setupFiles": [
"./test/setup.js"
],
"globals": {
"__webpack_public_path__": ""
},
"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"
},
"coveragePathIgnorePatterns": [
"<rootDir>/lib/*",
"<rootDir>/node_modules/"
],
"testPathIgnorePatterns": [
"<rootDir>/lib/*",
"<rootDir>/node_modules/"
],
"modulePathIgnorePatterns": [
"<rootDir>/lib/*"
],
"collectCoverageFrom": [
"src/**/*.js"
]
}
}