Using Packages¶
To use ZPM packages you should have the following directory structure:
/.package.json
: Package configuration./extern/
: Reserved for external packages./assets/
: Reserved for external assets./premake5.lua
: Describing how your project should be built./*
: Other files and directories.
Optionally
.registries.json
: Adding your own registries..manifest.json
: Adding your own packages..assets.json
: Adding your own assets..modules.json
: Adding your own modules.
.package.json¶
In the .package.json
you describe what dependencies (packages, modules, and
assets) your own project uses.
extern¶
In this folder the external packages downloaded by ZPM are stored.
assets¶
In this folder the external assets downloaded by ZPM are stored.
Premake5 Usage¶
Since ZPM only download dependencies for you, you should define how to use them.