Releases: ParvishGajjar/get-all
Releases · ParvishGajjar/get-all
Release v1.0.3
Version 1.0.3 Release Notes
Features:
-
Executable Script (.bin):
- Added executable script support with the introduction of the
bin
field inpackage.json
. - The
get-all
command is now available globally.
- Added executable script support with the introduction of the
-
Shebang Line in
index.js
:- Added a shebang line (
#!/usr/bin/env node
) at the beginning ofindex.js
for better cross-platform compatibility.
- Added a shebang line (
-
Script Execution:
- Made the script executable using npm commands.
- Users can now run
get-all
directly from the terminal.
- Users can now run
- Made the script executable using npm commands.
Workflow Improvements:
- Workflow Cleanup:
- Removed unnecessary workflows for better clarity and simplicity.
- Streamlined the release process.
How to Use:
-
Install Globally:
- Users can install the package globally using
npm install -g @parvishgajjar/get-all
.
- Users can install the package globally using
-
Use as Executable:
- After installation, the
get-all
command is available globally. - Users can run the script directly from the terminal.
- After installation, the
-
Integration with Other Projects:
- Integrate
get-all
into other projects by adding it to thescripts
section inpackage.json
or using it in the terminal.
- Integrate
Bug Fixes:
- Resolved issues related to script execution on Windows and Linux environments.
Release v1.0.2
🚀 New Features:
- Improved module detection for local imports.
- Enhanced compatibility with different import styles.
🛠️ Bug Fixes:
- Fixed issues with npm versioning during releases.
- Resolved problems with git push follow tags.
📚 Documentation:
- Updated README for better clarity.
- Included a concise About section for a quick overview.
🙌 Contributors:
Get-all package ready for initial release
Release v1.0.1
Features and Enhancements:
-
File and Directory Fetching:
- Introduced a recursive function (
fetchFilesDepth
) to fetch files and directories depth-wise, excluding certain paths likenode_modules
,.git
, and more.
- Introduced a recursive function (
-
JavaScript File Discovery:
- Implemented a function (
getJavaScriptFiles
) to discover JavaScript files recursively from a specified base directory.
- Implemented a function (
-
Library Extraction:
- Enhanced the code to extract libraries from both import and require statements in JavaScript files (
extractLibraries
function). - Improved handling of default imports and scoped packages.
- Enhanced the code to extract libraries from both import and require statements in JavaScript files (
-
Dependency Management:
- Added functionality to retrieve existing dependencies from
package.json
, considering both dependencies and devDependencies (getExistingDependencies
function).
- Added functionality to retrieve existing dependencies from
-
Dynamic npm Install Command:
- Constructed a dynamic npm install command based on newly discovered libraries (
constructInstallCommand
function).
- Constructed a dynamic npm install command based on newly discovered libraries (
-
Installation of New Libraries:
- Implemented a function (
installLibraries
) to install new libraries using the npm install command.
- Implemented a function (
-
Main Execution:
- Created a main function (
main
) to orchestrate the entire process of discovering JavaScript files, extracting libraries, and installing new dependencies.
- Created a main function (
-
Logging and Output:
- Improved logging throughout the code for better visibility into the process.
- Output the found libraries with uniqueness.
-
Error Handling:
- Enhanced error handling with informative error messages.
Usage:
- Run the script with
node index.js
to discover and install new libraries based on your JavaScript files.
Notes:
- Ensure
package.json
exists in the project directory. - Handle dependencies and devDependencies accordingly.