@uxland/harmonix-cli
v0.0.7
Published
The Harmonix command-line tool: publishes a built plugin to a Plugin Store.
Readme
@uxland/harmonix-cli
The Harmonix command-line tool. Its command, harmonix publish, uploads a built plugin to a Plugin Store. It does not build the plugin or change its version: run your build first and set version in package.json yourself.
npm install --save-dev @uxland/harmonix-cli
npm run build
npx harmonix publishRun it from the plugin folder. From its package.json it reads name (the plugin id), version and module (the built file to upload).
Configuration
The registry URL and the API key go in a .harmonixrc file, in the plugin folder or any folder above it (one at the root of a monorepo works for all its plugins), or in your home folder:
registry=https://your-plugin-store.example.com/upload
apiKey=your-api-keyThe --registry and --api-key options override the file. A project .harmonixrc (the nearest one above the plugin folder) overrides the one in your home folder.
harmonix publish exits with code 1 when the upload fails (for example, the plugin does not exist in the store or the version is already published), so scripts can stop on errors.
.harmonixrccontains credentials: never commit it. Projects made withnpm create @uxland/harmonix-plugin@latestalready ignore it.
Documentation
- This package: configuration order, the request it sends, errors and exit codes.
- Build and publish a plugin.
