You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We created a CLI to generate a React project. So now, our template is able to support generating multiple React templates e.g. CRA, Vite, NextJS, RemixJS
But now, we are putting the add-ons logic into cli-tool package and add-ons templates (base code, config files) into each template package.
It might be better if we move add-ons templates to cli-tool package, the folder could be packages/cli-tool/template/addons. Then we just need to copy from here to the generated project. Make sure that the generated project has a common folder structure.
We can test each addon by generating a simple project and checking if it can be installed on the generated project.
What's next?
If you agree with this, then we might:
Create templates that have the similar folder structure
Use CLI to generate a project with option: --template=cra, --template=nextjs, --template=vite
Use CLI to install add-ons: install NPM package, copy files
Add a postProcess function to fix linter, commit, ...
The text was updated successfully, but these errors were encountered:
The the "CLI to install add-ons", I think we do not need to publish an NPM package, we can directly CURL the add-ons folder and extract it :D
I'm doing that to download the vite template :) The nice thing is that then we can test on a specific branch (just need to push the branch changes first).
Issue
cli-tool
package and add-ons templates (base code, config files) into each template package.cli-tool
package, the folder could bepackages/cli-tool/template/addons
. Then we just need to copy from here to the generated project. Make sure that the generated project has a common folder structure.What's next?
If you agree with this, then we might:
postProcess
function to fix linter, commit, ...The text was updated successfully, but these errors were encountered: