Ship Kit
CLI
shipkit init, shipkit deploy, and shipkit version commands.
shipkit init
Scaffolds a vite.config.ts in the current directory:
shipkit init library # for @munsonlabs/* packages
shipkit init app # for apps
Both import from @munsonlabs/shipkit/vite/vue.config:
import { mergeConfig } from 'vite-plus'
import base from '@munsonlabs/shipkit/vite/vue.config'
export default mergeConfig(base, {
// local overrides
})
shipkit deploy
The developer side of a Changesets release: authoring changesets, and publishing throwaway builds to a local registry or as an npm snapshot. Versioning and publishing proper are done in CI by changesets/action — see the repo README for the full flow.
Commands
| Command | Description |
|---|---|
shipkit deploy --commit | Create a changeset and offer to commit it |
shipkit deploy --local | Publish to local Verdaccio |
shipkit deploy --snapshot <tag> | Publish snapshot to npm |
shipkit deploy --package <name> | Target specific package (used with --local) |
shipkit deploy --scope <scope> | Filter packages by name prefix, e.g. @munsonlabs/ (used with --local and --snapshot) |
--local
Publishes to local Verdaccio with a timestamp version:
shipkit deploy --local
shipkit deploy --local --package @munsonlabs/video-player
shipkit deploy --local --scope @munsonlabs/
Version: 1.2.0-local.<timestamp>
--snapshot
Publishes temporary version to npm without consuming changesets:
shipkit deploy --snapshot my-feature
shipkit deploy --snapshot my-feature --scope @munsonlabs/
Version: 0.0.0-my-feature-<timestamp>
Environment
| Variable | Default | Description |
|---|---|---|
VERDACCIO_URL | — | Registry URL for --local (e.g. http://localhost:4873) |
shipkit version
Prints the version derived from git (branch name or tag).
shipkit version