LSC
Install
npm i -g @labshare/lsc
Usage
Run lsc help
to display a list of available commands.
lsc Settings
To define the cliDir and packageDependencies, you can use the lsc
property at package.json
"lsc": {
"cliDir": "dist/cli",
"packageDependencies":[]
},
In the example , lsc is reading the package's cli commands from the cliDir
directory, also
is checking the packageDependencies from the same section.
Package Dependencies
The add commands from other cli's labShare packages, you will need to specify the packageDependencies
property at
the package.json file. This property can be defined inside the lsc
property or as a root property at the package.json
file.
This is an array of all the projects which contains cli commands, for example:
"packageDependencies": [
"@labshare/services",
"@labshare/lsc"
],
In the example , lsc is reading the package's cli commands from each module declared at packageDependencies
,
Documentation
Tests
npm test