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