Skip to content

Releases: ParvishGajjar/get-all

Release v1.0.3

28 Dec 01:29
Compare
Choose a tag to compare

Version 1.0.3 Release Notes

Features:

  1. Executable Script (.bin):

    • Added executable script support with the introduction of the bin field in package.json.
    • The get-all command is now available globally.
  2. Shebang Line in index.js:

    • Added a shebang line (#!/usr/bin/env node) at the beginning of index.js for better cross-platform compatibility.
  3. Script Execution:

    • Made the script executable using npm commands.
      • Users can now run get-all directly from the terminal.

Workflow Improvements:

  1. Workflow Cleanup:
    • Removed unnecessary workflows for better clarity and simplicity.
    • Streamlined the release process.

How to Use:

  1. Install Globally:

    • Users can install the package globally using npm install -g @parvishgajjar/get-all.
  2. Use as Executable:

    • After installation, the get-all command is available globally.
    • Users can run the script directly from the terminal.
  3. Integration with Other Projects:

    • Integrate get-all into other projects by adding it to the scripts section in package.json or using it in the terminal.

Bug Fixes:

  • Resolved issues related to script execution on Windows and Linux environments.

Release v1.0.2

27 Dec 23:38
74979d3
Compare
Choose a tag to compare

🚀 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

27 Dec 21:32
Compare
Choose a tag to compare

Release v1.0.1

Features and Enhancements:

  1. File and Directory Fetching:

    • Introduced a recursive function (fetchFilesDepth) to fetch files and directories depth-wise, excluding certain paths like node_modules, .git, and more.
  2. JavaScript File Discovery:

    • Implemented a function (getJavaScriptFiles) to discover JavaScript files recursively from a specified base directory.
  3. 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.
  4. Dependency Management:

    • Added functionality to retrieve existing dependencies from package.json, considering both dependencies and devDependencies (getExistingDependencies function).
  5. Dynamic npm Install Command:

    • Constructed a dynamic npm install command based on newly discovered libraries (constructInstallCommand function).
  6. Installation of New Libraries:

    • Implemented a function (installLibraries) to install new libraries using the npm install command.
  7. Main Execution:

    • Created a main function (main) to orchestrate the entire process of discovering JavaScript files, extracting libraries, and installing new dependencies.
  8. Logging and Output:

    • Improved logging throughout the code for better visibility into the process.
    • Output the found libraries with uniqueness.
  9. 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.