Package Exports
- @lucasmeira/npmfix
- @lucasmeira/npmfix/dist/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lucasmeira/npmfix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
npmfix
We welcome contributions to npmfix! Whether you want to report a bug, suggest a feature, improve the documentation, or contribute code, your help is highly appreciated.
This project was created to simplify cleaning and reinstalling dependencies for entire projects with minimal commands, eliminating the need to monitor and check progress constantly. It is designed to be useful for experienced professionals (seniors/specialists) seeking efficiency and for juniors aiming to streamline their workflow and clarify concepts.
Features
- Log Management: All logs are stored in the
/logdirectory, with the path printed at the start ofnpmfix. - Configurable Log Retention: Logs have a maximum age of 7 days by default, which can be changed in
src/config.json. - Powerful Commands: Manage project dependencies, clean up directories, and automate builds with a single tool.
Installation
$ npm i -g @lucasmeira/npmfix
# Unix users may need to run the command with sudo. Go carefullynpmfix does not support node<v20.
Usage
$ npmfix
# it is installed globallynpmfix executes the default sequence of clean, reinstall, and build processes seamlessly. Need help? Use -h or --help to explore available options.
Getting Started Locally
- Clone the repository:
git clone https://github.com/lucasmeira/npmfix.git - Install dependencies:
npm install && npm run build
- Make the CLI executable:
chmod +x dist/src/index.js - Link the CLI tool globally:
npm link
- Run the project locally:
npmfix
How to Contribute
Reporting Issues
- Check the issues page to see if your issue has already been reported.
- Create a new issue with a descriptive title and detailed explanation.
- Include steps to reproduce the issue and relevant logs or screenshots if applicable.
Suggesting Features
- Open a feature request issue and describe the feature in detail.
- Include use cases and benefits for the feature.
Submitting Code Changes
- Fork the repository and create a new branch for your changes:
git checkout -b feature/your-feature-name
- Make your changes and commit them with clear, concise commit messages.
- Push your branch to your fork:
git push origin feature/your-feature-name - Submit a pull request to the
mainbranch of the repository. - Ensure your PR includes:
- A clear description of your changes.
- Reference to related issues if applicable.
Code Standards
- Follow the project's coding conventions.
- Write clear and concise code with appropriate comments.
- Include tests for any new functionality.
Improving Documentation
- Check for typos, unclear explanations, or missing sections.
- Submit pull requests with your improvements.
Getting Started
- Clone the repository:
git clone https://github.com/lucasmeira/npmfix.git - Install dependencies:
npm install
- Run the project locally:
npm start
Commands
| Command | Description |
|---|---|
npmfix |
Executes the default sequence: clean, reinstall, and build processes |
npmfix clean |
Clean project dependencies |
npmfix reinstall |
Reinstall project dependencies |
npmfix build |
Build the project |
npmfix [options] |
Show usage information |
Options
| Option | Description |
|---|---|
--version |
Show version number |
-m, --maxFiles |
Set maximum file limit (default: 7d) |
-e, --run, --exec |
Execute a specified command |
-h, --help |
Show help information |
Changelog
The changelog is generated automatically during the Continuous Deployment (CD) process. You can find the latest updates and release notes in the Releases page.