DevelopersClockwork.yaml

Clockwork.yaml

clockwork.yaml is a file that contains metadata about your project.

Example

clockwork.yaml
name: my-package
description: My awesome clockwork package
version: 1.0.0 # github release tag
# Watch Face Format version that's required for installing your package
watchFaceFormatVersion: 2 # unspecified or * for any version

Starting with 1.1.6, Clockwork accepts both clockwork.yml and clockwork.yaml as package files.

Fields

FieldDescription
nameThe name of the package.
descriptionA short description of the package.
versionThe version of the package. Must be a valid GitHub release tag.
watchFaceFormatVersionThe version of Watch Face Format required to use the package. If unspecified or *, any version is allowed.
scriptsScripts to run when the package is installed or updated.

Currently watchFaceFormatVersion only warns the user and doesn’t prevent installation of the package. This will change in the future.

Scripts

FieldDescription
postinstallRun when the package is first installed.
postupdateRun when the package is updated, may be run even if contents aren’t updated.

Example

clockwork.yaml
# ...
scripts:
  postinstall: echo "Package installed!"
  postupdate: echo "Package updated!"