This is a template for project scripts that can be used in any project.
Ensure you have the following lines in your .gitignore
file:
# script-templates
## Ignore all subdirectories under scripts (script-template folders)
scripts/*/
## Except for the hooks folder (allows to hook into several script-template scripts)
!scripts/hooks/
## Recursively ignore any file ending with .local.sh (local files which you wont want to commit)
scripts/*.local.sh
scripts/**/*.local.sh
# script-template dependencies
git clone --depth 1 -b "master" "[email protected]:SoureCode/public-common-script-template.git" "scripts/public-common"
# cleanup
./scripts/public-common/___cleanup.sh
# the actual script-template
git clone --depth 1 -b "master" "[email protected]:SoureCode/public-project-script-template.git" "scripts/public-project"
# cleanup
./scripts/public-project/___cleanup.sh
Before starting to make changes, ensure you have the latest dependencies running:
./__dev.sh