Giter Site home page Giter Site logo

fccoelho7 / px-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from agencyenterprise/px-cli

0.0 0.0 0.0 85 KB

๐Ÿช„ Package manager eXecutor for JavaScript projects

Home Page: https://pxcli.com/

License: MIT License

JavaScript 100.00%

px-cli's Introduction

px

npm version npm license monthly downloads

px is a CLI tool used to run commands across different JavaScript package managers.

With px, you no longer need to switch between package managers when working on different projects. It detects the project's package manager and forwards the command for you. The command is not changed, just forwarded.

Features

  • Execute the same set of commands without needing to switch package managers
  • Automatically installs and uninstalls TypeScript declaration packages with their corresponding npm packages
  • For npm, px automatically adds the run prefix for npm scripts (e.g. px dev results in npm run dev)
  • Compatible with npm, pnpm, and yarn

Install

Before installing px, ensure you have Node.js >= 16 installed on your machine.

npm install -g @ae-studio/px

Usage

To use px, simply replace your package manager command with px followed by the usual arguments you would pass. For example:

px install       # Installs dependencies
px dev           # Runs the 'dev' script, automatically adding 'run' for npm
px test          # Executes the 'test' script
px build         # Builds the project

px will detect the package manager your project is using and execute the command as if you had used the package manager's native CLI.

Automatic TypeScript Declarations

px improves the experience of working in TypeScript projects by making it easier to manage TypeScript declaration packages. When you install or uninstall npm packages in a TypeScript project, px will:

  • On install: Automatically search for and install the corresponding TypeScript declaration packages (@types/*) if they exist.
  • On uninstall: Check for any installed declaration packages associated with the npm packages being removed and uninstall them as well.

This feature saves time and ensures your TypeScript types stay in sync with your installed packages, all without the need for manual intervention.

License

This tool is open-source and available under the MIT License. See the LICENSE file for details.


Built with ๐Ÿงก by AE Studio

px-cli's People

Contributors

ddanielcruz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.