Skip to content

A command-line tool for packaging Halo theme template files, making them ready for distribution.

Notifications You must be signed in to change notification settings

halo-dev/theme-package-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@halo-dev/theme-package-cli

A command-line tool for packaging Halo theme template files, making them ready for distribution.

Features

  • Package Halo theme template files into a ZIP file
  • Option to package all files or only essential files

Installation

Global Installation

npm install -g @halo-dev/theme-package-cli

# or

npx @halo-dev/theme-package-cli

Local Installation

npm install @halo-dev/theme-package-cli

Usage

Run the command in your Halo theme project root directory:

# Only package essential files (templates, README.md, *.yaml/*.yml, i18n, LICENSE)
theme-package

# Package all files (excluding node_modules, dist, etc.)
theme-package --all
# or
theme-package -a

Packaging Rules

  • By default, only packages essential files and directories:

    • templates directory
    • README.md
    • All .yaml and .yml files
    • i18n directory
    • LICENSE file
  • When using the --all parameter, packages all files in the project, excluding:

    • node_modules directory
    • dist directory
    • .git directory
    • .github directory
    • .idea directory
    • .vscode directory
    • .husky directory
    • Lock files (pnpm-lock.yaml, package-lock.json, yarn.lock, bun.lockb)
    • .DS_Store files

Requirements

  • Node.js environment
  • The theme project root directory must contain a properly formatted theme.yaml file

License

MIT

About

A command-line tool for packaging Halo theme template files, making them ready for distribution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published