-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nearby-loops-#301
- Loading branch information
Showing
65 changed files
with
1,151 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Husky | ||
|
||
> Modern native git hooks made easy | ||
Hooks are programs you can place in a hooks directory to trigger actions at certain points in git’s execution. | ||
|
||
https://git-scm.com/docs/githooks | ||
|
||
## Installation | ||
|
||
This will install husky and will change git hooks directory to here (`.husky`). | ||
|
||
This should _only_ be used on a developers machine. | ||
|
||
``` | ||
npm run install | ||
``` | ||
|
||
## Scripts | ||
|
||
### Pre Push | ||
|
||
Runs the linter on `server`, `frontend` & `app`. | ||
|
||
`npm install` needs to be run on `frontend` and `app` for this to work. | ||
|
||
## Removal | ||
|
||
This resets the git hooks configuration to the default directory (`.git/hooks`). | ||
|
||
``` | ||
npm run remove-husky | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"scripts": { | ||
"postinstall": "npm run prepare", | ||
"remove-husky": "git config --unset core.hooksPath", | ||
"prepare": "cd .. && husky install" | ||
}, | ||
"devDependencies": { | ||
"husky": "^8.0.3" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env sh | ||
|
||
cd server && make lint-test && \ | ||
cd ../frontend && npm run lint:test && \ | ||
cd ../app && npm run lint:test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[*.{bru,json}] | ||
indent_style = space | ||
indent_size = 2 |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/environments/*.bru | ||
/environments/Example.bru | ||
/_ignored_/ | ||
!.gitkeep |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
meta { | ||
name: create or update | ||
type: http | ||
seq: 3 | ||
} | ||
|
||
put { | ||
url: {{base}}/v2/bag | ||
body: json | ||
auth: none | ||
} | ||
|
||
body:json { | ||
{ | ||
"user_uid": "{{userUID}}", | ||
"chain_uid": "{{chainUID}}", | ||
"holder_uid": "{{userUID}}", | ||
"bag_id": 1, | ||
"number": "Bag 1", | ||
"color": "#ccff00" | ||
} | ||
} |
Oops, something went wrong.