magic-script-cli icon indicating copy to clipboard operation
magic-script-cli copied to clipboard

Use published samples for init command.

Open creationix opened this issue 7 years ago • 3 comments

Right now we have a single inline template we use for the init command, but it would be nice if we could publish template apps to npm or github and people could fork them and the CLI tool would let you choose from these.

creationix avatar Feb 01 '19 21:02 creationix

Maybe we could make "samples" a part of the tool.

Like e.g. one could have an option to say magic-script init template=sample-ui-button using a "short name". It will fetch a code from https://github.com/magic-script/magic-script-samples.git that is related to "sample-ui-button" sample.

Or for any other case one could say magic-script init template=https://github.com/somebody/some-app-name.git. And it will try to initialize from an arbitrary git repo.

Thoughts?

leoz avatar Feb 01 '19 21:02 leoz

I like it. We can do this after we finalize our template format. I think it's in flux too much recently. It's a really good idea. Simplifies the cli a little. 

kpiascik avatar Feb 01 '19 22:02 kpiascik

MXSCOMP-201

grozdanov avatar Mar 26 '20 21:03 grozdanov