@omp-node/cli is a command-line interface (CLI) tool for quickly creating and managing resources in your omp-node project. It allows you to scaffold new resources and build resources located in the resources folder.
You can install the CLI globally or run it directly using npx.
To run the CLI tool with npx, you can execute the following commands:
npx @omp-node/cli <command> [options]Commands:
@omp-node/cli add Create and initialize a new resource for omp-node component
@omp-node/cli build Iterate through all folders in the 'resources' directory and
run 'npm run build' in each
Options:
--version Show version number
--help Show helpTo install @omp-node/cli globally, run:
npm install -g @omp-node/cliThen, you can run it directly:
@omp-node/cli <command> [options]Creates a new resource/package in the omp-node project.
Usage:
@omp-node/cli addThis command will prompt you to select a project template and provide configuration options to create a new resource.
Iterates through all folders in the resources directory and runs npm run build in each one, one by one (not simultaneously). This command is useful for building all resources in the project.
Usage:
@omp-node/cli buildThis command will start the build process for each resource in the resources folder, displaying colorful output for each directory processed.