2015-07-06 16:53:17 -04:00
|
|
|
all: build
|
|
|
|
|
|
|
|
init:
|
|
|
|
bundle
|
|
|
|
|
2016-12-28 16:04:10 -05:00
|
|
|
docker-dev:
|
2017-01-30 06:15:16 -05:00
|
|
|
docker run -it --expose 4567 -p 4567:4567 -v "$(PWD)":/usr/src/app -w /usr/src/app ruby:2.3.1 \
|
2016-12-28 16:04:10 -05:00
|
|
|
bash -c "apt-get update && apt-get -qy install curl git libgmp3-dev nodejs && \
|
2017-01-30 06:15:16 -05:00
|
|
|
gem install bundler && bundle install && make dev"
|
2016-12-28 16:04:10 -05:00
|
|
|
|
2015-07-06 16:53:17 -04:00
|
|
|
dev: init
|
|
|
|
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server
|
|
|
|
|
|
|
|
build: init
|
|
|
|
PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman build
|
2015-07-22 20:18:08 -04:00
|
|
|
|
|
|
|
format:
|
|
|
|
bundle exec htmlbeautifier -t 2 source/*.erb
|
2015-07-22 22:28:03 -04:00
|
|
|
bundle exec htmlbeautifier -t 2 source/layouts/*.erb
|
2015-07-22 22:41:42 -04:00
|
|
|
@pandoc -v > /dev/null || echo "pandoc must be installed in order to format markdown content"
|
2016-05-11 05:30:57 -04:00
|
|
|
pandoc -v > /dev/null && find . -iname "*.html.md" | xargs -I{} bash -c "pandoc -r markdown -w markdown --tab-stop=4 --atx-headers -s --columns=80 {} > {}.new"\; || true
|
|
|
|
pandoc -v > /dev/null && find . -iname "*.html.md" | xargs -I{} bash -c "mv {}.new {}"\; || true
|