remote-components-cli
v1.2.0
Published
The **Remote Components CLI** is a command-line tool that allows you to publish remote components to a server. This tool simplifies the process of uploading JavaScript and CSS assets to a remote server for use in your frontend projects.
Downloads
18
Readme
Remote Components CLI
The Remote Components CLI is a command-line tool that allows you to publish remote components to a server. This tool simplifies the process of uploading JavaScript and CSS assets to a remote server for use in your frontend projects.
Installation
You can install the Remote Components CLI globally using npm:
npm install -g remote-components-cli
Configuration
The remote-components.config.json file in your project's root folder should have the following structure:
{
"url": "https://example.com",
"authorization" : "Basic xyz"
}
Make sure to replace "https://example.com" with the actual URL of your remote server where you want to publish the components. The authorization field is not mandatory
Usage
To use the Remote Components CLI, follow these steps:
- Create a configuration file called remote-components.config.json in the root folder of your frontend project. This configuration file should contain the necessary settings, including the server URL and any other relevant parameters.
- Use the publish command to upload your assets to the remote server. You can run the following command:
remote-components-cli publish
- Follow the prompts to confirm and customize the upload process if required.
- Once the upload is complete, your remote components will be available on the specified server.