-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
37 lines (35 loc) · 1.1 KB
/
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
prefix=bundle exec
guide_dir=cd guide &&
nanoc_default_port=3005
nanoc_internal_checks=internal_links stale mixed_content
nanoc_external_checks=external_links
check: ruby-lint slim-lint rspec nanoc-check
nanoc-check: nanoc-check-all
ruby-lint:
${prefix} rubocop app lib spec guide/lib
slim-lint:
${prefix} slim-lint guide
rspec:
${prefix} rspec --format progress
npm-install:
${guide_dir} npm ci --silent
nanoc-check-internal:
( ${guide_dir} ${prefix} nanoc check ${nanoc_internal_checks} )
nanoc-check-external:
( ${guide_dir} ${prefix} nanoc check ${nanoc_external_checks} )
nanoc-check-all: build-guide
( ${guide_dir} ${prefix} nanoc check ${nanoc_internal_checks} ${nanoc_external_checks} )
build:
${prefix} gem build govuk-components.gemspec
build-guide: npm-install
( ${guide_dir} ${prefix} nanoc )
view-guide: build-guide
( ${guide_dir} ${prefix} nanoc view --port ${nanoc_default_port} )
watch-guide: npm-install
( ${guide_dir} ${prefix} nanoc live --port ${nanoc_default_port} )
docs-server:
yard server --reload
code-climate:
codeclimate analyze {lib,spec,guide/lib}
clean:
rm -rf guide/output/**/*