@hydra-js/cli

1.0.0-alpha.1 • Public • Published

Hydra-JS CLI

Development

Prerequisites

  • Node.js (v14 or later)
  • npm (v7 or later)

Setup

git clone git@github.com:hydra-js/monorepo.git hydra-js-monorepo
cd hydra-js-monorepo/packages/hydra-cli
npm install

Running locally

To run the CLI tool locally without installing it globally, use:

node index.js init [appName]

Running locally with npm link

This section provides instructions on how to use npm link for local development, enabling you to test the CLI tool as if it were installed globally.

To link the CLI tool locally for development and testing, use npm link:

  1. Run npm link in the project directory. This creates a symlink globally:
npm link
  1. Now you can run the hydra command from anywhere on your system:
hydra init [appName]

This allows you to test changes to the CLI tool without needing to reinstall it each time you make modifications.

Publishing

To publish the package to npm:

  1. Ensure you are logged in to npm:
npm login
  1. Make sure the NPM_TOKEN secret is added to your GitHub repository.

  2. Create a new version tag and push it to GitHub:

git tag v1.0.0
git push origin v1.0.0

The GitHub Actions workflow will automatically publish the package to npm when a new tag is pushed.

Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss your ideas.

License

This project is licensed under the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i @hydra-js/cli

Weekly Downloads

4

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

6.22 kB

Total Files

6

Last publish

Collaborators

  • thinkholic
  • heimdallrj