-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update: Prettier setup and ad Makefile
- Loading branch information
Showing
7 changed files
with
146 additions
and
99 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.github export-ignore | ||
/.gitignore export-ignore | ||
/.nvmrc export-ignore | ||
/.prettierignore export-ignore | ||
/.stylelintrc export-ignore | ||
/.prettierrc export-ignore | ||
/CODE_OF_CONDUCT.md export-ignore | ||
/Makfile export-ignore | ||
/package.json export-ignore | ||
/pnpm-lock.yaml export-ignore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
composer.json | ||
*.noLinter.* | ||
LICENSE | ||
pnpm-lock.yaml | ||
Resources/Private/Templates/InlineAssets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": ["*.yaml", "*.yml"], | ||
"options": { | ||
"singleQuote": true | ||
} | ||
}, | ||
{ | ||
"files": ["*.md"], | ||
"options": { | ||
"tabWidth": 2, | ||
"singleQuote": true | ||
} | ||
}, | ||
{ | ||
"files": ["*.php"], | ||
"options": { | ||
"singleQuote": true | ||
} | ||
} | ||
], | ||
"plugins": ["@prettier/plugin-php"] | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.PHONY: help install watch dev production build prettier | ||
|
||
.DEFAULT_GOAL := build | ||
|
||
## Prettier files | ||
prettier: | ||
pnpm prettier --write --no-error-on-unmatched-pattern '{*,**/*}.{mjs,php,yaml,pcss,js,json,md}' | ||
|
||
## Install dependencies and build production version | ||
build: install prettier production | ||
|
||
## Install dependencies | ||
install: | ||
pnpm install | ||
|
||
## Watch for changes in JS and CSS files | ||
watch: | ||
pnpm watch | ||
|
||
## Build development version | ||
dev: | ||
pnpm dev | ||
|
||
## Build production version | ||
production: | ||
pnpm build | ||
|
||
# Define colors | ||
GREEN := $(shell tput -Txterm setaf 2) | ||
YELLOW := $(shell tput -Txterm setaf 3) | ||
WHITE := $(shell tput -Txterm setaf 7) | ||
RESET := $(shell tput -Txterm sgr0) | ||
|
||
# define indention for descriptions | ||
TARGET_MAX_CHAR_NUM=15 | ||
|
||
## Show help | ||
help: | ||
@echo '' | ||
@echo '${GREEN}CLI command list:${RESET}' | ||
@echo '' | ||
@echo 'Usage:' | ||
@echo ' ${YELLOW}make${RESET} ${GREEN}<target>${RESET}' | ||
@echo '' | ||
@echo 'Targets:' | ||
@awk '/^[a-zA-Z\-\_0-9]+:/ { \ | ||
helpMessage = match(lastLine, /^## (.*)/); \ | ||
if (helpMessage) { \ | ||
helpCommand = substr($$1, 0, index($$1, ":")-1); \ | ||
helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ | ||
printf " ${YELLOW}%-$(TARGET_MAX_CHAR_NUM)s${RESET} ${GREEN}%s${RESET}\n", helpCommand, helpMessage; \ | ||
} \ | ||
} \ | ||
{ lastLine = $$0 }' $(MAKEFILE_LIST) | ||
@echo '' |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.