forked from betagouv/beta.gouv.fr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 765 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
DOCKER-RUN = docker compose run -e TERM --rm
BUNDLE-EXEC = bundle exec
build:
docker compose build
dsl:
$(DOCKER-RUN) web $(BUNDLE-EXEC) bin/beta-rb
spec:
$(DOCKER-RUN) web $(BUNDLE-EXEC) rspec
guard:
$(DOCKER-RUN) web $(BUNDLE-EXEC) guard
up:
docker compose up
down:
docker compose down
sh:
$(DOCKER-RUN) web bash
lint:
$(DOCKER-RUN) web $(BUNDLE-EXEC) rubocop
html-proofer:
bundle exec htmlproofer ./_site/ --ignore-files "/recrutement\/*/" --no-enforce-https --disable-external --root_dir _site/ --allow-missing-href
.PHONY: validate spec
validate:
ruby bin/validate schema/authors.yml "content/_authors/*.md"
ruby bin/validate schema/startups.yml "content/_startups/*.md"
ruby bin/validate schema/organisations.yml "content/_organisations/*.md"