forked from usdoj/foia.gov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 814 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
30
31
32
33
34
35
36
37
38
39
40
JEKYLL_ENV=$(NODE_ENV)
JEKYLL_OPTS=
ifeq ($(APP_ENV), development)
JEKYLL_OPTS+=--config _config.yml,_config.development.yml
endif
ifeq ($(APP_ENV), staging)
JEKYLL_OPTS+=--config _config.yml,_config.staging.yml
endif
ifeq ($(APP_ENV), production)
JEKYLL_OPTS+=--config _config.yml,_config.production.yml
endif
all: build test
build:
npm run build
mkdir -p www.foia.gov/assets
cp -R node_modules/uswds/dist/fonts node_modules/uswds/dist/img www.foia.gov/assets
JEKYLL_ENV=$(JEKYLL_ENV) bundle exec jekyll build $(JEKYLL_OPTS)
clean:
rm -rf www.foia.gov/assets
rm -rf _site
serve:
npm run watch &
JEKYLL_ENV=$(JEKYLL_ENV) bundle exec jekyll build --watch $(JEKYLL_OPTS) &
node js/dev-server.js
test:
npm test
npm run lint
bin/htmlproofer.sh
@echo OK
.PHONY: all build clean deploy test