-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
127 lines (127 loc) · 26.8 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "@deep-foundation/dev",
"version": "0.0.21",
"author": "ivansglazunov",
"license": "Unlicense",
"bugs": {
"url": "https://github.com/deep-foundation/dev/issues"
},
"homepage": "https://github.com/deep-foundation/dev#readme",
"scripts": {
"parentScript": "cross-env GREET=\"QWE\" cross-env-shell \"echo Hello $GREET\"",
"childScript": "cross-env-shell \"echo Hello $GREET\"",
"gulp": "gulp",
"test": "(cd packages/deeplinks; npm run test)",
"codespaces-prepare": "npm run gitpod-prepare",
"gitpod-prepare": "npm run git-shh-to-https && sudo apt update && (yes | sudo apt install screen) && (yes | sudo apt install rsync) && (yes | sudo apt install net-tools) && screen -S docker -d -m sudo docker-up",
"packages": "rm -rf packages/deepcase && rm -rf packages/deepcase-app && rm -rf packages/deeplinks && (npx gulp packages:get) && (npx gulp packages:ci) && npm ci",
"packages:refresh": "(cd packages && for d in */; do (cd $d && git checkout main && git pull && (npm run package:refresh && git add . && git commit -m 'refresh' && git push) || true); done); rm -rf packages/deepcase/node_modules && rm -rf packages/deepcase-app/node_modules && rm -rf packages/deeplinks/node_modules && rm -rf node_modules && rm -f package-lock.json && npm i && npm ci && git add . && git commit -m 'L² ↦ L' && git push",
"packages-ci": "(cd packages && for d in */; do (cd $d && npm ci); done)",
"deepcase": "(cd packages/deepcase-app && npm run dev -- -p 3007)",
"deepcase-build": "cd packages/deepcase-app && cross-env ASSET_PREFIX='.' npm run build && npm run export && npx rimraf electron/app && npx cap copy electron",
"deeplinks": "cd packages/deeplinks && npm run dev",
"local": "cross-env npm_config_yes=true NEXT_PUBLIC_ENGINES=1 NEXT_PUBLIC_HIDEPATH=1 JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" MIGRATIONS_ID_TYPE_SQL=bigint MIGRATIONS_ID_TYPE_GQL=bigint MIGRATIONS_HASURA_PATH=localhost:8080 MIGRATIONS_HASURA_SSL=0 MIGRATIONS_HASURA_SECRET=myadminsecretkey DEEPLINKS_HASURA_SECRET=myadminsecretkey NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007 NEXT_PUBLIC_GQL_PATH=localhost:3006/gql NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080 DEEPLINKS_HASURA_SSL=0 MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006 NEXT_PUBLIC_DEEPLINKS_URL=http://localhost:3006 DEEPLINKS_PUBLIC_URL=http://localhost:3006 DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006 DEEPLINKS_ROUTE_HANDLERS_HOST=host.docker.internal npm run local-core",
"local-core": "concurrently \"npm run deepcase\" \"npm run deeplinks\" \"npm run local-engine\" \"npm run sdk\" \"(cd packages/deeplinks && until [ -f ./warmup.js ]; do sleep 1; done && npm run warmup)\" \"(cd packages/deeplinks && npm run package:watch)\" \"(cd packages/deepcase && npm run package:watch)\"",
"local-engine": "cd packages/hasura && npm run docker",
"electron-dev": "(cross-env npm_config_yes=true NEXT_PUBLIC_ENGINES=1 MIGRATIONS_ID_TYPE_SQL=bigint MIGRATIONS_ID_TYPE_GQL=bigint MIGRATIONS_HASURA_PATH=localhost:8080 MIGRATIONS_HASURA_SSL=0 MIGRATIONS_HASURA_SECRET=myadminsecretkey NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007 NEXT_PUBLIC_GQL_PATH=localhost:3006/gql NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080 DEEPLINKS_HASURA_SSL=0 MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006 NEXT_PUBLIC_DEEPLINKS_URL=http://localhost:3006 DEEPLINKS_PUBLIC_URL=http://localhost:3006 npm run electron-dev-core)",
"electron-dev-core": "cd packages/deepcase-app && npx cap copy electron && npm run electron-dev",
"electron-build-mac": "APPLEIDPASS=$(security find-generic-password -w -a [email protected]) [email protected] CSC_NAME='Deep Foundation (XXXXXXXXXX)' npm run electron-build-unix",
"electron-build-unix": "npm run apply-all && npm run electron-next-build-unix && npm run electron-build-pack",
"electron-build-windows": "npm run apply-all && npm run electron-next-build-windows && npm run electron-build-pack",
"electron-next-build-unix": "(cross-env MIGRATIONS_DIR=/tmp/.migrate && npm run electron-build-core)",
"electron-next-build-windows": "(cross-env MIGRATIONS_DIR=.migrate && npm run electron-build-core)",
"electron-build-core": "(cross-env npm_config_yes=true NEXT_PUBLIC_ENGINES=1 NEXT_PUBLIC_HIDEPATH=1 MIGRATIONS_ID_TYPE_SQL=bigint MIGRATIONS_ID_TYPE_GQL=bigint MIGRATIONS_HASURA_PATH=localhost:8080 MIGRATIONS_HASURA_SSL=0 MIGRATIONS_HASURA_SECRET=myadminsecretkey NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007 NEXT_PUBLIC_GQL_PATH=localhost:3006/gql NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080 DEEPLINKS_HASURA_SSL=0 MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 NEXT_PUBLIC_DEEPLINKS_URL=MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006 NEXT_PUBLIC_DEEPLINKS_URL=http://localhost:3006 DEEPLINKS_PUBLIC_URL=http://localhost:3006 npm run deepcase-build)",
"electron-build-pack": "cd packages/deepcase-app/electron && npm run electron:pack",
"electron-build-pack-demo": "cd packages/deepcase-app/electron && CSC_IDENTITY_AUTO_DISCOVERY=false npm run electron:pack-demo",
"codespaces-codespaces-name": "export CODESPACE_NAME=$(jq -r \".CODESPACE_NAME\" /workspaces/.codespaces/shared/environment-variables.json)",
"codespaces-variables": "npm run codespaces-codespaces-name",
"codespaces-init": "npm run codespaces-variables && npm run codespaces-prepare && npm ci && npm run packages",
"codespaces-start": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo \"https://${CODESPACE_NAME}-3007.app.github.dev\" | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo \"https://${CODESPACE_NAME}-3007.app.github.dev\" | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export MIGRATIONS_DEEPLINKS_APP_URL=$(echo \"https://${CODESPACE_NAME}-3007.app.github.dev\"); export MIGRATIONS_DEEPLINKS_URL=$(echo \"https://${CODESPACE_NAME}-3006.app.github.dev\"); export DEEPLINKS_PUBLIC_URL=$(echo \"https://${CODESPACE_NAME}-3006.app.github.dev\"); export NEXT_PUBLIC_DEEPLINKS_URL=$(echo \"https://${CODESPACE_NAME}-3006.app.github.dev\"); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; export DEEPLINKS_ROUTE_HANDLERS_HOST=host.docker.internal; concurrently \"npm run deepcase\" \"npm run deeplinks\" \"npm run gitpod-engine\" \"npm run sdk\" \"sleep 120 && npm run codespaces-hasura-reattach\" \"(cd packages/deepcase && npm run package:watch)\"",
"gitpod-init": "npm run gitpod-prepare && npm ci && npm run packages",
"gitpod-start": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export NEXT_PUBLIC_DEEPLINKS_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; export DEEPLINKS_ROUTE_HANDLERS_HOST=host.docker.internal; concurrently \"npm run deepcase\" \"npm run deeplinks\" \"npm run gitpod-engine\" \"npm run sdk\" \"(cd packages/deeplinks && until [ -f ./warmup.js ]; do sleep 1; done && npm run warmup)\" \"(cd packages/deeplinks && npm run package:watch)\" \"(cd packages/deepcase && npm run package:watch)\"",
"gitpod-engine": "cd packages/deeplinks && npm run start-engine-docker",
"gitpod-wakeup": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export NEXT_PUBLIC_DEEPLINKS_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; npm run apply-deeplinks && concurrently \"npm run deepcase\" \"npm run deeplinks\" \"(cd packages/deeplinks && npm run start-engine-docker)\" \"(cd packages/deepcase && npm run package:watch)\"",
"gitpod-migrate": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run migrate",
"gitpod-unmigrate": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run unmigrate",
"gitpod-remigrate": "npm run gitpod-unmigrate && npm run gitpod-migrate",
"gitpod-remigrate-s-h": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export export MIGRATIONS_HASURA_SSL=1; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export DEEPLINKS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=https://$(echo $(gp url 3007) | awk -F[/:] '{print $4}'); export NEXT_PUBLIC_GQL_PATH=$(echo $(gp url 3007) | awk -F[/:] '{print $4}')/api/gql; export NEXT_PUBLIC_GQL_SSL=1 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=$(gp url 3007); export MIGRATIONS_DEEPLINKS_URL=$(gp url 3006); export DEEPLINKS_PUBLIC_URL=$(gp url 3006); export DOCKER_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run remigrate-s-h",
"gitpod-update": "(cd packages && for d in */; do (cd $d && git checkout main && git pull --no-rebase && npm ci); done); npm ci; npm run gitpod-migrate;",
"gitpod-update-force": "(cd packages && for d in */; do (cd $d && git checkout main && git pull --no-rebase && rm -rf node_modules && rm -f package-lock.json && npm i); done); npm i; npm run gitpod-migrate;",
"docker-deep-start": "(docker start $(docker ps --format \"{{.Names}}\" | grep '^deep-.*$'))",
"docker-deep-stop": "(docker stop $(docker ps --format \"{{.Names}}\" | grep '^deep-.*$'))",
"docker-deep-down": "(docker rm -f $(docker ps --format \"{{.Names}}\" | grep '^deep-.*$'))",
"docker-deep-clear": "(docker rm -f $(docker ps --format \"{{.Names}}\" | grep '^deep-.*$')); (docker volume rm $(docker volume ls -q | grep '^deep-.*$')); npm run rm-migrates",
"docker-clear-all": "docker rm -v -f $(docker ps -qa); docker volume rm $(docker volume ls -q); docker rmi -f $(docker images -qa); npm run rm-migrates",
"local-migrate": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\"; export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=0; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007; export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql; export NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 export MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run migrate",
"local-unmigrate": "export NEXT_PUBLIC_ENGINES=0; export NEXT_PUBLIC_HIDEPATH=1; export npm_config_yes=true; export JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" export MIGRATIONS_ID_TYPE_SQL=bigint; export MIGRATIONS_ID_TYPE_GQL=bigint; export MIGRATIONS_HASURA_PATH=localhost:8080; export MIGRATIONS_HASURA_SSL=0; export MIGRATIONS_HASURA_SECRET=myadminsecretkey; export NEXT_PUBLIC_DEEPLINKS_SERVER=http://localhost:3007; export NEXT_PUBLIC_GQL_PATH=localhost:3006/gql; export NEXT_PUBLIC_GQL_SSL=0 DEEPLINKS_HASURA_PATH=localhost:8080; export DEEPLINKS_HASURA_SSL=0; export MIGRATIONS_DEEPLINKS_APP_URL=http://host.docker.internal:3007 export MIGRATIONS_DEEPLINKS_URL=http://host.docker.internal:3006; cd packages/deeplinks && npm run unmigrate",
"rm-migrates": "(rm -rf ./packages/deeplinks/.migrate)",
"git-shh-to-https": "git config --global url.\"https://\".insteadOf git:// && git config --global url.\"https://github.com/\".insteadOf ssh://[email protected]/",
"apply-deepcase": "(rm -rf ./packages/deepcase-app/app && cd packages/deepcase && npm ci && npm run package:build && cd ../../ && (npm run apply-deepcase-deepcase-app || true) && cd packages/deepcase && npm run package:unbuild)",
"apply-deepcase-deepcase-app": "rm -rf packages/deepcase-app/node_modules/@deep-foundation/deepcase/imports && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deepcase/package.json && cp -r packages/deepcase/imports packages/deepcase-app/node_modules/@deep-foundation/deepcase/imports && cp packages/deepcase/package.json packages/deepcase-app/node_modules/@deep-foundation/deepcase/package.json && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deepcase/node_modules",
"apply-deeplinks": "(rm -rf ./packages/deepcase-app/app && cd packages/deeplinks && npm ci && npm run package:build && cd ../../ && (npm run apply-deeplinks-sdk || true) && (npm run apply-deeplinks-deepcase || true) && (npm run apply-deeplinks-electron || true) && (npm run apply-deeplinks-dev || true) && cd packages/deeplinks && npm run package:unbuild)",
"apply-deeplinks-sdk": "rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/imports && rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/migrations && rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/local && rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/index.* && rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/package.json && cp -r packages/deeplinks/imports packages/sdk/node_modules/@deep-foundation/deeplinks/imports && cp -r packages/deeplinks/migrations packages/sdk/node_modules/@deep-foundation/deeplinks/migrations && cp -r packages/deeplinks/local packages/sdk/node_modules/@deep-foundation/deeplinks/local && cp packages/deeplinks/index.* packages/sdk/node_modules/@deep-foundation/deeplinks/ && cp packages/deeplinks/package.json packages/sdk/node_modules/@deep-foundation/deeplinks/package.json && rm -rf packages/sdk/node_modules/@deep-foundation/deeplinks/node_modules",
"apply-deeplinks-deepcase": "rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/imports && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/migrations && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/local && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/index.* && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/package.json && cp -r packages/deeplinks/imports packages/deepcase-app/node_modules/@deep-foundation/deeplinks/imports && cp -r packages/deeplinks/migrations packages/deepcase-app/node_modules/@deep-foundation/deeplinks/migrations && cp -r packages/deeplinks/local packages/deepcase-app/node_modules/@deep-foundation/deeplinks/local && cp packages/deeplinks/index.* packages/deepcase-app/node_modules/@deep-foundation/deeplinks/ && cp packages/deeplinks/package.json packages/deepcase-app/node_modules/@deep-foundation/deeplinks/package.json && rm -rf packages/deepcase-app/node_modules/@deep-foundation/deeplinks/node_modules",
"apply-deeplinks-electron": "rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/imports && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/migrations && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/local && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/index.* && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/package.json && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/node_modules && cp -r packages/deeplinks/imports packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/imports && cp -r packages/deeplinks/migrations packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/migrations && cp -r packages/deeplinks/local packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/local && cp packages/deeplinks/index.* packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/ && cp packages/deeplinks/package*.json packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks && rm -rf packages/deepcase-app/electron/node_modules/@deep-foundation/deeplinks/node_modules",
"apply-deeplinks-dev": "rm -rf node_modules/@deep-foundation/deeplinks/imports && rm -rf node_modules/@deep-foundation/deeplinks/migrations && rm -rf node_modules/@deep-foundation/deeplinks/local && rm -rf node_modules/@deep-foundation/deeplinks/index.* && rm -rf node_modules/@deep-foundation/deeplinks/package.json && cp -r packages/deeplinks/imports node_modules/@deep-foundation/deeplinks/imports && cp -r packages/deeplinks/migrations node_modules/@deep-foundation/deeplinks/migrations && cp -r packages/deeplinks/local node_modules/@deep-foundation/deeplinks/local && cp packages/deeplinks/index.* node_modules/@deep-foundation/deeplinks/ && cp packages/deeplinks/package.json node_modules/@deep-foundation/deeplinks/package.json && rm -rf node_modules/@deep-foundation/deeplinks/node_modules",
"rm-hasura": "rm -rf ./packages/deepcase-app/node_modules/@deep-foundation/hasura && rm -rf ./packages/deeplinks/node_modules/@deep-foundation/hasura && rm -rf ./packages/materialized-path/node_modules/@deep-foundation/hasura && rm -rf ./packages/deepcase-app/electron/node_modules/@deep-foundation/hasura",
"cp-hasura": "(cd ./packages/hasura && npm ci && npm run package:build && cd ../../) && rm -rf ./packages/hasura/node_modules && (cp -r ./packages/hasura/ ./packages/deepcase-app/electron/node_modules/@deep-foundation/hasura || true) && (cp -r ./packages/hasura/ ./packages/deepcase-app/node_modules/@deep-foundation/hasura || true) && (cp -r ./packages/hasura/ ./packages/deeplinks/node_modules/@deep-foundation/hasura || true) && (cp -r ./packages/hasura/ ./packages/materialized-path/node_modules/@deep-foundation/hasura || true) && (cd ./packages/hasura && npm ci && npm run package:unbuild && cd ../..)",
"apply-hasura": "npm run rm-hasura && npm run cp-hasura",
"rm-store": "rm -rf ./packages/deepcase-app/node_modules/@deep-foundation/store && rm -rf ./packages/deeplinks/node_modules/@deep-foundation/store && rm -rf ./packages/gh-pages/node_modules/@deep-foundation/store && rm -rf ./packages/js-docker-isolaton-provider/node_modules/@deep-foundation/store && rm -rf ./packages/sdk/node_modules/@deep-foundation/store && rm -rf ./packages/deepcase-app/electron/node_modules/@deep-foundation/store && rm -rf ./packages/sdk/electron/node_modules/@deep-foundation/store",
"cp-store": "(cd ./packages/store && npm ci && npm run package:build && cd ../../) && rm -rf ./packages/store/node_modules && (cp -r ./packages/store/ ./packages/deepcase-app/node_modules/@deep-foundation/store || true) && (cp -r ./packages/store/ ./packages/deepcase-app/electron/node_modules/@deep-foundation/store || true) && (cp -r ./packages/store/ ./packages/deeplinks/node_modules/@deep-foundation/store || true) && (cp -r ./packages/hasura/ ./packages/gh-pages/node_modules/@deep-foundation/store || true) && (cp -r ./packages/store/ ./packages/js-docker-isolation-provider/node_modules/@deep-foundation/store || true) && (cp -r ./packages/store/ ./packages/sdk/node_modules/@deep-foundation/store || true) && (cd ./packages/store && npm ci && npm run package:unbuild && cd ../..)",
"apply-store": "npm run rm-store && npm run cp-store",
"apply-all": "npm run apply-hasura && npm run apply-deeplinks && npm run apply-store && npm run apply-deepcase",
"aa": "npm run apply-all",
"ad": "npm run apply-deeplinks",
"ah": "npm run apply-hasura",
"as": "npm run apply-store",
"ebw": "npm run electron-build-windows",
"ebu": "npm run electron-build-unix",
"ebm": "npm run electron-build-mac",
"enu": "npm run electron-next-build-unix",
"enw": "npm run electron-next-build-windows",
"pull-ci-apply": "(cd packages/hasura; git pull; npm ci); (cd packages/deeplinks; git pull; npm ci); (cd packages/deepcase-app; git pull; npm ci); (cd packages/deepcase-app/electron; npm ci); git pull && npm run apply-deeplinks && npm run apply-hasura",
"sdk": "(cd packages/sdk; PORT=4000 npm run dev)",
"local-recreate": "npm run local-unmigrate; npm run docker-clear; npm run rm-migrates; npm run local-engine; npm run local-migrate;",
"gitpod-recreate": "npm run gitpod-unmigrate; npm run docker-clear; npm run rm-migrates; npm run gitpod-engine; npm run gitpod-migrate;",
"local-reinit": "npm run docker-clear; npm run rm-migrates; npm run local-engine;",
"gitpod-reinit": "npm run docker-clear; npm run rm-migrates; npm run gitpod-engine;",
"gitpod-hasura-reattach": "export REATTACH_HASURA_SECRET=myadminsecretkey; export REATTACH_HASURA_PATH=$(echo $(gp url 8080) | awk -F[/:] '{print $4}'); export REATTACH_HASURA_SSL=1; export REATTACH_DEEPLINKS_PATH=$(echo $(gp url 3006) | awk -F[/:] '{print $4}'); npx gulp gitpod:hasura:reattach",
"codespaces-hasura-reattach": "export REATTACH_HASURA_SECRET=myadminsecretkey; export REATTACH_HASURA_PATH=localhost:8080; export REATTACH_HASURA_SSL=0; export REATTACH_DEEPLINKS_PATH=host.docker.internal:3006; npx gulp gitpod:hasura:reattach",
"sync": "(cd packages && for d in */; do (cd $d && git checkout main && git pull --no-rebase); done) && rm -rf node_modules && rm -f package-lock.json && npm i && git add . && git commit -m 'L ↦ L²' && git push",
"workspace-install": "(npm i ${npm_config_package_arg} -w \"packages/${npm_config_workspace_arg}\") && (cd \"packages/${npm_config_workspace_arg}\" && npm i --package-lock-only --workspaces false)",
"workspace-install-dev": "(npm i ${npm_config_package_arg} --save-dev -w \"packages/${npm_config_workspace_arg}\") && (cd \"packages/${npm_config_workspace_arg}\" && npm i --package-lock-only --workspaces false)",
"workspace-remove": "(npm rm ${npm_config_package_arg} -w \"packages/${npm_config_workspace_arg}\") && (cd \"packages/${npm_config_workspace_arg}\" && npm i --package-lock-only --workspaces false)",
"workspace-remove-dev": "(npm rm ${npm_config_package_arg} --save-dev -w \"packages/${npm_config_workspace_arg}\") && (cd \"packages/${npm_config_workspace_arg}\" && npm i --package-lock-only --workspaces false)"
},
"repository": {
"type": "git",
"url": "git+https://github.com/deep-foundation/dev.git"
},
"devDependencies": {
"ts-node": "^10.9.1"
},
"dependencies": {
"@deep-foundation/hasura": "~0.0.53",
"@types/gulp": "^4.0.8",
"commander": "^11.0.0",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"del": "^6.0.0",
"dequal": "^2.0.3",
"gulp": "^4.0.2",
"gulp-run-command": "^0.0.10",
"i": "^0.3.6",
"minimist": "^1.2.5",
"npm": "^7.5.4",
"prompt": "^1.2.0",
"rimraf": "^3.0.2",
"simple-git": "^2.45.0",
"subscriptions-transport-ws": "^0.9.0",
"typescript": "^5.4.5"
},
"workspaces": [
"./packages/deepcase-app",
"./packages/deepcase",
"./packages/deeplinks"
]
}