-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,45 @@ | ||
# Squid Types | ||
|
||
Squid types used on the graph, api and sdk | ||
Squid types used on the graph, api and sdk. | ||
|
||
### LINTER & PRETTIER | ||
|
||
This project has installed prettier and linter rules, with husky we ensure pre-commit and pre-push validation. | ||
|
||
```bash | ||
yarn lint | ||
``` | ||
|
||
```bash | ||
yarn lint:fix | ||
``` | ||
|
||
```bash | ||
yarn format | ||
``` | ||
|
||
### VSCODE | ||
|
||
Create `.vscode/setting.json` for auto-saving linter and prettier format | ||
|
||
```json | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} | ||
``` | ||
|
||
# RELEASE | ||
|
||
NPM package publish is automated with github actions, follow these steps: | ||
|
||
1 - Create a PR to `develop` branch updating `package.json` version. (review, approve and merge) | ||
|
||
2 - Create a PR from `develop` to `main`. (review, approve and merge) | ||
|
||
Once the PR to `main` is merged, this commit on this branch gonna trigger automatically the release to NPM, please make sure you update correctly the version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters