@knit/knit
Manage release of monorepo packages
Last updated 4 months ago by shanewilson .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @knit/knit 
SYNC missed versions from official npm registry.

KnitCLI


Install

It is recommended that knit be installed as a local package using npm scripts but it can also work as a global package.

Global

yarn global add @knit/knit

Local

yarn add @knit/knit
// package.json
{
  ...
  "scripts": {
    ...
    "knit": "knit"
  }
}

Commands

list [options] [modules...]

This command will list out your modules with their dependency count and show whether you have missing packages you need to install:

yarn knit -- list

List

You can pass in module names to limit the scope of the search:

yarn knit -- list @myscope/header-component

ListModule

list -d, --dependencies

Passing --dependencies will expand the dependencies into a list to show you a more detailed view of your modules:

yarn knit -- list --dependencies

ListDep

list -u, --updated

This command shows which modules have been updated since the last release. It considers modules that have updated dependencies to be updated themselves. For example if page-component depends on @myscope/body-component modifying @myscope/body-component will return:

yarn knit -- list --updated

ListUp

validate

This command is used to make sure the project configuration will work with knit and looks to make sure their are no missing or unused dependencies.

yarn knit -- validate

Validate

server

❯ yarn knit -- server
Usage: server [options]

start a dev server

Options:

  -h, --help           output usage information
  -p, --port <port>    set server port
  -h, --host <host>    set server host
  -r, --proxy <proxy>  set proxy uri

relay

❯ yarn knit -- relay
Usage: relay [options]

update relay schema

Options:

  -h, --help  output usage information

This command will call out to a GraphQL server to fetch its schema and save it locally. Useful for running query validation without a live server (tests, travis etc.)

version

❯ yarn knit -- version <version>
Usage: version [options] <version>

version updated modules

Options:

  -h, --help       output usage information
  -f, --force-all  version all modules. (will fail if version already released)

This will bump the version of all updated modules and tag and commit to git.

build

❯ yarn knit -- build
Usage: build [options]

build updated modules

Options:

  -h, --help       output usage information
  -f, --force-all  build all modules

The updated packages are built against commonjs, es6 modules and umd targets.

stitch

❯ yarn knit -- stitch
Usage: stitch [options]

stitch updated modules

Options:

  -h, --help       output usage information
  -f, --force-all  knit all modules. (will fail if version already published)

The updated dependencies are stitched together - all required dependencies and meta data are added to the module package.jsons.

publish

❯ yarn knit -- publish
Usage: publish [options]

publish updated modules

Options:

  -h, --help       output usage information
  -f, --force-all  publish all modules. (will fail if version already published)

This command does not commit anything to git and must be done on a tagged commit. All updated modules are publish to the npm registry and can be used by require, import, modern tree-shaking bundlers like webpack and rollup using jsnext:main and as script tags thanks to https://unpkg.com.

release

❯ yarn knit -- release  <version>
Usage: knit [options]

release updated modules

Options:

  -h, --help       output usage information
  -f, --force-all  release all modules. (will fail if version already published)

This command will run all updated modules through the full release process: version->build->stitch->publish and then push to git. If you would like to modify this work flow each step has been broken out into its own command for you to mix and match as needed.

Current Tags

  • 0.0.0-812e2aa                                ...           better-env (4 months ago)
  • 0.0.0-5bd66a9                                ...           find-latest-version (6 months ago)
  • 0.0.0-d3b215e                                ...           fix-unpub-version (6 months ago)
  • 0.0.0-ca1a655                                ...           git-magic-var-branch (6 months ago)
  • 0.0.0-4f9fbac                                ...           handle-numbers (6 months ago)
  • 0.0.0-24228fb                                ...           HEAD (6 months ago)
  • 0.0.0-14f49ec                                ...           ignore-test-folders (6 months ago)
  • 0.8.14                                ...           latest (4 months ago)
  • 0.0.0-b94f8d9                                ...           min-semver (6 months ago)
  • 0.0.0-562e2af                                ...           publish-preview (6 months ago)
  • 0.0.0-fffbbe9                                ...           rm-npmignore (6 months ago)
  • 0.0.0-b321aaa                                ...           update-depcheck (4 months ago)
  • 0.0.0-3768818                                ...           update-desc (6 months ago)
  • 0.0.0-6ee33e9                                ...           use-caret-version (4 months ago)
  • 0.0.0-043b9ca                                ...           use-danger (6 months ago)
  • 0.0.0-3aac8e0                                ...           use-gh-actions (6 months ago)
  • 0.0.0-286ea65                                ...           use-pkg-deps (5 months ago)
  • 0.0.0-1ba651c                                ...           ws-validate (4 months ago)

107 Versions

  • 0.8.14                                ...           4 months ago
  • 0.0.0-6ee33e9                                ...           4 months ago
  • 0.0.0-98417cb                                ...           4 months ago
  • 0.8.13                                ...           4 months ago
  • 0.0.0-812e2aa                                ...           4 months ago
  • 0.0.0-195eb50                                ...           4 months ago
  • 0.8.12                                ...           4 months ago
  • 0.0.0-b321aaa                                ...           4 months ago
  • 0.0.0-08260e2                                ...           4 months ago
  • 0.8.11                                ...           4 months ago
  • 0.0.0-1ba651c                                ...           4 months ago
  • 0.0.0-ec71f4f                                ...           4 months ago
  • 0.8.10                                ...           5 months ago
  • 0.0.0-286ea65                                ...           5 months ago
  • 0.0.0-b94f8d9                                ...           6 months ago
  • 0.8.9                                ...           6 months ago
  • 0.0.0-14f49ec                                ...           6 months ago
  • 0.0.0-c3f04b2                                ...           6 months ago
  • 0.0.0-043b9ca                                ...           6 months ago
  • 0.0.0-522735e                                ...           6 months ago
  • 0.0.0-225c5a2                                ...           6 months ago
  • 0.0.0-a0dc1a5                                ...           6 months ago
  • 0.0.0-8059ab8                                ...           6 months ago
  • 0.0.0-3bbd823                                ...           6 months ago
  • 0.0.0-3aac8e0                                ...           6 months ago
  • 0.0.0-7cacc72                                ...           6 months ago
  • 0.0.0-37c65e5                                ...           6 months ago
  • 0.0.0-f7c79f1                                ...           6 months ago
  • 0.0.0-258a3cd                                ...           6 months ago
  • 0.8.8                                ...           6 months ago
  • 0.0.0-ca1a655                                ...           6 months ago
  • 0.0.0-24228fb                                ...           6 months ago
  • 0.8.7                                ...           6 months ago
  • 0.0.0-fffbbe9                                ...           6 months ago
  • 0.0.0-0eca39c                                ...           6 months ago
  • 0.8.6                                ...           6 months ago
  • 0.0.0-d3b215e                                ...           6 months ago
  • 0.0.0-029858a                                ...           6 months ago
  • 0.0.0-9bed63f                                ...           6 months ago
  • 0.8.5                                ...           6 months ago
  • 0.0.0-3768818                                ...           6 months ago
  • 0.8.4                                ...           6 months ago
  • 0.0.0-4f9fbac                                ...           6 months ago
  • 0.8.3                                ...           6 months ago
  • 0.0.0-5bd66a9                                ...           6 months ago
  • 0.0.0-562e2af                                ...           6 months ago
  • 0.0.0-a2d4b32                                ...           6 months ago
  • 0.0.0-428b6b3                                ...           6 months ago
  • 0.8.2                                ...           6 months ago
  • 0.8.0                                ...           6 months ago
  • 0.7.2                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.1                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.1                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
  • 0.3.2                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.6                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.49                                ...           4 years ago
  • 0.0.48                                ...           4 years ago
  • 0.0.47                                ...           4 years ago
  • 0.0.46                                ...           4 years ago
  • 0.0.44                                ...           4 years ago
  • 0.0.43                                ...           4 years ago
  • 0.0.42                                ...           4 years ago
  • 0.0.41                                ...           4 years ago
  • 0.0.40                                ...           4 years ago
  • 0.0.38                                ...           4 years ago
  • 0.0.37                                ...           4 years ago
  • 0.0.36                                ...           4 years ago
  • 0.0.35                                ...           4 years ago
  • 0.0.34                                ...           4 years ago
  • 0.0.33                                ...           4 years ago
  • 0.0.27                                ...           4 years ago
  • 0.0.26                                ...           4 years ago
  • 0.0.25                                ...           4 years ago
  • 0.0.24                                ...           4 years ago
  • 0.0.23                                ...           4 years ago
  • 0.0.22                                ...           4 years ago
  • 0.0.21                                ...           4 years ago
  • 0.0.20                                ...           4 years ago
  • 0.0.17                                ...           4 years ago
  • 0.0.16                                ...           4 years ago
  • 0.0.15                                ...           4 years ago
  • 0.0.14                                ...           4 years ago
  • 0.0.13                                ...           4 years ago
  • 0.0.12                                ...           4 years ago
  • 0.0.11                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 109
Last Month 109
Dependencies (19)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |