252.1.0 • Published 4 months ago

@komaci/cli v252.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@komaci/cli

CLI tool to test out functionality for komaci. Currently supports only one command, modgen.

modgen Command

This command will generate a komaci module, similar to what komaci-tester did, but with some improvements. Some example components can be found in ./sandbox.

One important difference is that the component's namespace is no longer hardcoded to "c". It will now be derived from the module structure. For instance;

sandbox
├── jsconfig.json
└── modules              // LWC 'modules' directory; not required
    ├── c                // "c" is the namespace for the modules within this directory
    │   └── komaciAction // "lightning/komaciAction" component — komaciAction in the "c" namespace
    └── lightning        // "lightning" is the namespace for the modules below
        ├── komaciAction // "lightning/komaciAction" component — Same as c/komaciAction, but in a trusted namespace
        └── recordForm   // "lightning/recordForm" component — copied from ui-lightning-components

Usage

Run the following from the packages/@komaci/cli directory:

yarn
yarn build
# Run modgen on the component defined @ <path>
yarn komaci modgen <path>

Examples

# Run modgen on c/komaciAction:
yarn komaci modgen sandbox/modules/c/komaciAction
# Print only the lwc metadata for c/komaciAction:
yarn komaci modgen sandbox/modules/c/komaciAction --only lwc

Modgen can also take in a list of paths:

yarn komaci modgen sandbox/modules/lightning/komaciAction sandbox/modules/lightning/recordForm

If all the modules are in the same subdirectory, you can use a glob pattern:

# Run modgen on all modules in the lightning namespace:
yarn komaci modgen sandbox/modules/lightning/*
# Run modgen on all modules in all namespaces:
yarn komaci modgen sandbox/modules/*/*
252.1.0

4 months ago

254.0.2

4 months ago

250.0.2

5 months ago

250.0.1

8 months ago

252.0.2

7 months ago

252.0.1

8 months ago

252.0.4

6 months ago

252.0.3

6 months ago

252.0.5

5 months ago

254.0.0

6 months ago

254.0.1

6 months ago

252.0.0

8 months ago

248.1.10

10 months ago

248.1.9

11 months ago

248.1.7

11 months ago

250.0.0

12 months ago

246.0.10

1 year ago

246.0.5

1 year ago

246.0.4

2 years ago

246.0.7

1 year ago

246.0.6

1 year ago

246.0.3

2 years ago

248.0.0

1 year ago

248.1.6

1 year ago

248.1.5

1 year ago

248.1.2

1 year ago

248.1.1

1 year ago

248.1.4

1 year ago

248.1.3

1 year ago

246.0.8

1 year ago

246.0.1

2 years ago

246.0.2

2 years ago

246.0.0

2 years ago

242.3.7

2 years ago

244.2.9

2 years ago

244.2.8

2 years ago

244.2.1

2 years ago

244.2.0

2 years ago

244.2.3

2 years ago

244.2.2

2 years ago

244.2.5

2 years ago

244.2.4

2 years ago

244.2.7

2 years ago

244.2.6

2 years ago

242.3.6

2 years ago

242.3.4

2 years ago

244.1.3

2 years ago

244.1.4

2 years ago

244.1.2

2 years ago

244.1.7

2 years ago

244.1.8

2 years ago

244.1.5

2 years ago

242.3.0

2 years ago

242.3.3

2 years ago

242.2.4

2 years ago

242.3.1

2 years ago

242.3.2

2 years ago

242.2.3

2 years ago

244.0.0

2 years ago

244.1.0

2 years ago

242.2.0

2 years ago

242.2.1

2 years ago

240.1.7

2 years ago

242.1.9

2 years ago

242.1.7

2 years ago

242.1.8

2 years ago

242.1.6

2 years ago

242.1.1

2 years ago

242.1.0

2 years ago

240.1.5

2 years ago

240.1.6

2 years ago

242.1.5

2 years ago

242.1.3

2 years ago

242.1.4

2 years ago

242.0.0

2 years ago

240.1.4

2 years ago

240.1.3

3 years ago

0.0.1

3 years ago