@microwiseai/snapshot
v0.3.6
Published
CLI for installing IST Snapshot packages
Maintainers
Readme
@microwiseai/snapshot
IST Snapshot Installer - CLI for installing packages from GitLab snapshot repos.
Installation
npm install -g @microwiseai/snapshotRequirements
- Node.js >= 18.0.0
- GitLab API token (set as
GITLAB_TOKENenvironment variable)
Usage
List available snapshots
snapshot listInstall a snapshot
# Install by name
snapshot install @ist/minimal
# Install specific version
snapshot install @ist/[email protected]
# Short form (defaults to @ist scope)
snapshot install minimalShow current snapshot
snapshot currentPublish a snapshot
# Publish current directory's snapshot.json
snapshot publish
# Bump version before publishing
snapshot publish --bump patch # 0.1.0 -> 0.1.1
snapshot publish --bump minor # 0.1.0 -> 0.2.0
snapshot publish --bump major # 0.1.0 -> 1.0.0
# Dry run (show what would be published)
snapshot publish --dry-runConfiguration
Set your GitLab token:
export GITLAB_TOKEN=your_gitlab_tokenSnapshot Format
Snapshots are stored in GitLab repos with the naming convention:
@ist/minimal→snapshot.ist.minimal@ist/core→snapshot.ist.core
Each snapshot repo contains a snapshot.json with package definitions.
Development
# Install dependencies
npm install
# Build
npm run build
# Run tests
npm test
# Lint
npm run lintLicense
MIT
