Skip to content

Replace bash script with JavaScript component-generator - #24

Open
sweep-ai-deprecated[bot] wants to merge 4 commits into
masterfrom
sweep/replace-bash-script
Open

Replace bash script with JavaScript component-generator#24
sweep-ai-deprecated[bot] wants to merge 4 commits into
masterfrom
sweep/replace-bash-script

Conversation

@sweep-ai-deprecated

Copy link
Copy Markdown

Description

This PR replaces the existing bash script with a JavaScript component-generator for easier maintenance and better integration with the project. The bash script was using a .template folder to generate components and tests, which made it harder to debug and maintain. The new JavaScript script uses the Node.js 'fs' module to read and write files, and string replacement functions to replace placeholders in the template files.

Summary of Changes

  • Replaced the bash script with a JavaScript component-generator.
  • Used the Node.js 'fs' module to read and write files.
  • Implemented string replacement functions to replace placeholders in the template files.
  • Modified the 'package.json' file to add a new npm script that runs the JavaScript component-generator.

Please review and merge this PR to improve the maintainability and usability of the component-generator.

Fixes #18.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/replace-bash-script

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@sweep-ai-deprecated sweep-ai-deprecated Bot added the sweep Assigns Sweep to an issue or pull request. label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep Assigns Sweep to an issue or pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sweep: Find a better templating solution

0 participants