Skip to content

Commit

Permalink
Add refresh and release commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Konard committed May 2, 2024
1 parent 35581b9 commit 8da0329
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,21 @@ SELECT pg_cancel_backend(pid);

## Maintenance

### Publish new version
### Refresh package-lock.json

This command deletes `node_modules`, `package-lock.json` and runs `npm i`. So everything is refreshed.

```bash
npm run package:refresh
```
npm version patch && git push

### Release a new version

```bash
npm run package:release
```

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

3. https://github.com/deep-foundation/deeplinks
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"ts-node": "^10.9.1"
},
"scripts": {
"package:refresh": "rm -rf node_modules; rm -f package-lock.json; npm i",
"package:build": "npx tsc --project tsconfig.json",
"package:unbuild": "rimraf ./*.js && rimraf ./*.js.map && rimraf ./*.d.ts",
"package:publish": "npm run package:build && npm publish --access public && npm run package:unbuild",
"package:release": "npm version patch && git push",
"docker-local": "cd ./local && docker-compose -p deep up -d && cd ../",
"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"
},
Expand Down

0 comments on commit 8da0329

Please sign in to comment.