-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpackage.json
208 lines (208 loc) · 6.44 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"name": "react-spatial",
"license": "MIT",
"description": "Components to build React map apps.",
"version": "1.12.2",
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@geops/geops-ui": "0.3.4",
"@mui/icons-material": "^6.1.7",
"@mui/material": "^6.1.7",
"re-resizable": "6.10.1",
"react-icons": "5.3.0",
"resize-observer-polyfill": "1.5.1"
},
"peerDependencies": {
"mapbox-gl": "^1",
"maplibre-gl": "^2",
"mobility-toolbox-js": "^2",
"ol": "^8",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.25.9",
"@cfaester/enzyme-adapter-react-18": "0.8.0",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@svgr/plugin-jsx": "^8.1.0",
"@svgr/webpack": "8.1.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.0.1",
"@testing-library/user-event": "14.5.2",
"babel-jest": "29.7.0",
"babel-loader": "9.2.1",
"canvas": "2.11.2",
"css-loader": "7.1.2",
"enzyme": "3.11.0",
"esbuild": "^0.24.0",
"esbuild-loader": "^4.2.2",
"eslint": "8",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.0.0",
"file-loader": "6.2.0",
"fixpack": "4.0.0",
"generact": "0.4.0",
"husky": "9.1.6",
"identity-obj-proxy": "^3.0.0",
"is-ci": "3.0.1",
"jest": "29.7.0",
"jest-canvas-mock": "2.5.2",
"jest-date-mock": "1.0.10",
"jest-environment-jsdom": "^29.7.0",
"jest-fetch-mock": "3.0.3",
"jest-serializer-html": "7.1.0",
"jest-transform-file": "1.1.1",
"jest-transformer-svg": "^2.0.2",
"jsts": "2.12.1",
"lint-staged": "15.2.10",
"mapbox-gl": "1.13.1",
"maplibre-gl": "4.7.1",
"mobility-toolbox-js": "2.4.2",
"ol": "10.2.1",
"postcss": "^8.4.49",
"prettier": "3.3.3",
"proj4": "2.14.0",
"prop-types": "15.8.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-styleguidist": "13.1.3",
"react-svg-loader": "3.0.3",
"react-test-renderer": "18.3.1",
"sass": "1.81.0",
"sass-loader": "16.0.3",
"sass-migrator": "^2.2.1",
"standard-version": "9.5.0",
"stream-array": "1.1.2",
"style-loader": "4.0.0",
"stylelint": "16.10.0",
"stylelint-config-recommended-scss": "14.1.0",
"stylelint-config-standard": "36.0.1",
"stylelint-scss": "6.9.0",
"terser-webpack-plugin": "^5.3.10",
"url-loader": "4.1.1",
"vinyl-fs": "4.0.0",
"webpack": "^5.96.1",
"xml-beautifier": "0.5.0"
},
"scripts": {
"build": "yarn esbuild && find build -type f -name '*.test.*' -delete && rm -rf build/styleguidist && cp package.json README.md LICENSE build && cp -rf src/images build && cp -rf src/themes build",
"coverage": "yarn test --coverage --coverageDirectory=coverage",
"cp": "generact --root src/components",
"doc": "styleguidist build",
"esbuild": "esbuild src/*.js src/**/*.js src/**/**/*.js --target=chrome100 --outdir=build/ --loader:.js=jsx --sourcemap=external",
"format": "prettier --write 'src/**/*.js' && eslint 'src/**/*.js' --fix && stylelint 'src/**/*.css' 'src/**/*.scss' --fix",
"link2": "cmdToAdd=$(node ./scripts/read-pkg-json.js add) && $cmdToAdd && yarn build && cmdToRemove=$(node ./scripts/read-pkg-json.js remove) && $cmdToRemove && cd build && yarn link",
"lint": "eslint 'src/**/*.js' && stylelint 'src/**/*.css' 'src/**/*.scss'",
"postbuild": "cp package.json build/ && cd src && find . -name '*.scss' | cpio -pdm ../build",
"prebuild": "rm -rf build/",
"prepare": "is-ci || husky",
"publish:beta": "yarn release -- --prerelease beta --skip.changelog && yarn run build && HUSKY=0 yarn publish build/ --tag beta && git push origin HEAD && git push --tags",
"publish:beta:dryrun": "yarn release -- --prerelease beta --dry-run --skip.changelog",
"publish:public": "yarn release && yarn build && HUSKY=0 yarn publish build/ && git push origin HEAD && git push --tags",
"publish:public:dryrun": "yarn release --dry-run",
"release": "standard-version",
"start": "styleguidist server",
"test": "jest",
"up": "yarn upgrade-interactive --latest"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all",
"not ie <= 11",
"not android < 5"
],
"eslintConfig": {
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:perfectionist/recommended-alphabetical-legacy",
"prettier"
],
"parserOptions": {
"ecmaVersion": "latest"
},
"plugins": [
"perfectionist",
"prettier"
],
"rules": {
"arrow-body-style": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"react/sort-comp": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"no-restricted-exports": "Off",
"react/forbid-prop-types": "Off",
"prettier/prettier": "error",
"jsx-a11y/no-access-key": "Off",
"react/require-default-props": "Off"
}
},
"jest": {
"testEnvironment": "jsdom",
"transform": {
".+\\.js$": "babel-jest",
".+\\.svg$": "jest-transformer-svg"
},
"transformIgnorePatterns": [
"node_modules/(?!(color-*|jsts|ol|mobility-toolbox-js|@geops|geotiff|quick-lru|quickselect|rbush|pbf|earcut))"
],
"testMatch": [
"<rootDir>/src/**/?(*.)+(spec|test).[jt]s?(x)"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|webp|scss)$": "identity-obj-proxy"
},
"snapshotSerializers": [
"jest-serializer-html"
],
"testPathIgnorePatterns": [
"<rootDir>/(build|coverage|public|doc|packages)"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
]
},
"lint-staged": {
"(src|__mocks__)/**/*.js": [
"eslint --fix",
"prettier --write",
"yarn test --bail --findRelatedTests"
],
"package.json": [
"fixpack"
],
"src/**/*.{css,scss}": [
"stylelint --fix"
]
}
}