0.3.0 • Published 2 months ago

@wixc3/codux-librarian v0.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Codux Librarian

codux-librarian is a CLI tool for packaging libraries of third-party boards into a format that can be consumed by the Add Panel in Codux.

This tool generates an NPM package containing the library's boards. This package then can be added as a dependency to the user's project. Once the user's project is opened in Codux, the packaged boards will be visible in the "libraries" section of the Add Panel.

Usage

  1. Add codux-librarian as a dev dependency to the project from which you want to provide boards to other projects.

    $ npm install --save-dev @wixc3/codux-librarian
  2. Create codux-librarian.config.json in the root directory of that project, and fill it in according to the format described in the LibrarianConfig interface.

  3. Run npx codux-librarian build.

  4. A new directory with the resulting package will be created. Publish this package to NPM.

  5. Add it as a dev dependency to the project that will be consuming the boards.

  6. Add the following setting to codux.config.json of the project consuming the boards:

    {
      "addPanel": {
        "assets": ["name-of-the-resulting-package"]
      }
    }

Limitations

  1. Boards that import components using a relative path are not currently supported. Components have to be imported from external package.
  2. Boards containing multiple return statements are not currently supported.
  3. Board cover images have to be imported using a relative path to the image file, extension included.
0.3.0

2 months ago

0.2.0

5 months ago

0.1.4

10 months ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.1.0-beta001

1 year ago