Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lazco-studio/component-manager
Seamlessly manage and integrate your JS/TS components with ease.
https://github.com/lazco-studio/component-manager
component component-library component-management component-manager go golang shell-script
Last synced: 8 days ago
JSON representation
Seamlessly manage and integrate your JS/TS components with ease.
- Host: GitHub
- URL: https://github.com/lazco-studio/component-manager
- Owner: Lazco-Studio
- Created: 2024-04-20T13:19:16.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T14:30:20.000Z (8 months ago)
- Last Synced: 2024-05-22T15:48:49.678Z (8 months ago)
- Topics: component, component-library, component-management, component-manager, go, golang, shell-script
- Language: Go
- Homepage:
- Size: 63.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
bash <(wget -qO- https://short.on-cloud.tw/cm-install-script)
```## Windows
Copy and paste the following command to Powershell.
```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
- [Go (1.22)](https://go.dev/doc/install)
- [upx (4.2.3)](https://github.com/upx/upx/releases/latest)## Installation Steps
Download the source files.
```bash
git clone https://github.com/lazco-studio/Component-Manager.git
```Set the necessary environment variables.
```bash
# 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.
```bash
./build.sh
```Then copy the executable file to `/usr/local/bin`.
```bash
sudo cp ./dist/cm-cli_linux_amd64 /usr/local/bin/cm
```Grant execute permission for `/usr/local/bin/cm`.
```bash
sudo chmod +x /usr/local/bin/cm
```