nanojsx / nano

🎯 SSR first, lightweight 1kB JSX library.
http://nanojsx.io
MIT License
1.46k stars 38 forks source link

[Feature Proposal] nano-jsx cli to provide better developer experience. #80

Open Shinyaigeek opened 2 years ago

Shinyaigeek commented 2 years ago

Motivation :fire:

Currently, mastering nano-jsx is a difficult task for a beginner web developer (I am not going to offend you).

To improve this situation, How about nano-jsx providing a cli?

Cli’s feature (?)

How about do you think about this? If it looks good, I want to start to work on this little by little.

yandeu commented 2 years ago

In my opinion all these command are a bit too high level for a nanojsx cli.

Everyone should use the style he prefers.


I can imagine adding simple low level elements like:

See: https://github.com/nanojsx/nano/tree/cli

Shinyaigeek commented 2 years ago

Well, I think it's a good idea to provide low layer functionality to help with initialization. It seems good that a third-party library uses it to provide some high layer functionality

hbroer commented 1 year ago

If you still think about this, I would suggest only to provide starter templates and simple configurations. The problem that I have with CLIs like react-create-app is that beginners don't learn how to setup the project and then depend on that tools. Refactoring out the "hidden magic" of CLI tools to get a project configuration to an explicit, actual and custom configurable state can even for experienced devs be a pain. It also is a problem in case of flexibility. I for example use Microbundle (Libs and WebComponents) and Webpack (SPAs) depending on the context of the project.