-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
143 lines (143 loc) · 6.23 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
{
"name": "mobility-toolbox-js",
"license": "MIT",
"description": "Toolbox for JavaScript applications in the domains of mobility and logistics.",
"version": "2.4.2",
"homepage": "https://mobility-toolbox-js.geops.io/",
"module": "index.js",
"exports": {
".": "./index.js",
"./api": "./api/index.js",
"./mapbox": "./mapbox/index.js",
"./ol": "./ol/index.js",
"./types": "./types/index.d.ts"
},
"dependencies": {
"@turf/helpers": "6.5.0",
"@turf/transform-rotate": "6.5.0",
"lodash.debounce": "4.0.8",
"lodash.throttle": "4.1.1",
"uuid": "9.0.1"
},
"peerDependencies": {
"mapbox-gl": "1 - 2",
"maplibre-gl": "1 - 3",
"ol": "7 - 8"
},
"devDependencies": {
"@babel/preset-env": "^7.24.5",
"@babel/preset-typescript": "^7.24.1",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@types/geojson": "7946.0.14",
"@types/lodash.debounce": "4.0.9",
"@types/lodash.throttle": "4.1.9",
"@types/mapbox-gl": "3.1.0",
"@types/offscreencanvas": "2019.7.3",
"@types/topojson": "3.2.6",
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"cypress": "13.8.1",
"esbuild": "0.21.1",
"esdoc": "1.1.0",
"esdoc-ecmascript-proposal-plugin": "1.0.0",
"esdoc-publish-html-plugin": "1.1.2",
"esdoc-standard-plugin": "1.0.0",
"esdoc-typescript-plugin": "1.0.1",
"eslint": "8.57.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "18.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-cypress": "3.2.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-prettier": "5.1.3",
"eslint-plugin-react": "7.34.1",
"fixpack": "4.0.0",
"husky": "9.0.11",
"is-ci": "3.0.1",
"jest": "29.7.0",
"jest-canvas-mock": "2.5.2",
"jest-environment-jsdom": "29.7.0",
"jest-fetch-mock": "3.0.3",
"jest-serializer-html": "7.1.0",
"jest-transformer-svg": "2.0.2",
"jest-websocket-mock": "2.5.0",
"lint-staged": "15.2.2",
"mapbox-gl": "1.13.2",
"maplibre-gl": "4.2.0",
"mock-socket": "9.3.1",
"next": "14.2.3",
"next-transpile-modules": "10.0.1",
"ol": "9.1.0",
"openapi-typescript": "6.7.5",
"prettier": "3.2.5",
"raw-loader": "4.0.2",
"sort-json": "2.0.1",
"standard-version": "9.5.0",
"start-server-and-test": "2.0.3",
"stylelint": "16.5.0",
"stylelint-config-recommended-scss": "14.0.0",
"stylelint-config-standard": "36.0.0",
"stylelint-scss": "6.3.0",
"typescript": "5.4.5"
},
"scripts": {
"apidoc": "esdoc && cp apidoc/index.json doc/src/components/Esdoc",
"build": "yarn build:tsc && yarn esbuild:iife",
"build:tsc": "rm -rf build && yarn tsc && cp package.json build/ && cp -R src/types build/ && find build -type f -name '*.test.*' -delete",
"coverage": "yarn test --watchAll=false --coverage --coverageDirectory=coverage",
"cy:open": "cypress open",
"cy:test": "start-server-and-test dev http://localhost:3000 'cypress run --browser chrome'",
"cy:test:chrome": "yarn build && start-server-and-test start http://localhost:3000 'cypress run --browser chrome'",
"cy:test:edge": "yarn build && start-server-and-test start http://localhost:3000 'cypress run --browser edge'",
"cy:test:firefox": "yarn build && start-server-and-test start http://localhost:3000 'cypress run --browser firefox'",
"dev": "rm -rf .next && rm -rf doc/.next && yarn doc && yarn dev:examples",
"dev:examples": "rm -rf .next && rm -rf doc/.next && yarn build && cd build && yarn link && cd ../doc && yarn link mobility-toolbox-js && yarn dev",
"doc": "yarn build && yarn apidoc && cd doc && rm -rf .next && rm -rf node_modules/mobility-toolbox-js && yarn install --force && yarn build",
"esbuild": "yarn esbuild:all && yarn esbuild:iife",
"esbuild:all": "esbuild src/index.js src/**/*.js src/**/*.ts src/**/**/*.js src/**/**/*.ts --target=chrome100 --outdir=build/ --loader:.js=jsx",
"esbuild:iife": "yarn esbuild:iife:unminify && yarn esbuild:iife:minify",
"esbuild:iife:base": "esbuild src/iife.js --bundle --sourcemap --target=chrome100",
"esbuild:iife:minify": "yarn esbuild:iife:base --minify --outfile=build/mbt.min.js",
"esbuild:iife:unminify": "yarn esbuild:iife:base --outfile=build/mbt.js",
"format": "prettier --write 'src/**/*.js' && eslint 'src/**/*.js' --fix && stylelint 'src/**/*.css' 'src/**/*.scss' --fix --allow-empty-input",
"lib": "REACT_APP_LIB_MODE=1 webpack --mode production",
"lib:dev": "REACT_APP_LIB_MODE=1 webpack --mode development",
"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 src/**/*.ts && stylelint src/**/*.css src/**/*.scss --allow-empty-input",
"prepare": "is-ci || husky",
"publish:beta": "HUSKY=0 yarn release -- --prerelease beta --skip.changelog && yarn run build && cd build && HUSKY=0 yarn publish --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 run build && cd build && HUSKY=0 yarn publish && git push origin HEAD && git push --tags ",
"publish:public:dryrun": "yarn release --dry-run",
"release": "standard-version",
"start": "yarn doc && cd doc && yarn start",
"start:examples": "cd doc && yarn build && yarn start",
"test": "TZ='UTC' jest ",
"test:watch": "yarn test --watchAll",
"tsc": "tsc",
"types:backend": "openapi-typescript https://developer.geops.io/swagger/routing.json --output src/types/routing.d.ts && openapi-typescript https://developer.geops.io/swagger/stops.json --output src/types/stops.d.ts",
"up": "yarn upgrade-interactive --latest"
},
"browserslist": [
">0.2%",
"not dead",
"not op_mini all",
"not ie <= 11",
"not android < 5"
],
"keywords": [
"mobility",
"realtime",
"routing",
"stops",
"toolbox"
],
"repository": {
"type": "git",
"url": "https://github.com/geops/mobility-toolbox-js"
},
"sideEffects": false
}