@halo-dev/theme-package-cli
v1.0.4
Published
A CLI tool for packaging Halo theme template files
Readme
@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-cliLocal Installation
npm install @halo-dev/theme-package-cliUsage
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 except common unnecessary files and directories
theme-package --all
# or
theme-package -aPackaging 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
--allparameter, packages all files in the project while excluding some common unnecessary files and directories:- dist directory
- node_modules directories
- .git directory
- .github directory
- .idea directory
- .DS_Store files
Requirements
- Node.js environment
- The theme project root directory must contain a properly formatted theme.yaml file
License
MIT
