|
1 | 1 | {
|
2 | 2 | "name": "react-async-component",
|
3 | 3 | "version": "1.0.2",
|
4 |
| - "description": |
5 |
| - "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
| 4 | + "description": "Create Components that resolve asynchronously, with support for server side rendering and code splitting.", |
6 | 5 | "license": "MIT",
|
7 | 6 | "main": "commonjs/index.js",
|
8 |
| - "files": ["index.d.ts", "*.js", "*.md", "dist"], |
| 7 | + "files": [ |
| 8 | + "index.d.ts", |
| 9 | + "*.js", |
| 10 | + "*.md", |
| 11 | + "dist" |
| 12 | + ], |
9 | 13 | "typings": "./index.d.ts",
|
10 | 14 | "repository": {
|
11 | 15 | "type": "git",
|
|
22 | 26 | ],
|
23 | 27 | "scripts": {
|
24 | 28 | "build": "node ./tools/scripts/build.js",
|
25 |
| - "clean": |
26 |
| - "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
| 29 | + "clean": "rimraf ./commonjs && rimraf ./umd && rimraf ./coverage && rimraf ./umd", |
27 | 30 | "lint": "eslint src",
|
28 | 31 | "precommit": "lint-staged && npm run test",
|
29 | 32 | "prepublish": "npm run build",
|
|
32 | 35 | "test:coverage:deploy": "npm run test:coverage && codecov"
|
33 | 36 | },
|
34 | 37 | "peerDependencies": {
|
| 38 | + "prop-types": "^15.0.0", |
35 | 39 | "react": "^0.14.0 || ^15.0.0 || ^16.0.0",
|
36 |
| - "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0", |
37 |
| - "prop-types": "^15.0.0" |
| 40 | + "react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0" |
38 | 41 | },
|
39 | 42 | "devDependencies": {
|
40 | 43 | "app-root-dir": "1.0.2",
|
41 | 44 | "babel-cli": "^6.26.0",
|
42 | 45 | "babel-core": "^6.26.0",
|
43 | 46 | "babel-eslint": "^8.0.1",
|
44 |
| - "babel-jest": "^21.2.0", |
| 47 | + "babel-jest": "^22.4.3", |
45 | 48 | "babel-loader": "^7.1.2",
|
46 | 49 | "babel-plugin-external-helpers": "^6.22.0",
|
47 | 50 | "babel-plugin-transform-class-properties": "^6.24.1",
|
|
65 | 68 | "gzip-size": "^4.0.0",
|
66 | 69 | "husky": "^0.14.3",
|
67 | 70 | "in-publish": "2.0.0",
|
68 |
| - "jest": "^21.2.1", |
69 |
| - "lint-staged": "^4.2.3", |
| 71 | + "jest": "^22.4.3", |
| 72 | + "lint-staged": "^7.0.0", |
70 | 73 | "memory-fs": "0.4.1",
|
71 | 74 | "prettier": "^1.7.4",
|
72 | 75 | "pretty-bytes": "4.0.2",
|
73 | 76 | "prop-types": "^15.6.0",
|
74 | 77 | "raf": "^3.4.0",
|
75 | 78 | "ramda": "^0.25.0",
|
76 | 79 | "react": "^16.0.0",
|
77 |
| - "react-async-bootstrapper": "^1.1.2", |
| 80 | + "react-async-bootstrapper": "^2.1.0", |
78 | 81 | "react-dom": "^16.0.0",
|
79 | 82 | "react-test-renderer": "^16.0.0",
|
80 |
| - "readline-sync": "1.4.7", |
| 83 | + "readline-sync": "1.4.9", |
81 | 84 | "rimraf": "^2.6.2",
|
82 |
| - "rollup": "^0.56.5", |
| 85 | + "rollup": "^0.57.1", |
83 | 86 | "rollup-plugin-babel": "^3.0.3",
|
84 | 87 | "rollup-plugin-uglify": "^3.0.0"
|
85 | 88 | },
|
86 | 89 | "jest": {
|
87 |
| - "collectCoverageFrom": ["src/**/*.{js,jsx}"], |
88 |
| - "setupFiles": ["raf/polyfill", "<rootDir>/tools/tests/setup.js"], |
89 |
| - "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"], |
90 |
| - "testPathIgnorePatterns": ["<rootDir>/(coverage|dist|node_modules|tools)/"] |
| 90 | + "collectCoverageFrom": [ |
| 91 | + "src/**/*.{js,jsx}" |
| 92 | + ], |
| 93 | + "setupFiles": [ |
| 94 | + "raf/polyfill", |
| 95 | + "<rootDir>/tools/tests/setup.js" |
| 96 | + ], |
| 97 | + "snapshotSerializers": [ |
| 98 | + "<rootDir>/node_modules/enzyme-to-json/serializer" |
| 99 | + ], |
| 100 | + "testPathIgnorePatterns": [ |
| 101 | + "<rootDir>/(coverage|dist|node_modules|tools)/" |
| 102 | + ] |
91 | 103 | },
|
92 | 104 | "eslintConfig": {
|
93 | 105 | "root": true,
|
|
98 | 110 | "node": true,
|
99 | 111 | "jest": true
|
100 | 112 | },
|
101 |
| - "extends": ["airbnb", "prettier"], |
| 113 | + "extends": [ |
| 114 | + "airbnb", |
| 115 | + "prettier" |
| 116 | + ], |
102 | 117 | "rules": {
|
103 | 118 | "camelcase": 0,
|
104 | 119 | "import/prefer-default-export": 0,
|
|
107 | 122 | "no-underscore-dangle": 0,
|
108 | 123 | "react/no-array-index-key": 0,
|
109 | 124 | "react/react-in-jsx-scope": 0,
|
110 |
| - "semi": [2, "never"], |
| 125 | + "semi": [ |
| 126 | + 2, |
| 127 | + "never" |
| 128 | + ], |
111 | 129 | "react/forbid-prop-types": 0,
|
112 | 130 | "react/jsx-filename-extension": 0,
|
113 | 131 | "react/sort-comp": 0
|
114 | 132 | }
|
115 | 133 | },
|
116 |
| - "eslintIgnore": ["node_modules/", "coverage/", "dist/"], |
| 134 | + "eslintIgnore": [ |
| 135 | + "node_modules/", |
| 136 | + "coverage/", |
| 137 | + "dist/" |
| 138 | + ], |
117 | 139 | "prettier": {
|
118 | 140 | "semi": false,
|
119 | 141 | "singleQuote": true,
|
120 | 142 | "trailingComma": "all"
|
121 | 143 | },
|
122 | 144 | "lint-staged": {
|
123 |
| - "*.js": ["prettier --write \"src/**/*.js\"", "git add"] |
| 145 | + "*.js": [ |
| 146 | + "prettier --write \"src/**/*.js\"", |
| 147 | + "git add" |
| 148 | + ] |
124 | 149 | }
|
125 | 150 | }
|
0 commit comments