-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prompt): create prompt template
- Loading branch information
1 parent
4692a02
commit bc8f7bf
Showing
8 changed files
with
246 additions
and
44 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,4 +1,5 @@ | ||
/vendor/ | ||
index.php | ||
.vscode/ | ||
.idea/ | ||
.idea/ | ||
.phpunit.cache/ |
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,43 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
# ----------------------------------- | ||
# Variables | ||
# ----------------------------------- | ||
is_docker := $(shell docker info > /dev/null 2>&1 && echo 1) | ||
user := $(shell id -u) | ||
group := $(shell id -g) | ||
|
||
php := php | ||
composer := composer | ||
|
||
#ifeq ($(is_docker), 1) | ||
# php := USER_ID=$(user) GROUP_ID=$(group) docker-compose run --rm --no-deps php | ||
# composer := $(php) composer | ||
#else | ||
# php := php | ||
# composer := composer | ||
#endif | ||
|
||
# ----------------------------------- | ||
# Recipes | ||
# ----------------------------------- | ||
.PHONY: help | ||
help: ## affiche cet aide | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
|
||
.PHONY: lint | ||
lint: vendor/autoload.php ## affiche les erreurs de formatage de code | ||
$(php) vendor/bin/ecs | ||
$(php) vendor/bin/phpstan | ||
|
||
.PHONY: test | ||
test: vendor/autoload.php ## lance les tests | ||
$(php) vendor/bin/phpunit | ||
|
||
.PHONY: lint-fix | ||
lint-fix: vendor/autoload.php ## corrige les erreurs de formatage de code | ||
$(php) vendor/bin/ecs --fix | ||
|
||
vendor/autoload.php: composer.lock # installe les dépendances PHP | ||
$(composer) install | ||
$(composer) dump-autoload |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.