@template-tools/sync-cli
v3.5.18
Published
cli for @template-tools/template-sync
Downloads
1,897
Readme
@template-tools/sync-cli
Keep repository in sync with its template.
Generates pull requests to bring a repository back in sync with its template.
So by making changes to the template and applying template-sync the target project will be updated accoring to the template.
Works with github and bitbucket.
export AGGREGATION_FACTORIES="github-repository-provider" # for github repos
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
template-sync --template aTemplateGithubUser/aRepo myGithubUser/myRepo
Define (initial) properties to be used in the template
export AGGREGATION_FACTORIES="github-repository-provider" # for github repos
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
template-sync --define "description=a very new fantastic module" -t myUser/myTemplate myUser/newModule#aBranch
Create new repository and bind it to aTemplateGithubUser/aRepo
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
template-sync --track --create --template aTemplateGithubUser/aRepo myGithubUser/myRepo
Switch from arlac77/template-github to arlac77/template-arlac77-github template for arlac77/url-cmd, arlac77/uti, arlac77/content-entry and arlac77/repository-provider
export GITHUB_TOKEN='token providing repositroy write access' # for github repos
template-sync --track --template arlac77/template-arlac77-github --template -arlac77/template-github arlac77/url-cmd arlac77/uti arlac77/content-entry arlac77/repository-provider
Merges contents from template branch into destination branch handling some special cases for:
- Licenses - rewriting license years
- line set files like .npmignore and .gitignore - by merging both sets together
- package.json - merge (.*)[Dd]ependencies, engines and scripts
- rollup.conf.*js - copy / rewrite + detect dev dependencies
- *.yaml - merge
- .travis.yml - merge with hints
- *.toml - merge
- *.ini - merge
- *.json - merge
- README.md - merge badges
Some templates
- arlac77/template-cli-app rollup ava travis
- arlac77/template-esm-only ava travis
- arlac77/template-svelte-component svelte rollup testcafe travis
- arlac77/template-svelte-app svelte rollup pkgbuild travis
- arlac77/template-kronos-component template-esm-only with node 14
- arlac77/template-kronos-app node 14 + systemd
API
Table of Contents
install
With npm do:
npm install -g @template-tools/sync-cli
# template-sync --help
license
BSD-2-Clause