pip install cookiecutter
cookiecutter [email protected]:makimo/django-template.git
git clone [email protected]:makimo/django-template.git # to one directory
cookiecutter [path to local directory]/django-template/ # to another
[ make changes + test ]
[ apply changes in template repository ]
[ commit changes ]
All of the project files are NOT in the base directory. They are in the
{{ cookiecutter.project_slug }}
directory. Top-level directory is used
for cookiecutter files and repository settings.
Put your own quickstart initialization into the
{{ cookiecutter.project_slug }}/quickstart
directory. See dragonee.mk
for reference.
Some rules if you are going to write your own Makefile.
- The targets should follow closely README chapters with your toolkit of choice.
- Do not automate anything that is not in README.
- Do not modify global Makefile unless acknowledged by majority of the team.
assets/
├── app.js
├── vendor.js
├── apps.scss
├── components/
│ ├── hello_world.vue
│ ├── hello_world_mount.js
│ └── ... [.vue/.js]
├── images/
│ └── ... [.png/.jpg]
├── scripts/
│ ├── vendor/
│ │ └── ... [.js]
│ └── ... [.js]
├── styles/
│ └── ... [.css/.scss]
└── vendor
└── ...
Application code-base entry point. Normally, this file is used to
load application dependencies such as scripts in scripts/
and
app.scss
.
Loads vendor dependencies (e.g. front-end themes such as Material Admin).
Main entry-point for application-wide styles. Loads files in styles/
.
Vue's single-page applications and their mount scripts.
Vanilla JavaScript front-end scripts. Those usually rely on jQuery + AJAX.
Subset of JavaScript scripts related to 3rd party library usage, such as initialisation of plugins.
Application-wide styles divided into logical components (such as related to header, sidebar, search-bar and so on).
Vendor dependencies (see vendor.js
).
-
runtime
- Shared runtime Webpack code. Extracted for performance fromvendor
andapp
. -
app
- Application-specific code-base, i.e. stuff that programmer writes. -
vendor
- Scripts compiled from vendor dependencies (such as front-end themes). -
common
- Shared dependencies compiled fromvendor
andapp
, e.g. jQuery. This file will not be generated if no shared dependencies are detected by Webpack. -
shared
- Shared utilities and helpers.
Report all issues under this repository Issues page.