bundpac
Is a npm tool that quickly and easily automates the consolidation of dependencies from different projects into a single new project.
Overview
List All Projects: Easily view all projects (npm) within a specified directory.
Dynamic Project Selection: Facilitates the dynamic selection of different projects from the listed ones.
Dependency Consolidation: Automatically creates a new directory with a provided name and generates a package.json file inside. This package.json file consolidates all the dependencies from the selected projects.
Installation
Install bundpac globally using npm:
npm install -g bundpac
Usage
-
Install "bundpac" globally.
npm install -g bundpac
Open a console (CMD).
Go to the directory where the subdirectories of the projects you want to consolidate are located. (The script checks all subdirectories for the "package.json" file of each project and extracts the name of the project and its dependencies).
Type the command
bundpac
and press "Enter", the menu will pop up.Select two or more projects you wish to consolidate. (To change the selection status of the projects, hover over the project in the list and press the space key to change the selection status.)
Once the desired projects have been selected, press the "Enter" key.
A text box will be displayed where you will enter the name of the consolidated project.
Once the name is entered, press the "Enter" key to create the project and the project directory with its package.json will be automatically created.
In a console (CMD) enter the directory of the created project and execute
npm install
to install all the dependencies.To exit you can press 'esc' or the combination of "ctrl + z" or "shift + q".
Example
Menu
Select Projects
New project name
New project created
Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
License
This project is licensed under the MIT License.
Top comments (0)