You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Created a script named repo-mixing.js in the directory scripts that merges all the .js files from all the projects altogether and puts them in /dist/repo-mixing.js inside the root project directory
Added a package.json file inside the root project directory
Introduction of Project Metadata File
A new file named package.json has been created. This is like the ID card of our project, it contains information like the project's name, version, and a brief description. It also has instructions for building the project using our TypeScript and ESLint tools, so this file basically tells our tools what to do.
Development of a Script for Merging Files
A new function named repo-mixing.js has been added. Its function is to combine multiple JavaScript files or documents from different folders that already have the package.json file into one single file. It's like gathering parts of a puzzle scattered in different boxes and compiling them together. This function also has its housekeeping duties, it can:
Create a new folder if one doesn't exist where it should
Clean up old data before merging new parts
Look for all the different pieces in directories with a package.json and put all .js files together, all the while keeping track of what it is doing.
Thank you for your PR @karlaalkhouri . We have the concern that Booster relies on Rush to manage packages and you are suggesting that it coexist with npm. The issue is that they could interfere with each other. Could you integrate your solution with Rush, maybe as a Rush command?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Mix multiple booster projects into a single one.
Changes
repo-mixing.jsin the directoryscriptsthat merges all the.jsfiles from all the projects altogether and puts them in/dist/repo-mixing.jsinside the root project directorypackage.jsonfile inside the root project directoryChecks
npm installnpm run mixto merge the projectsAdditional information
This PR is for the issue #1514