Skip to content

Commit

Permalink
Remove git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkin committed Oct 11, 2023
1 parent b72123b commit c08e5c1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
24 changes: 10 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
AJV_CLI_VERSION ?= 5.0.0
JSON_DEREFERENCE_CLI_VERSION ?= 0.1.2

hooks:
echo "Installing git hooks"
cp .githooks/* .git/hooks/
all: build validate checksum verify

checksum:
echo "Computing spec checksum"
.githooks/pre-commit

verify:
.githooks/pre-push && echo "Checksum ok"

bundle:
echo "Building spec bundle"
build:
@echo "Building spec bundle"
npx -y json-dereference-cli@$(JSON_DEREFERENCE_CLI_VERSION) -s src/geocodejson.schema.json -o draft/geocodejson.schema.json

validate:
echo "Validating spec bundle"
@echo "Validating spec bundle"
npx -y ajv-cli@$(AJV_CLI_VERSION) compile -s draft/geocodejson.schema.json

build: bundle validate checksum verify
checksum:
@echo "Computing spec checksum"
./scripts/checksum

verify:
./scripts/verify && echo "Checksum ok"
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ Pre-requisites: [git](https://git-scm.com/), [make](https://www.gnu.org/software

Please follow these steps:

- Let the community knows you want to contribute opening an issue
- Let the community knows you want to contribute [opening an issue](https://github.com/geocoders/geocodejson-spec/issues)
- Fork this repo, clone it locally and create a new branch
- Install git hooks running `make hooks`
- Extend the [draft document]((https://github.com/geocoders/geocodejson-spec/blob/master/draft/README.md))
- Edit the [draft document]((https://github.com/geocoders/geocodejson-spec/blob/master/draft/README.md))
- Update the [JSON schema](https://github.com/geocoders/geocodejson-spec/blob/master/draft/geocodejson.schema.json) in `src/` folder
- Run `make build`
- Run `make`
- If all is ok, commit your changes and push them
- Open a Pull Request on the main branch of this repo

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit c08e5c1

Please sign in to comment.