@js-katana/cli v2.11.0
ki
a CLI tool for vendoring utilities.
Project goals
- To make it easy to vendor and share code between projects without having to resort to a full fledged package management solutions.
- To allow the user to control where the code is hosted and how it's fetched, synced and versioned.
- To support hot patches and changes to the code on the fly.
Installation
To install ki use npm and run the following command
$ npm i git@github.com:aramtech/ki.git --globalThis will install ki from this github repository, you can then test it via:
$ ki list
no tool found!.Vendoring
To turn a directory with TypeScript/JavaScript modules into a vendored utility run:
$ ki init <utility-name> -d [description]This will create a utils.json file, which is a simple config file that contains:
{
"name": "<utility-name>",
"version": "0.1.0",
"hash": "(a hash of the contents of all files of the utility)",
"private": true,
"description": ""
}name: The name of the utility.deps: The dependencies of the utility.version: The utility's version.private: Whether the utility is private to this project.
You can list the utilities in a given project by running:
$ ki list
* string-utils@1.5 | Utilities for manipulating with strings
* odoo-integration@0.1 | Utilities for integrating with odoo *private*You can remove a utility from your project by running:
$ ki remove string-utils
string-utils@1.5 Was removed successfullyYou can push a utility to github by running:
$ ki push string-utils
string-utils@1.5 Was pushed to github successfullyYou can pull a utility from github by running:
$ ki pull string-utils
string-utils@1.5 was added to the project successfullyYou can make a utility private by running:
$ ki hide string-utilsYou can make it public again by running:
ki reveal string-utils9 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago