-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
28 lines (28 loc) · 1.96 KB
/
package.json
File metadata and controls
28 lines (28 loc) · 1.96 KB
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
{
"name": "data-taps-template",
"version": "1.0.0",
"description": "Data Taps Getting Started",
"author": "Dan Forsberg <dan@boilingdata.com>",
"license": "MIT",
"private": false,
"scripts": {
"dump": "yq '... comments=\"\"' data-taps-iac.yaml",
"templates": "bdcli sandbox list",
"validate": "bdcli sandbox validate --template data-taps-iac.yaml",
"upload": "bdcli sandbox upload --template data-taps-iac.yaml",
"connect": "bdcli sandbox create-role --template data-taps-iac.yaml",
"plan": "bdcli sandbox plan --name dev__euw1__test",
"redeploy": "yarn destroy && yarn deploy",
"deploy": "bdcli sandbox deploy --name dev__euw1__test",
"destroy": "bdcli sandbox destroy --name dev__euw1__test",
"destroy:really": "bdcli sandbox destroy --destroy-also-interfaces --name dev__euw1__test",
"taptoken": "( printf \"export TAP_TOKEN=\" && bdcli account tap-client-token --lifetime 24h --disable-spinner | jq -r .bdTapToken ) > .taptoken",
"tapurl": "( printf \"export TAP_URL=\" && bdcli sandbox deploy --disable-spinner --name dev__euw1__test | jq -r '.[].outputs.url' | grep https ) > .tapurl",
"test": "source .taptoken && source .tapurl && curl -v -w \"@curl-format.txt\" --no-keepalive -H \"Connection: close\" -H \"Content-Type:application/x-ndjson\" -H \"x-bd-authorization: ${TAP_TOKEN}\" -s --data-binary @data.json ${TAP_URL}",
"test:loop": "source .taptoken && source .tapurl && while :; do curl -w \"@curl-format.txt\" --no-keepalive -H \"Connection: close\" -H \"Content-Type:application/x-ndjson\" -H \"x-bd-authorization: ${TAP_TOKEN}\" -s --data-binary @data.json ${TAP_URL} ; sleep 0.5 ; done",
"test:loop:busy": "source .taptoken && source .tapurl && while :; do ( curl -w \"@curl-format.txt\" -H \"Content-Type:application/x-ndjson\" -H \"x-bd-authorization: ${TAP_TOKEN}\" -s --data-binary @data.json ${TAP_URL} & ) ; sleep 0.05 ; done"
},
"dependencies": {
"@boilingdata/boilingdata-bdcli": "^1.1.2"
}
}