-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpackage.json
65 lines (65 loc) · 2.34 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
{
"name": "cloud-tileserver",
"version": "1.3.1",
"description": "AWS lambda function to handle vectortile queries via REST",
"main": "index.js",
"scripts": {
"tools": "tsc tools/toml2json.ts",
"gen:sources": "node tools/toml2json.js < src/sources.toml > src/sources.json",
"gen:sprites": "node tools/gensprites.js && mv sprites/cyclemap* html/sprites",
"test": "LOG_LEVEL=3 jest --coverage && coveralls < coverage/lcov.info",
"test:solo": "LOG_LEVEL=1 jest --coverage",
"test:single": "LOG_LEVEL=1 jest --coverage vectortile.test.ts",
"layer": "cd tileserver_layer/nodejs && npm i",
"html": "aws s3 cp ./html/ s3://cyclemap.link/ --recursive",
"docs": "node node_modules/typedoc/bin/typedoc",
"sim": "npm run predeploy && LOG_LEVEL=5 PGUSER=postgres PGHOST=127.0.0.1 PGPORT=5432 node node_modules/lambda-local/build/cli.js -l dist/index.js -h handler -e test/fixtures/local_14_8691_5677.js",
"local": "tsc local/local.ts && LOG_LEVEL=3 node local/local.js",
"predeploy": "rm -rf ./dist/* && npm run gen:sources && tsc && cp ./src/sources.json ./dist && zip -j ./dist/function.zip ./dist/*.js* && cd tileserver_layer/nodejs && npm i && cd .. && zip -qr ../dist/tileserver_layer.zip nodejs",
"deploy": "aws lambda update-function-code --function-name tileserver --zip-file fileb://dist/function.zip"
},
"repository": {
"type": "git",
"url": "git+https://github.com/henrythasler/cloud-tileserver.git"
},
"keywords": [
"vectortiles",
"postgis",
"lambda",
"mapbox",
"mvt",
"terraform",
"aws",
"cloud"
],
"author": "Henry Thasler",
"license": "MIT",
"bugs": {
"url": "https://github.com/henrythasler/cloud-tileserver/issues"
},
"homepage": "https://github.com/henrythasler/cloud-tileserver#readme",
"devDependencies": {
"@iarna/toml": "^2.2.5",
"@mapbox/spritezero": "^8.0.3",
"@types/aws-lambda": "^8.10.119",
"@types/chai": "^4.3.5",
"@types/jest": "^29.5.3",
"@types/node": "^14.18.54",
"@types/pg": "^8.10.2",
"chai": "^4.3.7",
"coveralls": "^3.1.1",
"jest": "^29.6.2",
"lambda-local": "^2.1.1",
"ts-jest": "^29.1.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.395.0",
"aws-lambda": "^1.0.7",
"pg": "^8.11.3"
},
"np": {
"publish": false
}
}