-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
45 lines (45 loc) · 2.69 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
{
"name": "@deep-foundation/materialized-path",
"version": "0.0.35",
"license": "Unlicense",
"author": "Ivan S Glazunov <[email protected]>",
"homepage": "https://github.com/deep-foundation/materialized-path",
"repository": {
"type": "git",
"url": "ssh://[email protected]/deep-foundation/materialized-path.git"
},
"description": "",
"dependencies": {
"@types/jest": "^26.0.22",
"@types/node": "^14.0.23",
"@types/react": "^18.2.15",
"benchmark": "^2.1.4",
"chance": "^1.1.7",
"microtime": "^3.0.0",
"ts-jest": "^29.1.0",
"ts-node-dev": "^2.0.0"
},
"scripts": {
"gitpod-prepare": "(yes | sudo apt install screen); (yes | sudo apt install rsync); (yes | sudo apt install net-tools); screen -S docker -d -m sudo docker-up",
"package:refresh": "rm -rf node_modules; rm -f package-lock.json; npm i",
"package:build": "npx tsc --project tsconfig.json && (cd ./migrations && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts)",
"package:unbuild": "rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts && (cd ./migrations && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts) && (cd ./benchmarks && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts) && (cd ./tests && rm -f ./*.js; rm -f ./*.js.map; rm -f ./*.d.ts)",
"package:publish": "npm run package:build; npm publish --access public; npm run package:unbuild",
"package:release": "npm version patch && git push",
"test": "export HASURA_PATH=localhost:8080; export HASURA_SSL=0; export HASURA_SECRET=myadminsecretkey; jest",
"migrate": "export MIGRATIONS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=0; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export $(grep -v '^#' .env | xargs); yes | DEBUG='deepcase:*' npx migrate up --compiler='ts:@deep-foundation/hasura/compiler/index.js'",
"unmigrate": "export MIGRATIONS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=0; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export $(grep -v '^#' .env | xargs); yes | DEBUG='deepcase:*' npx migrate down --compiler='ts:@deep-foundation/hasura/compiler/index.js'",
"hasura": "(cd node_modules/@deep-foundation/hasura; npm run docker)",
"clear": "(killall screen; rm -rf .migrate; cd node_modules/@deep-foundation/hasura/local/; docker-compose down; docker rm -f $(docker ps -a -q); docker volume rm $(docker volume ls -q))",
"benchmark": "export HASURA_PATH=localhost:8080; export HASURA_SSL=0; export HASURA_SECRET=myadminsecretkey; DEBUG='materialized-path:*' ts-node benchmarks/index.ts"
},
"devDependencies": {
"jest": "^29.5.0",
"ts-node": "^10.9.1",
"typescript": "5.0.4"
},
"peerDependencies": {
"@deep-foundation/hasura": "0.0.x",
"graphql": "^15.5.3"
}
}