Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ulysses-front/Makefile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
54 lines (43 sloc)
1.53 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PWD ?= $(shell pwd) | |
DOCKER_RUN_THIS_WORKSPACE ?= docker run -it --rm -v $(PWD):$(PWD) -w $(PWD) | |
NODE_BIN_DIR ?= node_modules/.bin | |
PUBLIC_DIR ?= resources/public | |
SASS_DEV_ARGS ?= --source-map true --output $(PUBLIC_DIR)/css/compiled/ src/sass/app.scss | |
help: | |
@echo | |
@echo " \\033[4mulysses front-end\\033[0m" | |
@echo | |
@echo " \\033[1mstart\\033[0m – start dev live-reload server for cljs/tests/css" | |
@echo " \\033[1msass-watch\\033[0m – watch & build sass with source maps in container" | |
@echo " \\033[1mbuild\\033[0m – compile cljs and sass for production in containers" | |
@echo | |
@echo " clean – clean compiled files" | |
@echo " build-cljs – build cljs files for production" | |
@echo " sass-dev – build css files for dev (once)" | |
@echo " install – install npm dependencies (in container)" | |
@echo " help – show help" | |
@echo | |
clean: | |
. scripts/clean.sh | |
build-cljs: | |
. scripts/build-cljs.sh | |
install: | |
$(DOCKER_RUN_THIS_WORKSPACE) mhart/alpine-node:4 npm install | |
sass-dev: | |
@mkdir -p $(PUBLIC_DIR)/css/compiled | |
@$(DOCKER_RUN_THIS_WORKSPACE) jbergknoff/sass --sourcemap src/sass/app.scss $(PUBLIC_DIR)/css/compiled/app.css | |
sass-watch: | |
make sass-dev | |
filewatcher -s 'src/sass/**/*.scss' 'make sass-dev' | |
build: | |
drone exec | |
start: | |
@$(MAKE) clean | |
@$(MAKE) install | |
@$(MAKE) sass-dev | |
@rlwrap lein figwheel | |
test: | |
lein doo phantom test once | |
test-watch: | |
lein doo phantom test auto | |
.PHONY: help clean build-cljs install sass-dev sass-watch build start test test-watch |