3.1.2 • Published 10 months ago

@gloxy/templates v3.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

GitHub License GitHub commit activity GitHub Actions Workflow Status GitHub Release GitHub Release Date GitHub Issues or Pull Requests GitHub watchers GitHub forks GitHub Repo stars NPM Version NPM Type Definitions NPM Downloads Node Current

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 configs

    • src-item-id: global patterns to include and/or exclude files belong to the part template

    • options:

      • 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 templates

    • options: 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

Show Your Support

Give a ⭐️ if this project helped you!

3.1.2

10 months ago

3.1.1

10 months ago

3.1.0

10 months ago

3.0.1

10 months ago

3.0.0

10 months ago

2.4.0

10 months ago

2.3.0

10 months ago

2.2.1

10 months ago

2.2.0

11 months ago

2.1.2

11 months ago

2.1.1

11 months ago

2.1.0

11 months ago

2.0.0

11 months ago

1.8.1

11 months ago

1.8.0

11 months ago

1.7.1

11 months ago

1.7.0

11 months ago

1.6.0

11 months ago

1.5.1

12 months ago

1.5.0

12 months ago

1.4.1

12 months ago

1.4.0

12 months ago

1.3.0

12 months ago

1.2.0

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago