This commit is contained in:
Jenny Diomidova 2025-12-09 15:47:01 +01:00
parent d20c12fec6
commit eff33f57a1
4 changed files with 23 additions and 0 deletions

7
package-lock.json generated
View File

@ -10,6 +10,7 @@
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"dependencies": { "dependencies": {
"@rebble/sdk-c-utils": "^1.2.3", "@rebble/sdk-c-utils": "^1.2.3",
"pebble-clay": "^1.0.4",
"pebble-cpp": "^0.3.1" "pebble-cpp": "^0.3.1"
} }
}, },
@ -19,6 +20,12 @@
"integrity": "sha512-24b/qtVpviGJyVhvQYTsFojRn30YcVSepeCVbi7AqrNPfitGNC2EqwLLpKZuH1QTnE6UcTgjLrh6yda7p6UvAg==", "integrity": "sha512-24b/qtVpviGJyVhvQYTsFojRn30YcVSepeCVbi7AqrNPfitGNC2EqwLLpKZuH1QTnE6UcTgjLrh6yda7p6UvAg==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/pebble-clay": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/pebble-clay/-/pebble-clay-1.0.4.tgz",
"integrity": "sha512-/rXxmltdW8JyohDzXINdea+d2wnFJVNFiTXfuZsKpySURZSCFMMucX9sZPZvbHnEA4xFINM4iicyhBbvY4ALfw==",
"license": "MIT"
},
"node_modules/pebble-cpp": { "node_modules/pebble-cpp": {
"version": "0.3.1", "version": "0.3.1",
"resolved": "https://registry.npmjs.org/pebble-cpp/-/pebble-cpp-0.3.1.tgz", "resolved": "https://registry.npmjs.org/pebble-cpp/-/pebble-cpp-0.3.1.tgz",

View File

@ -9,6 +9,7 @@
"private": true, "private": true,
"dependencies": { "dependencies": {
"@rebble/sdk-c-utils": "^1.2.3", "@rebble/sdk-c-utils": "^1.2.3",
"pebble-clay": "^1.0.4",
"pebble-cpp": "^0.3.1" "pebble-cpp": "^0.3.1"
}, },
"pebble": { "pebble": {
@ -27,6 +28,7 @@
"messageKeys": [ "messageKeys": [
"dummy" "dummy"
], ],
"capabilities": [ "configurable" ],
"resources": { "resources": {
"media": [ "media": [
{ {

10
src/pkjs/config.js Normal file
View File

@ -0,0 +1,10 @@
module.exports = [
{
"type": "heading",
"defaultValue": "Example Header Item"
},
{
"type": "text",
"defaultValue": "Example text item."
}
];

4
src/pkjs/index.js Normal file
View File

@ -0,0 +1,4 @@
var Clay = require('pebble-clay');
var clayConfig = require('./config');
var clay = new Clay(clayConfig);
console.log('Loaded clay!');