New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@gloxy/templates

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@gloxy/templates

Apply part templates

unpublished
latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
0
Created
Source

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
      • rootDir: Root directory to which the destDirs of part templates is relative. Default: process.cwd()
  • 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!

Keywords

template

FAQs

Package last updated on 05 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts