├── {{cookiecutter.project_name}} ├── README.md ├── test │ ├── +tests │ │ └── .gitkeep │ └── resources │ │ └── .gitkeep ├── code │ └── {{cookiecutter.package_name}} │ │ ├── +{{cookiecutter.package_name}} │ │ └── .gitkeep │ │ └── {{cookiecutter.package_name}}Root.m ├── projectPaths.m ├── install.m └── uninstall.m └── cookiecutter.json /{{cookiecutter.project_name}}/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/test/+tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/test/resources/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/code/{{cookiecutter.package_name}}/+{{cookiecutter.package_name}}/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cookiecutter.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_name": "NewProject", 3 | "package_name": "{{ cookiecutter.project_name.lower().replace(' ', '_') }}" 4 | } -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/code/{{cookiecutter.package_name}}/{{cookiecutter.package_name}}Root.m: -------------------------------------------------------------------------------- 1 | function folder = {{cookiecutter.package_name}}Root() 2 | folder = fileparts(mfilename('fullpath')); 3 | end -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/projectPaths.m: -------------------------------------------------------------------------------- 1 | function folders = projectPaths() 2 | % Returns the folders to add to the project projectPaths 3 | folders = ["code/{{cookiecutter.package_name}}", "test"]; 4 | end -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/install.m: -------------------------------------------------------------------------------- 1 | function install() 2 | folder = fileparts(mfilename('fullpath')); 3 | pathsToAdd = projectPaths(); 4 | for iPath = 1:numel(pathsToAdd) 5 | addpath(fullfile(folder, pathsToAdd(iPath))); 6 | end 7 | end -------------------------------------------------------------------------------- /{{cookiecutter.project_name}}/uninstall.m: -------------------------------------------------------------------------------- 1 | function uninstall() 2 | folder = fileparts(mfilename('fullpath')); 3 | pathsToRemove = projectPaths(); 4 | for iPath = 1:numel(pathsToRemove) 5 | rmpath(fullfile(folder, pathsToRemove(iPath))); 6 | end 7 | end --------------------------------------------------------------------------------