Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DEFAULT_GOAL := all

JSONSCHEMA ?= jsonschema
JQ ?= jq
SHELLCHECK ?= shellcheck
TAR ?= tar
ZIP ?= zip
Expand All @@ -13,9 +14,6 @@ RMRF ?= rm -rf
SCHEMAS = $(shell find schemas/ -type f -name '*.json')
TESTS = $(shell find test/ -type f -name '*.json')

# TODO: Add a version property to `jsonschema.json`
VERSION = $(shell tr -d '\n\r' < VERSION)

include generated.mk

# TODO: Make `jsonschema fmt` automatically detect test files
Expand Down Expand Up @@ -46,6 +44,7 @@ test:

# TODO: Add a `jsonschema pkg` command instead
.PHONY: dist
VERSION = $(shell $(JQ) --raw-output '.["x-version"]' jsonschema.json)
dist:
$(RMRF) $@
$(MKDIRP) $@
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

1 change: 0 additions & 1 deletion generated.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PYTHON ?= python3
JQ ?= jq

define MAKE_SCHEMA
schemas/$1.json: templates/schemas/$1.jq $2.json
Expand Down
3 changes: 2 additions & 1 deletion jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"description": "A growing collection of hand-crafted high-quality schemas by Sourcemeta",
"email": "hello@sourcemeta.com",
"github": "sourcemeta/std",
"path": "./schemas"
"path": "./schemas",
"x-version": "0.2.0"
}