Installing Packages
Install a manifest package
A manifest package is a package that is listed in the manifest.yml
. To install a manifest package, run the following command:
clockwork install <package-name>
For a full list of packages in the manifest, see Packages in the manifest.
Install a package from git
clockwork install <git-url>
Packages installed from git are not verified by Clockwork and do not meet our requirements, install at your own risk.
Listing packages
You can view all your packages by running:
clockwork packages
This will list all packages in clockwork.yml
and their versions.
Importing Packages
Clockwork works best in combination with XML Preprocessor, so you can import components into your XML code:
<WatchFace>
<Import href="packages/my-awesome-package/component.xml"/>
</WatchFace>
In this example, we import the component from packages
, where Clockwork stores all your downloaded packages, currently this is the only way to import components from packages, but that will change in the future. Visit XML Preprocessor’s documentation on <Import/>
to learn more.