-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (50 loc) · 1.9 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
{
"name": "pepr-store-demo",
"version": "0.0.1",
"description": "",
"keywords": [
"pepr",
"k8s",
"policy-engine",
"pepr-module",
"security"
],
"engines": {
"node": ">=18.0.0"
},
"pepr": {
"name": "pepr-store-demo",
"uuid": "7296dc8f-54ec-5237-a340-d27ffdfb48e3",
"onError": "reject",
"alwaysIgnore": {
"namespaces": [],
"labels": []
}
},
"scripts": {
"k3d-setup": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0' --wait && kubectl rollout status deployment -n kube-system",
"pretest": "rm -f ./cluster.lock",
"test": "jest --verbose --forceExit",
"dev:build": "npx pepr build",
"dev:uuid": "cat package.json | jq -r '.pepr.uuid'",
"dev:deploy": "npx pepr deploy --confirm && kubectl rollout status deployment -n pepr-system",
"dev:deploy:fresh": "npm run k3d-setup; npm run dev:deploy",
"dev:deploy:restart": "kubectl rollout restart deployment -n pepr-system && kubectl rollout status deployment -n pepr-system",
"dev:apply": "kubectl apply -f ./capabilities/pepr-store-demo/capability.yaml",
"dev:unapply": "kubectl delete -f ./capabilities/pepr-store-demo/capability.yaml",
"dev:reapply": "npm run dev:unapply ; npm run dev:apply",
"dev:refresh": "npm run dev:unapply ; npm run dev:deploy:restart ; npm run dev:apply",
"dev:logs": "npm run --silent dev:uuid | xargs -I {} kubectl logs -n pepr-system -l \"app=pepr-{}\" --all-containers --tail=-1 2>/dev/null | grep -v '/healthz' | jq --slurp 'sort_by(.time)'",
"dev:logs:msg": "npm run --silent dev:logs | jq -r '.[] | (.time | tostring) +\" \"+ (.hostname | split(\"-\") | last) +\" \"+ .msg'",
"asdf": "echo $INIT_CWD"
},
"dependencies": {
"pepr": "^0.14.1"
},
"devDependencies": {
"deepmerge": "^4.3.1",
"jest": "29.7.0",
"ts-jest": "29.1.1",
"typescript": "5.2.2"
}
}