Skip to content
Snippets Groups Projects
Commit c80dcd87 authored by Alvaro Cabrera Durán's avatar Alvaro Cabrera Durán
Browse files

Update .editorconfig

parent a56bde53
Branches
Tags
No related merge requests found
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
[*.md]
trim_trailing_whitespace = false
[*.js]
trim_trailing_whitespace = true
insert_final_newline = true
# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
[{Makefile,todo}]
indent_style = tab
......@@ -18,33 +18,33 @@ export NODE_ENV
# utils
define iif
@(($(1) > /dev/null 2>&1) && printf "\r* $(2)\n") || printf "\r* $(3)\n"
@(($(1) > /dev/null 2>&1) && printf "\r* $(2)\n") || printf "\r* $(3)\n"
endef
# display all targets-with-help in this file
?: Makefile
@awk -F':.*?##' '/^[a-z\\%!:-]+:.*##/{gsub("%","*",$$1);gsub("\\\\",":*",$$1);printf "\033[36m%8s\033[0m %s\n",$$1,$$2}' $<
@awk -F':.*?##' '/^[a-z\\%!:-]+:.*##/{gsub("%","*",$$1);gsub("\\\\",":*",$$1);printf "\033[36m%8s\033[0m %s\n",$$1,$$2}' $<
dist: deps ## Build artifact for production
@(git worktree remove $(src) --force > /dev/null 2>&1) || true
@git worktree add $(src) $(target)
@cd $(src) && rm -rf *
@cp -r public/* build
@npm run build
@(git worktree remove $(src) --force > /dev/null 2>&1) || true
@git worktree add $(src) $(target)
@cd $(src) && rm -rf *
@cp -r public/* build
@npm run build
clean: ## Remove cache and generated artifacts
@$(call iif,rm -r $(src) dist,Built artifacts were deleted,Artifacts already deleted)
@$(call iif,unlink .tarima,Cache file was deleted,Cache file already deleted)
@$(call iif,rm -r $(src) dist,Built artifacts were deleted,Artifacts already deleted)
@$(call iif,unlink .tarima,Cache file was deleted,Cache file already deleted)
deploy: $(src) ## Push built artifacts to github!
@cd $(src) && git add . && git commit -m "$(message)"
@git push origin $(target) -f
@cd $(src) && git add . && git commit -m "$(message)"
@git push origin $(target) -f
deps: ## Check for installed dependencies
@(((ls node_modules | grep .) > /dev/null 2>&1) || npm i) || true
@(((ls node_modules | grep .) > /dev/null 2>&1) || npm i) || true
purge: clean ## Remove all from node_modules/*
@printf "\r* Removing all dependencies... "
@rm -rf node_modules/.{bin,cache}
@rm -rf node_modules/*
@echo "OK"
@printf "\r* Removing all dependencies... "
@rm -rf node_modules/.{bin,cache}
@rm -rf node_modules/*
@echo "OK"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment