2.11.0 • Published 7 months ago

@js-katana/cli v2.11.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

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 --global

This 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": ""
}
  1. name: The name of the utility.
  2. deps: The dependencies of the utility.
  3. version: The utility's version.
  4. 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 successfully

You can push a utility to github by running:

$ ki push string-utils

string-utils@1.5 Was pushed to github successfully

You can pull a utility from github by running:

$ ki pull string-utils

string-utils@1.5 was added to the project successfully

You can make a utility private by running:

$ ki hide string-utils

You can make it public again by running:

ki reveal string-utils
2.11.0

7 months ago

2.10.0

8 months ago

2.9.0

8 months ago

2.8.0

8 months ago

2.7.0

8 months ago

2.5.0

8 months ago

2.4.0

8 months ago

2.3.0

8 months ago

2.2.1

8 months ago

2.2.0

8 months ago

2.1.0

8 months ago

2.0.0

8 months ago

1.3.17

8 months ago

1.3.16

8 months ago

1.3.15

8 months ago

1.3.14

8 months ago

1.3.13

8 months ago

1.3.12

8 months ago

1.3.11

8 months ago

1.3.10

8 months ago

1.3.9

8 months ago