-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
108 lines (108 loc) · 3.6 KB
/
package.json
File metadata and controls
108 lines (108 loc) · 3.6 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"name": "calculator-app",
"homepage": "https://defi-oracle-tooling.github.io/perpetual-leverage-tool",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">=14",
"pnpm": ">=7"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build:analyze": "source-map-explorer 'build/static/js/*.js'",
"test": "jest --passWithNoTests",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:e2e": "cypress run",
"test:e2e:open": "cypress open",
"test:all": "pnpm test && pnpm test:e2e",
"eject": "react-scripts eject",
"predeploy": "pnpm run build",
"deploy": "gh-pages -d build",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"format": "prettier --write \"src/**/*.{ts,tsx,json,css,scss,md}\"",
"validate": "pnpm lint && pnpm test:all",
"prepare": "husky install",
"analyze": "pnpm build:analyze && webpack-bundle-analyzer build/bundle-stats.json",
"lighthouse": "lighthouse-ci https://defi-oracle-tooling.github.io/perpetual-leverage-tool",
"compress": "pnpm dlx sharp-cli --input './public/images/**/*.{jpg,png}' --output './public/images/optimized'",
"build:prod": "cross-env NODE_ENV=production webpack --config webpack.config.js",
"analyze:bundle": "cross-env ANALYZE=true pnpm build:prod",
"build:profile": "cross-env NODE_ENV=production webpack --config webpack.config.js --profile --json > stats.json",
"serve:prod": "serve -s build",
"clean:cache": "rimraf node_modules/.cache",
"optimize:images": "sharp-cli --input './src/assets/**/*.{jpg,png}' --output './src/assets/optimized'"
},
"dependencies": {
"@reduxjs/toolkit": "^2.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^9.2.0",
"react-scripts": "5.0.1",
"recharts": "^2.7.3",
"styled-components": "^6.0.7",
"web-vitals": "^3.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vue/preload-webpack-plugin": "^2.0.0",
"autoprefixer": "^10.4.17",
"babel-plugin-styled-components": "^2.1.4",
"compression-webpack-plugin": "^10.0.0",
"core-js": "^3.36.0",
"css-minimizer-webpack-plugin": "^6.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^9.1.7",
"lint-staged": "^15.3.0",
"path-browserify": "^1.0.1",
"postcss": "^8.4.35",
"postcss-loader": "^8.1.0",
"prettier": "^3.4.2",
"sharp-cli": "^4.1.1",
"source-map-explorer": "^2.5.3",
"stream-browserify": "^3.0.0",
"terser-webpack-plugin": "^5.3.10",
"webpack-bundle-analyzer": "^4.9.0",
"workbox-webpack-plugin": "^7.0.0"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"packageManager": "pnpm@9.15.1+sha256.9e534e70afef06374f6126b44bda5760947135ce16a30aef1010e965fb7e3e3e",
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
],
"*.{json,css,scss,md}": [
"prettier --write"
]
}
}