Skip to content

Commit

Permalink
ensure cruft.json added to git commits
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Sep 12, 2022
1 parent dd835fe commit 80382a9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions {{cookiecutter.project_name}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,19 @@ PROJECT_FOLDERS = sqlschema shex shacl protobuf prefixmap owl jsonschema jsonld
git-init-add: git-init git-add git-commit git-status
git-init:
git init
git-add:
git add .gitignore .github Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/{{cookiecutter.__project_slug}}/schema/*yaml src/*/datamodel/*py src/data src/docs tests
git-add: .cruft.json
git add .gitignore .github .cruft.json Makefile LICENSE *.md examples utils about.yaml mkdocs.yml poetry.lock project.Makefile pyproject.toml src/{{cookiecutter.__project_slug}}/schema/*yaml src/*/datamodel/*py src/data src/docs tests
git add $(patsubst %, project/%, $(PROJECT_FOLDERS))
git-commit:
git commit -m 'Initial commit' -a
git-status:
git status

# only necessary if setting up via cookiecutter
.cruft.json:
echo "creating a stub for .cruft.json. IMPORTANT: setup via cruft not cookiecutter recommended!" ; \
touch $@

clean:
rm -rf $(DEST)
rm -rf tmp
Expand Down

0 comments on commit 80382a9

Please sign in to comment.