Skip to content

Commit

Permalink
feat(prompt): create prompt template
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-ng committed Jun 4, 2024
1 parent 4692a02 commit bc8f7bf
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 44 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
index.php
.vscode/
.idea/
.idea/
.phpunit.cache/
43 changes: 43 additions & 0 deletions Makefile
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
84 changes: 42 additions & 42 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ parameters:
- tests

ignoreErrors:
- identifier: missingType.generics
#- identifier: missingType.generics
- identifier: missingType.iterableValue
Empty file removed src/.keep
Empty file.
Loading

0 comments on commit bc8f7bf

Please sign in to comment.