Skip to content

Seamlessly manage and integrate your JS/TS components with ease.

Notifications You must be signed in to change notification settings

Lazco-Studio/Component-Manager

Repository files navigation

Component Manager

Seamlessly manage and integrate your JS/TS components with ease.

cm add



Component Manager (cm) is a sophisticated tool developed in Golang, specifically tailored for managing reusable JavaScript (JS), TypeScript (TS), and React components sourced from remote repositories.

Manage your components with ease

It simplifies the development process by allowing developers to effortlessly download and integrate these components into their projects.

No need to worry about dependencies

It will automatically download and install the necessary dependencies for the selected component. It also supports multiple package manager, automatically adapting to utilize pnpm, bun, yarn, or npm as required.

Installation

Linux, MacOS

Copy and paste the following command to your terminal.

bash <(wget -qO- https://short.on-cloud.tw/cm-install-script)

Windows

Copy and paste the following command to Powershell.

. { iwr -useb https://short.on-cloud.tw/cm-install-script-windows } | iex;

Supported Platforms

  • Linux: x86_64
  • MacOS: x86_64, arm64
  • Windows: x86_64

Advance Installation / Contributing

Requirements

Installation Steps

Download the source files.

git clone https://github.com/lazco-studio/Component-Manager.git

Set the necessary environment variables.

# Create env folder
mkdir env

# Set GITHUB_TOKEN, replace "github_token" with your github token
echo "github_token" > env/GITHUB_TOKEN

Run the build script.

./build.sh

Then copy the executable file to /usr/local/bin.

sudo cp ./dist/cm-cli_linux_amd64 /usr/local/bin/cm

Grant execute permission for /usr/local/bin/cm.

sudo chmod +x /usr/local/bin/cm