HipsterBrown / xs-dev

The quickest way for getting started with JS on devices
https://xs-dev.js.org
MIT License
41 stars 13 forks source link

feat: initialize new projects from example as template #38

Closed HipsterBrown closed 2 years ago

HipsterBrown commented 2 years ago

See https://github.com/HipsterBrown/xs-dev/issues/32#issuecomment-1080937811 and https://github.com/HipsterBrown/xs-dev/issues/32#issuecomment-1081009895 for more details.

Example usage:

xs-dev init my-mqtt --example mqttbasic
Generating Moddable project "my-mqtt" from mqttbasic example

Allow for selecting example project base:

xs-dev init my-project --example

Display subset of matching examples if direct match is not found:

xs-dev init my-project --example http