WIP: Frontedless service project
Currently proof of concept how we, as a company, can generate a different project using the same set of files and at the same time do not create if statements for 3 types of projects everywhere
command for generation
cookiecutter django-project-template --directory=service
As of cookie-cutter v1.7 we can use separate directories and link files https://cookiecutter.readthedocs.io/en/1.7.2/advanced/directories.html
This allows us to have multiple types of projects that share some amount of the files and removing the need of half of the post-hook cleanup steps
The new structure in my mind would be something similar to this:
common
hooks/
common.py
django/
accounts/
settings
frontend/
spa/
webapp/
projects/
service/
{{cookiecutter.repo_name}}/
cookiecutter.json
README.md
webapp/
{{cookiecutter.repo_name}}/
cookiecutter.json
README.md
spa/
{{cookiecutter.repo_name}}/
cookiecutter.json
README.md
README.md
Not sure why GitLab renders all files as new, but most of the files are just symlinks to the main {{cookiecutter.repo_name}} directory
Edited by Anton Alekseev