/
package.json
85 lines (85 loc) · 3.17 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
{
"name": "@stackrox/ui-components",
"version": "0.3.0",
"description": "StackRox library of UI (React) components",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/stackrox/rox.git",
"directory": "ui/packages/ui-components"
},
"license": "UNLICENSED",
"files": [
"lib/**/*",
"src/**/*",
"!src/**/*.test.ts",
"!src/**/*.test.tsx"
],
"scripts": {
"clean": "rm -rf lib test-results coverage",
"start:tailwind": "postcss -w ./src/index.tw.css -o ./lib/ui-components.css",
"start:ts": "tsc --watch",
"start": "npm-run-all -p start:*",
"build:tailwind": "postcss ./src/index.tw.css -o ./lib/ui-components.css",
"build:ts": "tsc --build",
"build": "npm-run-all build:*",
"test": "JEST_JUNIT_UNIQUE_OUTPUT_NAME=true JEST_JUNIT_OUTPUT_DIR=${TEST_RESULTS_OUTPUT_DIR:-test-results}/reports jest --verbose=true --slowTestThreshold=1 --coverage --reporters=default --reporters=jest-junit",
"test:watch": "jest --watch-all",
"lint:non-src": "prettier --check '**/*.{md,css,json}'",
"lint:src": "eslint --ext .js,.ts,.tsx ./",
"lint": "npm-run-all lint:*",
"lint-fix:non-src": "prettier --write '**/*.{md,css,json}'",
"lint-fix:src": "eslint --fix --ext .js,.ts,.tsx ./",
"lint-fix": "npm-run-all lint-fix:*",
"prepublishOnly": "yarn clean && yarn build"
},
"peerDependencies": {
"react": "^16.12.0 || ^17",
"react-dom": "^16.12.0 || ^17"
},
"dependencies": {
"@tippyjs/react": "^4.2.5",
"formik": "^2.2.9",
"initials": "^3.1.2",
"lodash": "^4.17.21",
"react-feather": "^2.0.9",
"tippy.js": "^6.3.7"
},
"devDependencies": {
"@stackrox/tailwind-config": "^0.2.0",
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^14.2.1",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.16",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"autoprefixer": "^10.4.5",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "12.3.1",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^24.5.0",
"eslint-plugin-jest-dom": "^4.0.2",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-testing-library": "^5.0.5",
"jest": "^26.6.3",
"jest-junit": "^12.0.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.4",
"postcss-cli": "^8.3.1",
"prettier": "^2.7.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tailwindcss": "^2.0.3",
"ts-jest": "^26.5.6",
"typescript": "^4.9.3"
}
}