forked from maputnik/osm-liberty
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
37 lines (37 loc) · 1.31 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
{
"name": "osm-liberty-topo",
"version": "0.1.0",
"description": "A free topographic Mapbox GL basemap style for everyone",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"validate": "for file in style*.json; do ./node_modules/.bin/gl-style-validate $file; done",
"diff": "for file in style*.json; do bash -c 'diff <(./node_modules/.bin/gl-style-format $file) $file'; done",
"format": "for file in style*.json; do ./node_modules/.bin/gl-style-format $file | ./node_modules/.bin/sponge $file; done"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nst-guide/osm-liberty-topo.git"
},
"keywords": [
"maps",
"cartography",
"mapbox-gl",
"mapbox-gl-js"
],
"author": "Kyle Barron",
"bugs": {
"url": "https://github.com/nst-guide/osm-liberty-topo/issues"
},
"homepage": "https://github.com/nst-guide/osm-liberty-topo#readme",
"devDependencies": {
"@mapbox/mapbox-gl-style-spec": "^13.10.2",
"husky": "^4.0.7",
"sponge": "^0.1.0"
},
"husky": {
"hooks": {
"pre-commit": "for file in $(git diff --name-only --cached | grep 'style'); do ./node_modules/.bin/gl-style-validate $file && ./node_modules/.bin/gl-style-format $file | ./node_modules/.bin/sponge $file && git add $file; done;"
}
}
}