|
1 | 1 | { |
2 | 2 | "name": "@bufferapp/ui-template", |
3 | 3 | "version": "7.38.6", |
4 | | - "engines": { |
5 | | - "node": ">=4.0.0" |
6 | | - }, |
7 | | - "main": "./lib/index.js", |
8 | | - "types": "./types/index.d.ts", |
9 | 4 | "private": true, |
10 | 5 | "description": "Shared UI components for buffer apps", |
| 6 | + "keywords": [ |
| 7 | + "components", |
| 8 | + "react", |
| 9 | + "react-component", |
| 10 | + "UI" |
| 11 | + ], |
| 12 | + "homepage": "https://bufferapp.github.io/ui", |
| 13 | + "bugs": { |
| 14 | + "url": "https://github.com/bufferapp/ui/issues" |
| 15 | + }, |
11 | 16 | "repository": { |
12 | 17 | "type": "git", |
13 | 18 | "url": "git+https://github.com/bufferapp/ui.git" |
14 | 19 | }, |
| 20 | + "license": "MIT", |
15 | 21 | "author": { |
16 | 22 | "name": "Ivana Zuber", |
17 | 23 | |
18 | 24 | "url": "https://github.com/ivanaszuber" |
19 | 25 | }, |
20 | | - "keywords": [ |
21 | | - "components", |
22 | | - "react", |
23 | | - "react-component", |
24 | | - "UI" |
25 | | - ], |
| 26 | + "main": "./lib/index.js", |
| 27 | + "types": "./types/index.d.ts", |
26 | 28 | "files": [ |
27 | 29 | "lib", |
28 | 30 | "types" |
29 | 31 | ], |
30 | | - "publishConfig": { |
31 | | - "access": "public" |
| 32 | + "scripts": { |
| 33 | + "prebuild:lib": "rimraf lib", |
| 34 | + "build:lib": "npm-run-all --parallel build:commonjs build:copy-files", |
| 35 | + "build:copy-files": "node scripts/copyBuildFiles.js", |
| 36 | + "build:commonjs": "cross-env NODE_ENV=production babel ./src/components --out-dir ./lib --ignore index.js", |
| 37 | + "build:docs": "node scripts/build.js", |
| 38 | + "gen:docs": "node scripts/generateComponentData.js", |
| 39 | + "gen:docs-watch": "yarn gen:docs -- --watch", |
| 40 | + "predeploy:docs": "yarn gen:docs && yarn build:docs", |
| 41 | + "deploy:docs": "gh-pages -d build", |
| 42 | + "lint": "./node_modules/eslint/bin/eslint.js .", |
| 43 | + "pkg:clean": "rushx pkg:sort && rushx pkg:depcheck", |
| 44 | + "pkg:depcheck": "depcheck", |
| 45 | + "pkg:sort": "sort-package-json", |
| 46 | + "publish": "./scripts/publish.sh", |
| 47 | + "publish:beta": "node ./scripts/betaPublish.js", |
| 48 | + "prestart": "yarn gen:docs", |
| 49 | + "start": "npm-run-all --parallel start:docs gen:docs-watch", |
| 50 | + "start:docs": "node scripts/start.js", |
| 51 | + "test": "jest && yarn lint", |
| 52 | + "test-update": "jest --no-coverage -u", |
| 53 | + "test-watch": "jest --no-coverage --watch", |
| 54 | + "component:new": "node ./scripts/newComponent.js", |
| 55 | + "gen:icons": "node ./scripts/generateIconComponents.js && eslint src/components/Icon/Icons/** --fix" |
32 | 56 | }, |
33 | | - "license": "MIT", |
34 | | - "bugs": { |
35 | | - "url": "https://github.com/bufferapp/ui/issues" |
| 57 | + "babel": { |
| 58 | + "env": { |
| 59 | + "production": { |
| 60 | + "plugins": [ |
| 61 | + [ |
| 62 | + "babel-plugin-styled-components", |
| 63 | + { |
| 64 | + "pure": true, |
| 65 | + "namespace": "bufferapp-ui", |
| 66 | + "minify": true |
| 67 | + } |
| 68 | + ] |
| 69 | + ] |
| 70 | + } |
| 71 | + }, |
| 72 | + "plugins": [ |
| 73 | + "@babel/plugin-transform-modules-commonjs", |
| 74 | + "@babel/plugin-proposal-class-properties", |
| 75 | + "@babel/plugin-proposal-export-default-from" |
| 76 | + ], |
| 77 | + "presets": [ |
| 78 | + "@babel/preset-env", |
| 79 | + "@babel/react" |
| 80 | + ] |
36 | 81 | }, |
37 | | - "homepage": "https://bufferapp.github.io/ui", |
38 | | - "peerDependencies": { |
39 | | - "react": ">= 16.8.0", |
40 | | - "react-dom": ">= 16.8.0", |
41 | | - "styled-components": "^5.3.0" |
| 82 | + "browserslist": [ |
| 83 | + ">0.2%", |
| 84 | + "not dead", |
| 85 | + "not ie <= 11", |
| 86 | + "not op_mini all" |
| 87 | + ], |
| 88 | + "prettier": { |
| 89 | + "singleQuote": true, |
| 90 | + "trailingComma": "es5" |
| 91 | + }, |
| 92 | + "jest": { |
| 93 | + "collectCoverage": true, |
| 94 | + "collectCoverageFrom": [ |
| 95 | + "src/components/**/*.{js,jsx}", |
| 96 | + "!src/components/**/style.js", |
| 97 | + "!src/components/**/index.js" |
| 98 | + ], |
| 99 | + "coverageDirectory": "./coverage/", |
| 100 | + "moduleNameMapper": { |
| 101 | + "./src(.*)$": "<rootDir>/src/$1", |
| 102 | + "\\/tooltip/styles.(css|scss)$": "identity-obj-proxy" |
| 103 | + }, |
| 104 | + "setupFiles": [ |
| 105 | + "react-app-polyfill/jsdom" |
| 106 | + ], |
| 107 | + "testEnvironment": "jsdom", |
| 108 | + "testMatch": [ |
| 109 | + "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", |
| 110 | + "<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" |
| 111 | + ], |
| 112 | + "testURL": "http://localhost" |
42 | 113 | }, |
43 | 114 | "dependencies": { |
44 | 115 | "@reach/tooltip": "0.13.0", |
|
68 | 139 | "case-sensitive-paths-webpack-plugin": "2.1.2", |
69 | 140 | "chalk": "2.4.1", |
70 | 141 | "chokidar": "2.0.4", |
71 | | - "cpx": "1.5.0", |
72 | 142 | "cross-env": "5.2.0", |
73 | 143 | "css-loader": "1.0.0", |
| 144 | + "depcheck": "~1.4.3", |
74 | 145 | "dotenv": "6.0.0", |
75 | 146 | "dotenv-expand": "4.2.0", |
76 | 147 | "enzyme": "3.7.0", |
77 | 148 | "enzyme-adapter-react-16": "1.7.0", |
78 | 149 | "eslint": "5.6.0", |
79 | 150 | "eslint-config-airbnb": "17.1.0", |
80 | 151 | "eslint-config-prettier": "3.6.0", |
81 | | - "eslint-config-react-app": "3.0.5", |
82 | 152 | "eslint-loader": "2.1.1", |
83 | | - "eslint-plugin-flowtype": "2.50.1", |
84 | 153 | "eslint-plugin-import": "2.14.0", |
85 | 154 | "eslint-plugin-jsx-a11y": "6.1.2", |
86 | 155 | "eslint-plugin-prettier": "3.0.1", |
|
93 | 162 | "highlight.js": "10.4.1", |
94 | 163 | "html-webpack-plugin": "4.0.0-alpha.2", |
95 | 164 | "identity-obj-proxy": "3.0.0", |
96 | | - "indent-string": "3.2.0", |
97 | 165 | "inquirer": "6.2.1", |
98 | 166 | "jest": "^24.7.1", |
99 | 167 | "jest-auto-snapshots": "=3.0.1", |
100 | | - "jest-resolve": "=23.6.0", |
101 | 168 | "jest-styled-components": "^7.0.5", |
102 | 169 | "markdown-to-jsx": "^6.11.4", |
103 | 170 | "mini-css-extract-plugin": "0.4.3", |
|
125 | 192 | "resolve": "1.8.1", |
126 | 193 | "rimraf": "2.6.2", |
127 | 194 | "sass-loader": "7.1.0", |
| 195 | + "sort-package-json": "~2.4.1", |
128 | 196 | "style-loader": "0.23.0", |
129 | 197 | "svgo": "1.1.1", |
130 | 198 | "terser-webpack-plugin": "^4.1.0", |
|
135 | 203 | "webpack-manifest-plugin": "2.0.4", |
136 | 204 | "workbox-webpack-plugin": "3.6.3" |
137 | 205 | }, |
138 | | - "scripts": { |
139 | | - "prestart": "yarn gen:docs", |
140 | | - "start": "npm-run-all --parallel start:docs gen:docs-watch", |
141 | | - "start:docs": "node scripts/start.js", |
142 | | - "gen:docs": "node scripts/generateComponentData.js", |
143 | | - "gen:docs-watch": "yarn gen:docs -- --watch", |
144 | | - "build:docs": "node scripts/build.js", |
145 | | - "lint": "./node_modules/eslint/bin/eslint.js .", |
146 | | - "test": "jest && yarn lint", |
147 | | - "test-update": "jest --no-coverage -u", |
148 | | - "test-watch": "jest --no-coverage --watch", |
149 | | - "predeploy:docs": "yarn gen:docs && yarn build:docs", |
150 | | - "deploy:docs": "gh-pages -d build", |
151 | | - "prebuild:lib": "rimraf lib", |
152 | | - "build:lib": "npm-run-all --parallel build:commonjs build:copy-files", |
153 | | - "build:copy-files": "node scripts/copyBuildFiles.js", |
154 | | - "build:commonjs": "cross-env NODE_ENV=production babel ./src/components --out-dir ./lib --ignore index.js", |
155 | | - "publish": "./scripts/publish.sh", |
156 | | - "beta:publish": "node ./scripts/betaPublish.js", |
157 | | - "component:new": "node ./scripts/newComponent.js", |
158 | | - "gen:icons": "node ./scripts/generateIconComponents.js && eslint src/components/Icon/Icons/** --fix" |
159 | | - }, |
160 | | - "browserslist": [ |
161 | | - ">0.2%", |
162 | | - "not dead", |
163 | | - "not ie <= 11", |
164 | | - "not op_mini all" |
165 | | - ], |
166 | | - "jest": { |
167 | | - "collectCoverageFrom": [ |
168 | | - "src/components/**/*.{js,jsx}", |
169 | | - "!src/components/**/style.js", |
170 | | - "!src/components/**/index.js" |
171 | | - ], |
172 | | - "coverageDirectory": "./coverage/", |
173 | | - "collectCoverage": true, |
174 | | - "setupFiles": [ |
175 | | - "react-app-polyfill/jsdom" |
176 | | - ], |
177 | | - "testMatch": [ |
178 | | - "<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}", |
179 | | - "<rootDir>/src/**/?(*.)(spec|test).{js,jsx,ts,tsx}" |
180 | | - ], |
181 | | - "testEnvironment": "jsdom", |
182 | | - "testURL": "http://localhost", |
183 | | - "moduleNameMapper": { |
184 | | - "./src(.*)$": "<rootDir>/src/$1", |
185 | | - "\\/tooltip/styles.(css|scss)$": "identity-obj-proxy" |
186 | | - } |
| 206 | + "peerDependencies": { |
| 207 | + "react": ">= 16.8.0", |
| 208 | + "react-dom": ">= 16.8.0", |
| 209 | + "styled-components": "^5.3.0" |
187 | 210 | }, |
188 | | - "babel": { |
189 | | - "plugins": [ |
190 | | - "@babel/plugin-transform-modules-commonjs", |
191 | | - "@babel/plugin-proposal-class-properties", |
192 | | - "@babel/plugin-proposal-export-default-from" |
193 | | - ], |
194 | | - "env": { |
195 | | - "production": { |
196 | | - "plugins": [ |
197 | | - [ |
198 | | - "babel-plugin-styled-components", |
199 | | - { |
200 | | - "pure": true, |
201 | | - "namespace": "bufferapp-ui", |
202 | | - "minify": true |
203 | | - } |
204 | | - ] |
205 | | - ] |
206 | | - } |
207 | | - }, |
208 | | - "presets": [ |
209 | | - "@babel/preset-env", |
210 | | - "@babel/react" |
211 | | - ] |
| 211 | + "engines": { |
| 212 | + "node": ">=14.0.0" |
212 | 213 | }, |
213 | | - "prettier": { |
214 | | - "singleQuote": true, |
215 | | - "trailingComma": "es5" |
| 214 | + "publishConfig": { |
| 215 | + "access": "public" |
216 | 216 | } |
217 | 217 | } |
0 commit comments