Skip to content

Commit 8da0329

Browse files
committed
Add refresh and release commands
1 parent 35581b9 commit 8da0329

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,14 +150,21 @@ SELECT pg_cancel_backend(pid);
150150

151151
## Maintenance
152152

153-
### Publish new version
153+
### Refresh package-lock.json
154154

155+
This command deletes `node_modules`, `package-lock.json` and runs `npm i`. So everything is refreshed.
156+
157+
```bash
158+
npm run package:refresh
155159
```
156-
npm version patch && git push
160+
161+
### Release a new version
162+
163+
```bash
164+
npm run package:release
157165
```
158166

159167
After that it might be required to release new versions of:
160168
1. https://github.com/deep-foundation/react-hasura
161169
2. https://github.com/deep-foundation/materialized-path
162-
3. https://github.com/deep-foundation/deeplinks
163-
170+
3. https://github.com/deep-foundation/deeplinks

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
"ts-node": "^10.9.1"
2727
},
2828
"scripts": {
29+
"package:refresh": "rm -rf node_modules; rm -f package-lock.json; npm i",
2930
"package:build": "npx tsc --project tsconfig.json",
3031
"package:unbuild": "rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts",
3132
"package:publish": "npm run package:build && npm publish --access public && npm run package:unbuild",
33+
"package:release": "npm version patch && git push",
3234
"docker-local": "cd ./local && docker-compose -p deep up -d && cd ../",
3335
"docker": "cross-env JWT_SECRET=\"{\\\"type\\\":\\\"HS256\\\",\\\"key\\\":\\\"3EK6FD+o0+c7tzBNVfjpMkNDi2yARAAKzQlk8O2IKoxQu4nF7EdAh8s3TwpHwrdWT6R\\\"}\" HASURA_GRAPHQL_DATABASE_URL=postgres://postgres:postgrespassword@postgres:5432/postgres HASURA_GRAPHQL_ENABLE_CONSOLE=true HASURA_GRAPHQL_DEV_MODE=true HASURA_GRAPHQL_LOG_LEVEL=debug HASURA_GRAPHQL_ENABLED_LOG_TYPES=\"startup, http-log, webhook-log, websocket-log, query-log\" HASURA_GRAPHQL_ADMIN_SECRET=myadminsecretkey HASURA_GRAPHQL_ENABLE_REMOTE_SCHEMA_PERMISSIONS=true HASURA_GRAPHQL_UNAUTHORIZED_ROLE=undefined POSTGRES_USER=postgres POSTGRES_PASSWORD=postgrespassword PGGSSENCMODE=disable PGSSLMODE=disable PGREQUIRESSL=0 MINIO_ROOT_USER=minioaccesskey MINIO_ROOT_PASSWORD=miniosecretkey HASURA_STORAGE_DEBUG=true HASURA_METADATA=1 HASURA_ENDPOINT=http://host.docker.internal:8080/v1 S3_ENDPOINT=http://host.docker.internal:9000 S3_ACCESS_KEY=minioaccesskey S3_SECRET_KEY=miniosecretkey S3_BUCKET=default S3_ROOT_FOLDER=default POSTGRES_MIGRATIONS=0 POSTGRES_MIGRATIONS_SOURCE=postgres://postgres:[email protected]:5432/postgres?sslmode=disable npm run docker-local"
3436
},

0 commit comments

Comments
 (0)