Skip to content

Update Templates plugin to v1.1.0 - #70

Open
Degrace15 wants to merge 2 commits into
Acode-Foundation:mainfrom
Degrace15:templates-v1.1.0
Open

Update Templates plugin to v1.1.0#70
Degrace15 wants to merge 2 commits into
Acode-Foundation:mainfrom
Degrace15:templates-v1.1.0

Conversation

@Degrace15

Copy link
Copy Markdown

Summary

This PR updates the Templates plugin to version 1.1.0.

Changes

  • Improved project template generation.
  • Updated the plugin configuration.
  • Improved the main plugin logic.
  • Updated the README with clearer documentation.
  • Optimized the plugin icon.
  • Updated the build configuration.

Testing

  • Built successfully with "npm run build".
  • Tested in Acode to ensure the plugin loads and works correctly.

This PR only includes the files related to the Templates plugin and is intended to make the plugin more stable and easier to maintain.

Thank you for reviewing my contribution!

@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown

Greptile Summary

This PR turns the starter repository into the Templates plugin and updates its metadata, documentation, icon, build output, and runtime command.

  • Adds project generation for HTML, PHP, JavaScript, Python, C, C++, and Java.
  • Registers and removes the Templates command through the Acode plugin lifecycle.
  • Changes the bundle entry to dist/main.js and simplifies the esbuild configuration.
  • Updates plugin identity and installation documentation for version 1.1.0.

Confidence Score: 4/5

This PR should not merge until template generation protects existing files and the build once again produces the documented installable ZIP.

The command currently overwrites matching project files without warning, while the simplified build stops regenerating the ZIP used by the documented installation and distribution flow.

Files Needing Attention: src/main.js, esbuild.config.mjs, package.json

Important Files Changed

Filename Overview
src/main.js Adds the complete template-generation command, but fixed-name createFile calls can silently overwrite existing project files.
esbuild.config.mjs Simplifies bundling to dist/main.js but drops the packaging hook required to regenerate plugin.zip.
package.json Renames the package and simplifies scripts and dependencies; the build script no longer invokes ZIP packaging.
plugin.json Replaces starter metadata with Templates plugin identity, version, entry point, keywords, author, and description.
readme.md Documents supported templates and ZIP installation, which now conflicts with the build's removal of ZIP generation.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Plugin initializes] --> B[Register Templates command]
  B --> C[User selects template]
  C --> D{Open folder available?}
  D -- No --> E[Show error]
  D -- Yes --> F[Open folder filesystem]
  F --> G[Create fixed template files]
  G --> H[Reload folder]
  H --> I[Show success notification]
  J[Plugin unmounts] --> K[Remove Templates command]
Loading

Reviews (1): Last reviewed commit: "Update Templates plugin to v1.1.0" | Re-trigger Greptile

Comment thread src/main.js
Comment thread esbuild.config.mjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant