openupm-cli icon indicating copy to clipboard operation
openupm-cli copied to clipboard

openupm init

Open route1rodent opened this issue 4 years ago • 5 comments

I am missing this init command to create the Packages/manifest.json for you, like npm does, so I can start a new project from a complete empty folder.

Thanks for this amazing tool

route1rodent avatar Jan 20 '20 09:01 route1rodent

Agreed!

favoyang avatar Jan 20 '20 09:01 favoyang

what about also a openupm init --dev (or similar) for creating the package.json file of a new upm package? It could simplify the process, I remember it was not easy to understand how to fill that file properly, even with the Unity docs.

route1rodent avatar Jan 20 '20 10:01 route1rodent

Well, I would prefer openupm init for creating the package.json. And openupm init --manifest for the project manifest.

But I’m not sure what the manifest skeleton should contain, after all its already part of the process to create an Unity project.

favoyang avatar Jan 20 '20 10:01 favoyang

I am aware this is an old issue, however, Unity has a package in preview that does just this. They also create a default package.json so maybe that's something to take a look at?

The package in question can be found here: https://docs.unity3d.com/Packages/[email protected]/manual/index.html

Thundernerd avatar Jul 15 '20 07:07 Thundernerd

@Thundernerd, thanks for the reference.

This issue is a low priority on my list. Ideally, I could wrap yeoman as openupm init. It is made for writing a generator and has a built-in way to handle interaction (query package name, display name...).

favoyang avatar Jul 16 '20 16:07 favoyang