|
19 | 19 | "bin": {
|
20 | 20 | "styleguidist": "bin/styleguidist.js"
|
21 | 21 | },
|
22 |
| - "files": ["bin", "lib", "loaders", "scripts"], |
| 22 | + "files": [ |
| 23 | + "bin", |
| 24 | + "lib", |
| 25 | + "loaders", |
| 26 | + "scripts" |
| 27 | + ], |
23 | 28 | "engines": {
|
24 | 29 | "node": ">=4",
|
25 | 30 | "npm": ">=3"
|
|
66 | 71 | "q-i": "^1.1.4",
|
67 | 72 | "react-codemirror2": "^2.0.2",
|
68 | 73 | "react-dev-utils": "^3.0.2",
|
69 |
| - "react-docgen": "^3.0.0-beta7", |
| 74 | + "react-docgen": "^3.0.0-beta8", |
70 | 75 | "react-docgen-displayname-handler": "^1.0.1",
|
71 | 76 | "react-group": "^1.0.5",
|
72 | 77 | "react-icons": "^2.2.7",
|
|
75 | 80 | "style-loader": "^0.18.2",
|
76 | 81 | "to-ast": "^1.0.0",
|
77 | 82 | "type-detect": "^4.0.3",
|
78 |
| - "uglifyjs-webpack-plugin": "^1.0.0-beta.2", |
| 83 | + "uglifyjs-webpack-plugin": "1.0.0-beta.3", |
79 | 84 | "unist-util-visit": "^1.1.3",
|
80 | 85 | "webpack-dev-server": "^2.8.2",
|
81 | 86 | "webpack-merge": "^4.1.0",
|
|
99 | 104 | "danger": "^1.2.0",
|
100 | 105 | "dog-names": "^1.0.2",
|
101 | 106 | "enzyme": "^3.1.0",
|
102 |
| - "enzyme-adapter-react-16": "^1.0.1", |
103 |
| - "enzyme-to-json": "^3.1.2", |
| 107 | + "enzyme-adapter-react-16": "^1.0.2", |
| 108 | + "enzyme-to-json": "^3.1.4", |
104 | 109 | "eslint": "^4.7.2",
|
105 | 110 | "eslint-config-tamia": "^4.2.3",
|
106 | 111 | "eslint-plugin-compat": "^1.0.4",
|
|
120 | 125 | "raf": "^3.4.0",
|
121 | 126 | "react": "^16.0.0",
|
122 | 127 | "react-dom": "^16.0.0",
|
123 |
| - "react-modal": "^2.2.2", |
124 | 128 | "react-test-renderer": "^16.0.0",
|
125 | 129 | "rimraf": "^2.6.2",
|
126 | 130 | "semantic-release": "^6.3.6",
|
|
135 | 139 | "test:jest": "jest",
|
136 | 140 | "test:watch": "jest --watch",
|
137 | 141 | "test:coverage": "jest --coverage",
|
138 |
| - "start": |
139 |
| - "bin/styleguidist.js server --config examples/basic/styleguide.config.js", |
140 |
| - "start:customised": |
141 |
| - "bin/styleguidist.js server --config examples/customised/styleguide.config.js", |
142 |
| - "start:sections": |
143 |
| - "bin/styleguidist.js server --config examples/sections/styleguide.config.js", |
144 |
| - "start:express": |
145 |
| - "bin/styleguidist.js server --config examples/express/styleguide.config.js", |
146 |
| - "start:preact": |
147 |
| - "bin/styleguidist.js server --config examples/preact/styleguide.config.js", |
| 142 | + "start": "bin/styleguidist.js server --config examples/basic/styleguide.config.js", |
| 143 | + "start:customised": "bin/styleguidist.js server --config examples/customised/styleguide.config.js", |
| 144 | + "start:sections": "bin/styleguidist.js server --config examples/sections/styleguide.config.js", |
| 145 | + "start:express": "bin/styleguidist.js server --config examples/express/styleguide.config.js", |
| 146 | + "start:preact": "bin/styleguidist.js server --config examples/preact/styleguide.config.js", |
148 | 147 | "start:cra": "cd examples/cra && ../../bin/styleguidist.js server",
|
149 | 148 | "start:webpack": "cd examples/webpack && ../../bin/styleguidist.js server",
|
150 | 149 | "lint": "eslint . --cache --fix",
|
151 | 150 | "lint-staged": "lint-staged",
|
152 | 151 | "precompile": "rimraf lib/",
|
153 | 152 | "compile": "babel --ignore '*.spec.js' -d lib/ src/",
|
154 | 153 | "compile:watch": "babel --ignore '*.spec.js' --watch -d lib/ src/",
|
155 |
| - "build": |
156 |
| - "bin/styleguidist.js build --config examples/basic/styleguide.config.js", |
157 |
| - "build:customised": |
158 |
| - "bin/styleguidist.js build --config examples/customised/styleguide.config.js", |
159 |
| - "build:sections": |
160 |
| - "bin/styleguidist.js build --config examples/sections/styleguide.config.js", |
| 154 | + "build": "bin/styleguidist.js build --config examples/basic/styleguide.config.js", |
| 155 | + "build:customised": "bin/styleguidist.js build --config examples/customised/styleguide.config.js", |
| 156 | + "build:sections": "bin/styleguidist.js build --config examples/sections/styleguide.config.js", |
161 | 157 | "prepublish": "npm run compile",
|
162 | 158 | "publish": "npm run build",
|
163 | 159 | "test:browser:pre": "npm i --no-save puppeteer",
|
164 | 160 | "test:browser": "node test/browser.js examples/basic/styleguide/index.html",
|
165 |
| - "test:browser:customised": |
166 |
| - "node test/browser.js examples/customised/styleguide/index.html", |
167 |
| - "test:browser:sections": |
168 |
| - "node test/browser.js examples/sections/styleguide/index.html", |
169 |
| - "semantic-release": |
170 |
| - "semantic-release pre && npm publish && semantic-release post", |
| 161 | + "test:browser:customised": "node test/browser.js examples/customised/styleguide/index.html", |
| 162 | + "test:browser:sections": "node test/browser.js examples/sections/styleguide/index.html", |
| 163 | + "semantic-release": "semantic-release pre && npm publish && semantic-release post", |
171 | 164 | "danger": "danger",
|
172 | 165 | "precommit": "lint-staged"
|
173 | 166 | },
|
|
177 | 170 | "verifyRelease": "semantic-release-tamia/verifyRelease"
|
178 | 171 | },
|
179 | 172 | "jest": {
|
180 |
| - "setupFiles": ["./test/raf-polyfill.js", "./test/jestsetup.js"], |
181 |
| - "modulePaths": ["./src"], |
| 173 | + "setupFiles": [ |
| 174 | + "./test/raf-polyfill.js", |
| 175 | + "./test/jestsetup.js" |
| 176 | + ], |
| 177 | + "modulePaths": [ |
| 178 | + "./src" |
| 179 | + ], |
182 | 180 | "moduleNameMapper": {
|
183 | 181 | "^.+\\.css$": "identity-obj-proxy"
|
184 | 182 | },
|
185 |
| - "testPathIgnorePatterns": ["<rootDir>/lib/", "<rootDir>/examples/"], |
| 183 | + "testPathIgnorePatterns": [ |
| 184 | + "<rootDir>/lib/", |
| 185 | + "<rootDir>/examples/" |
| 186 | + ], |
186 | 187 | "coveragePathIgnorePatterns": [
|
187 | 188 | "<rootDir>/src/utils/markdown-to-jsx.js",
|
188 | 189 | "<rootDir>/scripts/server.js",
|
189 | 190 | "<rootDir>/scripts/build.js",
|
190 | 191 | "<rootDir>/test/jestsetup.js"
|
191 | 192 | ],
|
192 |
| - "snapshotSerializers": ["<rootDir>/node_modules/enzyme-to-json/serializer"] |
| 193 | + "snapshotSerializers": [ |
| 194 | + "<rootDir>/node_modules/enzyme-to-json/serializer" |
| 195 | + ] |
193 | 196 | },
|
194 | 197 | "keywords": [
|
195 | 198 | "react",
|
|
203 | 206 | "components"
|
204 | 207 | ],
|
205 | 208 | "lint-staged": {
|
206 |
| - "*.js": ["eslint --fix", "git add"] |
| 209 | + "*.js": [ |
| 210 | + "eslint --fix", |
| 211 | + "git add" |
| 212 | + ] |
207 | 213 | }
|
208 | 214 | }
|
0 commit comments