forked from 18F/identity-oidc-sinatra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (28 loc) · 790 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
# Makefile for building and running the project.
# The purpose of this Makefile is to avoid developers having to remember
# project-specific commands for building, running, etc. Recipes longer
# than one or two lines should live in script files of their own in the
# bin/ directory.
HOST ?= localhost
PORT ?= 9292
all: check
.env:
cp .env.example .env
public/vendor:
mkdir -p public/vendor
install_dependencies:
bundle check || bundle install
yarn install
copy_vendor: public/vendor
cp -R node_modules/uswds/dist public/vendor/uswds
setup: .env install_dependencies copy_vendor
check: lint test
lint:
@echo "--- rubocop ---"
bundle exec rubocop
@echo "--- reek ---"
bundle exec reek
run:
bundle exec rackup -p $(PORT) --host ${HOST}
test: $(CONFIG)
bundle exec rspec