mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
Merge branch 'master' into fix-readme-getsetting-link
This commit is contained in:
@@ -24,7 +24,8 @@ Clay will eventually be built into the Pebble SDK. However, while it is still in
|
|||||||
|
|
||||||
# Getting Started (CloudPebble)
|
# Getting Started (CloudPebble)
|
||||||
|
|
||||||
Clay will eventually be built into CloudPebble. However while it is still in beta, you will need to follow some steps
|
Clay will eventually be built into CloudPebble. However while it is still in beta, you will need to follow some steps.
|
||||||
|
NOTE these are similar to using the SDK but instead of a data file called config.json, a javascript file config.js is required.
|
||||||
|
|
||||||
1. Create a new JavaScript file called `clay.js`.
|
1. Create a new JavaScript file called `clay.js`.
|
||||||
2. Copy the contents from the **clay.js** distribution file found in the [latest release](https://github.com/pebble/clay/releases/latest) into your newly created `clay.js` file.
|
2. Copy the contents from the **clay.js** distribution file found in the [latest release](https://github.com/pebble/clay/releases/latest) into your newly created `clay.js` file.
|
||||||
@@ -52,6 +53,8 @@ Your root element **must** be an array. This represents the entire page. Inside
|
|||||||
|
|
||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
|
NOTE for config.js (rather than config.json) a leading `module.exports =` is required.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pebble-clay",
|
"name": "pebble-clay",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "Pebble Config Framework",
|
"description": "Pebble Config Framework",
|
||||||
"main": "dist/clay.js",
|
"main": "dist/clay.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
Reference in New Issue
Block a user