Skip to content

Commit

Permalink
Add dependabot.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed May 27, 2024
1 parent 367e131 commit fd95dfd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ pipx run cookieplone

```text
[1/1] Select a template
1 - Backend Add-on for Plone
2 - Frontend Add-on
1 - A Plone Project
2 - Backend Add-on for Plone
3 - Frontend Add-on
```

| Template | Description | |
| --------- | --------- | --------- |
| `A Plone Project` | Create a new Plone project with backend and frontend components. | [Read More](./project/README.md) |
| `Backend Add-on for Plone` | Create a new Python package to be used with Plone. | [Read More](./backend_addon/README.md) |
| `Frontend Add-on for Plone` | Create a new Node package to be used with Volto. | [Read More](./frontend_addon/README.md) |

Expand Down
4 changes: 2 additions & 2 deletions backend_addon/{{ cookiecutter.__folder_name }}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ help: ## This help message
$(BIN_FOLDER)/pip $(BIN_FOLDER)/tox $(BIN_FOLDER)/pipx $(BIN_FOLDER)/uv $(BIN_FOLDER)/mxdev:
@echo "$(GREEN)==> Setup Virtual Env$(RESET)"
$(PYTHON) -m venv $(VENV_FOLDER)
$(BIN_FOLDER)/pip install -U "pip" "uv" "wheel" "pipx" "mxdev" "tox" "pre-commit"
$(BIN_FOLDER)/pip install -U "pip" "uv" "wheel" "pipx" "tox" "pre-commit"
if [ -d $(GIT_FOLDER) ]; then $(BIN_FOLDER)/pre-commit install; else echo "$(RED) Not installing pre-commit$(RESET)";fi

instance/etc/zope.ini: $(BIN_FOLDER)/pip ## Create instance configuration
Expand All @@ -63,7 +63,7 @@ config: instance/etc/zope.ini
.PHONY: build-dev
build-dev: config ## pip install Plone packages
@echo "$(GREEN)==> Setup Build$(RESET)"
$(BIN_FOLDER)/mxdev -c mx.ini
$(BIN_FOLDER)/pipx run mxdev -c mx.ini
$(BIN_FOLDER)/uv pip install -r requirements-mxdev.txt

.PHONY: install
Expand Down
1 change: 1 addition & 0 deletions project/tests/test_project_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
".editorconfig",
".gitignore",
".vscode/settings.json",
"dependabot.yml",
"CHANGELOG.md",
"Makefile",
"README.md",
Expand Down
8 changes: 8 additions & 0 deletions project/{{ cookiecutter.__folder_name }}/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"

0 comments on commit fd95dfd

Please sign in to comment.