quartermaster

1.0.1 • Public • Published

q

A simplified package manager for mcp. Delivers directories with some meta information to a q-server and can download them again.

Upload and download is optimized to transfer binary diffs to a q-server.

WIP: This project is still work in progress. Basic operations pack/unpack/verify work fine but it has no command line interface yet

q requires a package name, description, version and files to include/exclude. This is defined in the q.manifest.

Install

npm install -g quartermaster

Command Line

q --help 

Api

q.manifest

A manifest is required for telling q what the package is contained in the package

Minimal Example: q.manifest

name: my-service
description: A little service that does not do much
version: 0.2.0

The preceding manifest describes a package called 'my-service' with version 0.2.0. It includes all files in the folder where q.manifest resides in.

By default all files matched by .gitignore are not included. If .gitignore excludes node_modules it might be sensible to include the node_modules folder explicitly using include: ['node_modules']

Defaults

Some fields in the manifest have defaults, so the example above could be rewritten as:

--- EMPTY FILE ---

name: defaults to value from package.json when present or the name of the exe (spaces replaces by '-')

description: defaults to value from package.json when present

version: defaults to the version in a package.json when present next to the manifest or to the FileVersion of the only exe in the root path of the module. If the example above contained exactly one EXE in build/Release it would take its version.

path: defaults to the manifest path.

Full example

name: my-module
description: A little module others can use
version: 2.0
path: .
include: ['node_modules']
dependencies:
    mcp-server-web: ~0.0.1
tags: ['web-module']
web-module:
    alias: ['client','download']
    auth: ip
    application: webapp
    api: yes
files:
    config: settings.yaml
    log: log.json

This manifest describes another module with some custom fields. The only fields relevant to q are description,version,path,include.

The other fields are custom fields users of the package can inspect. Usually the tags list is used to define types of packages and e.g. a package tagged with 'web-module' is usable by other packages.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
0.3.120
0.3.110
0.3.100
0.3.90
0.3.80
0.3.70
0.3.50
0.3.40
0.3.30
0.3.10
0.3.00
0.2.130
0.2.120
0.2.110
0.2.100
0.2.90

Package Sidebar

Install

npm i quartermaster

Weekly Downloads

0

Version

1.0.1

License

BSD

Last publish

Collaborators

  • matthiasg