Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"lint-php": "vendor/bin/phpcs --standard=Drupal --extensions=php,inc,test,info,module,install",
"copy-commit-message-script": "make copy-commit-message-script",
"post-create-project-cmd": [
"make cast-spell",
"make init-project",
"@copy-commit-message-script"
],
"post-install-cmd": [
Expand Down
2 changes: 1 addition & 1 deletion tools/make/drupal.mk
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ new: $(DRUPAL_NEW_TARGETS) ## Create a new empty Drupal installation from config

dump.sql:
@touch /tmp/kube-config
@docker run --network host --env-file .env -it --rm -v /tmp/kube-config:/root/.kube/config -v $(shell pwd):/app --name helfi-oc ghcr.io/city-of-helsinki/drupal-oc-cli:latest sh -c "db-sync"
@docker run --pull=always --env-file .env -it --rm -v /tmp/kube-config:/root/.kube/config -v $(shell pwd):/app --name helfi-oc ghcr.io/city-of-helsinki/drupal-oc-cli:latest sh -c "db-sync"
$(call docker_compose_exec,gunzip dump.sql.gz)

PHONY += drush-import-dump
Expand Down
7 changes: 7 additions & 0 deletions tools/make/project/init-project.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
PHONY += init-project
init-project:
@rm CHANGELOG.md README.md renovate.json .github/workflows/ci.yml tools/make/project/init-project.mk
@rm -r documentation/
@mv README.project.md README.md
@composer config --unset scripts.post-create-project-cmd
@git init && git add .
Loading