Replies: 13 comments
-
This is very valid request, as:
I will look into this. |
Beta Was this translation helpful? Give feedback.
-
Perhaps we can do it like this:
And the
Then users can directly use What do you think? I can try solving this issue. |
Beta Was this translation helpful? Give feedback.
-
Would love any kind of contributions! This is good but actually, I am looking into more granular feature selection during Usage:# Sample interactive output:
? Select base pages to include:
❯◉ Background
◉ Popup
◉ Options
◉ Content Script
◉ Devtools Panel
◉ Side Panel
? Choose features to include:
❯◉ File-based Routing
◉ i18n
◉ Theme Switcher
◉ Notivue Notifications
◉ Pinia Store
✔ Scaffolding complete.
→ Run `cd my-extension && pnpm install && pnpm dev` Feature ListBelow is a sample list of available features grouped by category. 📄 Pages
Looking forward for your valuable feedback. |
Beta Was this translation helpful? Give feedback.
-
That's certainly the case. In fact, our |
Beta Was this translation helpful? Give feedback.
-
This is great that we are on a same page. Please let me know if you want to continue on this. |
Beta Was this translation helpful? Give feedback.
-
Yes, I will try to implement it. |
Beta Was this translation helpful? Give feedback.
-
Awesome! looking forward! |
Beta Was this translation helpful? Give feedback.
-
After some thought, I realized that directly modifying this project would result in high coupling and potentially "pollute" the template. So, I decided to create a separate CLI project instead. Later, I discovered that this could be entirely generalized into a universal project for creating templates via Thus, I went ahead and built a generalized tool, which I named Kern (short for "Kernel," emphasizing the tool's foundational flexibility). However, it is still a very simple demo at this stage. It seems to be working correctly already. You can use my repository as an example. I've already published it to npm. You can try it out using |
Beta Was this translation helpful? Give feedback.
-
Tomorrow, I'll continue to improve kern. Once it’s fully built, we’ll only need to add a template.config.json file in the template project to enable modular creation of template projects. 🥳 |
Beta Was this translation helpful? Give feedback.
-
This sounds great! Looking forward! But apart for files inclusion/ exclusion, we may also need to run some scripts to update config files based on user selection? |
Beta Was this translation helpful? Give feedback.
-
Yes, it seems that we also need to allow users to utilize some scripts for flexible expansion. This might require some thoughtful design. |
Beta Was this translation helpful? Give feedback.
-
BTW why not use existing geenrators for this pupose? like this one here, its maintained and covers many cases: https://github.com/plopjs/plop |
Beta Was this translation helpful? Give feedback.
-
It looks pretty good. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, this template is not yet able to cleanly and quickly set up a new project if I don't need to use certain pages, such as the options page or side page.
It might be worth considering using a CLI tool to initialize the project, allowing users to select which features they need, such as options, side pages, etc. Additionally, specific configurations could be added through a CLI command like
cli-name add options-page
.Beta Was this translation helpful? Give feedback.
All reactions