@gloxy/templates v3.1.2
templates
Download and apply templates to new or existing projects. (Mainly for my own projects)
Currently existing templates is located there. Configs is located there
Install
pnpm add @gloxy/templates
API
applyPartTemplate(<part-id>, [src-item-id], [options])
part-id
: existing part templates id. Refer to configssrc-item-id
: global patterns to include and/or exclude files belong to the part templateoptions:
- variables: assigned to the template placeholders. (Key: Value)
- install: install package dependencies that the template depends
- verbose: display verbose logs
applyPartTemplates(<...part-id>, [...src-item-id], [options])
...part-ids
: array of existing part templates ids....src-item-id
: array of global patterns to include and/or exclude files belong to the respectful part templatesoptions: same as the options for applyPartTemplate
import { applyPartTemplate, applyPartTemplates } from '@gloxy/templates'
applyPartTemplate('github', 'release-publish', { verbose: true, install: true })
applyPartTemplates(['vscode', 'github', 'npm'], [undefined, 'release-publish', undefined], { verbose: true, install: true })
CLI
Install
$ pnpm add -g @gloxy/templates
Usage
## When enter RETURN, the choices for part templates will be listed. Select one or more to continue. See help for details: `tmpl part --help`
$ tmpl part [options]
Authors
👤 GloryWong
- Website: https://glorywong.com
- GitHub: @GloryWong
Show Your Support
Give a ⭐️ if this project helped you!
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago