Skip to content

Commit

Permalink
figwheel.main: makefile for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Jun 11, 2018
1 parent cea86f8 commit 92fb179
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*{clj,cljc,cljs,js}]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
37 changes: 37 additions & 0 deletions figwheel-main/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
PROJECT_FILES=../figwheel-core/project.clj ../figwheel-repl/project.clj project.clj
DOC_FILES=README.md helper-content/*.md
DEPS_FILES=deps.edn

CHANGE_LEIN_DEPS=sed -i '' -e "s|\[com.bhauman/figwheel-\([^[:space:]]*\) \".*\"\]|[com.bhauman/figwheel-\1 \"$(VERSION)\"]|g"
CHANGE_TOOLS_DEPS=sed -i '' -e "s|com.bhauman/figwheel-\([^[:space:]]*\) {:mvn/version \".*\"}|com.bhauman/figwheel-\1 {:mvn/version \"$(VERSION)\"}|g"
MARKDOWN=ruby scripts/kram.rb

deps-version:
sed -i '' -e "s|defproject com.bhauman/figwheel-\([^[:space:]]*\) \".*\"|defproject com.bhauman/figwheel-\1 \"$(VERSION)\"|g" $(PROJECT_FILES)
$(CHANGE_LEIN_DEPS) $(PROJECT_FILES)
$(CHANGE_TOOLS_DEPS) $(DEPS_FILES)

docs-version:
$(CHANGE_LEIN_DEPS) $(DOC_FILES)
$(CHANGE_TOOLS_DEPS) $(DOC_FILES)

snapshot-version: deps-version

release-version: deps-version docs-version

helper-docs:
$(MARKDOWN) helper-content/*

opt-docs:
clojure -Adocs

gen-docs: helper-docs opt-docs

install: gen-docs
pushd ../figwheel-core; lein install; popd; pushd ../figwheel-repl; lein install; popd; lein install

testit:
lein test

deploy: gen-docs install test
pushd ../figwheel-core; lein deploy clojars; popd; pushd ../figwheel-repl; lein deploy clojars; popd; lein deploy clojars
4 changes: 0 additions & 4 deletions figwheel-main/scripts/deploy

This file was deleted.

4 changes: 0 additions & 4 deletions figwheel-main/scripts/dev-install

This file was deleted.

0 comments on commit 92fb179

Please sign in to comment.