mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-39314 Break dependencies on the "commander" lib in the CLI (#11299)
This commit is contained in:
+29
-2
@@ -18,12 +18,24 @@ adf-cli <command> --help
|
||||
|
||||
## Developing
|
||||
|
||||
Link the project as a global tool
|
||||
### Quick Setup
|
||||
|
||||
Link the project as a global tool (builds and links in one command):
|
||||
|
||||
```bash
|
||||
npm link
|
||||
npm run link
|
||||
```
|
||||
|
||||
This will build the CLI and make the `adf-cli` command available globally on your system.
|
||||
|
||||
When you're done developing:
|
||||
|
||||
```bash
|
||||
npm run unlink
|
||||
```
|
||||
|
||||
### Development Mode
|
||||
|
||||
Build the tool in the **develop** mode (automatically watches for changes and rebuilds the commands):
|
||||
|
||||
```bash
|
||||
@@ -38,6 +50,21 @@ DEVELOP=true adf-cli <command>
|
||||
|
||||
In develop mode, the CLI takes the prebuilt scripts from the dist folder.
|
||||
|
||||
### Manual Workflow
|
||||
|
||||
If you need more control, you can manually build and link:
|
||||
|
||||
```bash
|
||||
# Build the CLI
|
||||
npm run build
|
||||
|
||||
# Or build with full distribution (includes copying resources)
|
||||
npm run dist
|
||||
|
||||
# Link from the dist directory
|
||||
cd ../../dist/libs/cli && npm link
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
| **Commands** | **Description** |
|
||||
|
||||
Reference in New Issue
Block a user