Skip to content

Commit 1c565e3

Browse files
authored
feat: script to generate color scales (#67)
* script to generate color scales * export styling
1 parent b92c21c commit 1c565e3

File tree

9 files changed

+635
-445
lines changed

9 files changed

+635
-445
lines changed

package-lock.json

Lines changed: 105 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"dev:umd": "vite build --config vite.config.umd.ts --watch",
2626
"test": "vitest",
2727
"lint": "prettier --check . && eslint .",
28+
"generate:colorscales": "tsx scripts/generate-colorscales.ts && prettier --write src/utils/color-scales.ts",
2829
"build:esm": "vite build",
2930
"build:cjs": "vite build --config vite.config.cjs.ts",
3031
"build:umd": "vite build --config vite.config.umd.ts",
@@ -35,21 +36,26 @@
3536
"@eslint/compat": "^1.4.0",
3637
"@eslint/js": "^9.38.0",
3738
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
39+
"@types/d3-interpolate": "^3.0.4",
40+
"@types/node": "^24.9.2",
3841
"@typescript-eslint/eslint-plugin": "^8.46.2",
3942
"@typescript-eslint/parser": "^8.46.2",
43+
"d3-color": "^3.1.0",
44+
"d3-interpolate": "^3.0.1",
4045
"eslint": "^9.38.0",
4146
"eslint-config-prettier": "^10.1.8",
4247
"globals": "^16.4.0",
4348
"prettier": "^3.6.2",
49+
"tsx": "^4.20.6",
4450
"typescript": "5.9.3",
4551
"typescript-eslint": "^8.46.2",
4652
"vite": "^7.1.11",
4753
"vite-plugin-dts": "^4.5.4",
4854
"vitest": "^4.0.4"
4955
},
5056
"dependencies": {
51-
"@openmeteo/file-reader": "^0.0.13",
5257
"@mapbox/vector-tile": "^2.0.4",
58+
"@openmeteo/file-reader": "^0.0.13",
5359
"maplibre-gl": "^5.9.0",
5460
"pbf": "^4.0.1"
5561
}

0 commit comments

Comments
 (0)