CLI tool to create zip archives using a configuration file.
- Table of Contents
- Installation
- Usage
- Configuration File
- Commands and Options
- Examples
- Developer Setup
- Copyright & License
Ensure you have Node.js installed. Then, install Zippie globally using npm:
npm install -g zippieor install locally in your project:
npm install -D zippiezippie [destination] [options]Zippie uses a configuration file (default: .distzip) to specify which files to include in the zip archive. The file format is simple:
- Each line represents a pattern to include
- Lines starting with
#are treated as comments - Exclusion patterns can be specified using
:!syntax
-
Simple glob patterns:
assets/* *.hbs package.json -
Exclusion patterns:
*.hbs:!demo-*This includes all
.hbsfiles but excludes those starting withdemo-. -
Directory patterns:
locales/**/*This includes all files in the
localesdirectory and its subdirectories.
zippie [destination] [options]| Argument | Description | Default |
|---|---|---|
destination |
Path to the output zip file | output.zip |
| Option | Description | Default |
|---|---|---|
-c, --config |
Path to configuration file | .distzip |
-d, --cwd |
Working directory | Current dir |
-v, --verbose |
Show verbose output | false |
Create a zip file using the default configuration:
zippieSpecify a custom destination:
zippie dist/theme.zipUse a custom configuration file:
zippie --config custom-config.txtShow verbose output:
zippie theme.zip --verbose- Fork this repo
git clone https://github.com/priority-vision/zippie.git path/to/your/workspacecd path/to/your/workspacenpm install
To run the CLI using your workspace files:
npm linkzippie [destination] [options](you can run anywhere on your system)
- MIT License
- Copyright (c) 2025 Priority Vision.