-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
40 lines (37 loc) · 1.18 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
38
39
40
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 haml-lint rspec nanoc-check
nanoc-check: nanoc-check-all
ruby-lint:
${prefix} rubocop lib spec guide/lib
haml-lint:
${prefix} haml-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 dsfr-view-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:
bundle exec yard server --reload
code-climate:
codeclimate analyze {lib,spec,guide/lib}
clean:
rm -rf guide/output/**/*
deploy_gem:
bundle exec rails runner scripts/deploy_gem.rb $$VERSION