Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit f59f4ad

Browse files
clean package.json
1 parent 23143ac commit f59f4ad

File tree

3 files changed

+804
-113
lines changed

3 files changed

+804
-113
lines changed

.depcheckrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"ignores": [
3+
"babel-core",
4+
"babel-jest",
5+
"babel-plugin-module-resolver",
6+
"identity-obj-proxy",
7+
"raw-loader",
8+
"sass-loader",
9+
"sort-package-json",
10+
"webpack-bundle-analyzer",
11+
"@bufferapp/ui"
12+
],
13+
"ignore-patterns": ["dist", "built", "temp", "coverage", "lib-commonjs", "lib"]
14+
}

package.json

+102-102
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,115 @@
11
{
22
"name": "@bufferapp/ui-template",
33
"version": "7.38.6",
4-
"engines": {
5-
"node": ">=4.0.0"
6-
},
7-
"main": "./lib/index.js",
8-
"types": "./types/index.d.ts",
94
"private": true,
105
"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+
},
1116
"repository": {
1217
"type": "git",
1318
"url": "git+https://github.com/bufferapp/ui.git"
1419
},
20+
"license": "MIT",
1521
"author": {
1622
"name": "Ivana Zuber",
1723
"email": "[email protected]",
1824
"url": "https://github.com/ivanaszuber"
1925
},
20-
"keywords": [
21-
"components",
22-
"react",
23-
"react-component",
24-
"UI"
25-
],
26+
"main": "./lib/index.js",
27+
"types": "./types/index.d.ts",
2628
"files": [
2729
"lib",
2830
"types"
2931
],
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"
3256
},
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+
]
3681
},
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"
42113
},
43114
"dependencies": {
44115
"@reach/tooltip": "0.13.0",
@@ -68,19 +139,17 @@
68139
"case-sensitive-paths-webpack-plugin": "2.1.2",
69140
"chalk": "2.4.1",
70141
"chokidar": "2.0.4",
71-
"cpx": "1.5.0",
72142
"cross-env": "5.2.0",
73143
"css-loader": "1.0.0",
144+
"depcheck": "~1.4.3",
74145
"dotenv": "6.0.0",
75146
"dotenv-expand": "4.2.0",
76147
"enzyme": "3.7.0",
77148
"enzyme-adapter-react-16": "1.7.0",
78149
"eslint": "5.6.0",
79150
"eslint-config-airbnb": "17.1.0",
80151
"eslint-config-prettier": "3.6.0",
81-
"eslint-config-react-app": "3.0.5",
82152
"eslint-loader": "2.1.1",
83-
"eslint-plugin-flowtype": "2.50.1",
84153
"eslint-plugin-import": "2.14.0",
85154
"eslint-plugin-jsx-a11y": "6.1.2",
86155
"eslint-plugin-prettier": "3.0.1",
@@ -93,11 +162,9 @@
93162
"highlight.js": "10.4.1",
94163
"html-webpack-plugin": "4.0.0-alpha.2",
95164
"identity-obj-proxy": "3.0.0",
96-
"indent-string": "3.2.0",
97165
"inquirer": "6.2.1",
98166
"jest": "^24.7.1",
99167
"jest-auto-snapshots": "=3.0.1",
100-
"jest-resolve": "=23.6.0",
101168
"jest-styled-components": "^7.0.5",
102169
"markdown-to-jsx": "^6.11.4",
103170
"mini-css-extract-plugin": "0.4.3",
@@ -125,6 +192,7 @@
125192
"resolve": "1.8.1",
126193
"rimraf": "2.6.2",
127194
"sass-loader": "7.1.0",
195+
"sort-package-json": "~2.4.1",
128196
"style-loader": "0.23.0",
129197
"svgo": "1.1.1",
130198
"terser-webpack-plugin": "^4.1.0",
@@ -135,83 +203,15 @@
135203
"webpack-manifest-plugin": "2.0.4",
136204
"workbox-webpack-plugin": "3.6.3"
137205
},
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"
187210
},
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"
212213
},
213-
"prettier": {
214-
"singleQuote": true,
215-
"trailingComma": "es5"
214+
"publishConfig": {
215+
"access": "public"
216216
}
217217
}

0 commit comments

Comments
 (0)