mirror of
https://github.com/pebble-dev/clay.git
synced 2026-09-05 16:47:37 -04:00
Merge pull request #27 from pebble/fix-dist
Get rid of dist/clay.js and use GitHub releases instead
This commit is contained in:
@@ -27,3 +27,5 @@ build/Release
|
|||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
tmp
|
tmp
|
||||||
|
|
||||||
|
dist
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ Clay will by default automatically handle the 'showConfiguration' and 'webviewcl
|
|||||||
|
|
||||||
Clay will eventually be built into the Pebble SDK. However, while it is still in beta you will need to follow the steps shown below:
|
Clay will eventually be built into the Pebble SDK. However, while it is still in beta you will need to follow the steps shown below:
|
||||||
|
|
||||||
1. Download the Clay distribution file from: [dist/clay.js](dist/clay.js).
|
1. Download the **clay.js** distribution file from the [latest release](releases/latest).
|
||||||
2. Drop `clay.js` in your project's `src/js` directory.
|
2. Drop `clay.js` in your project's `src/js` directory.
|
||||||
3. Create a JSON file called `config.json` and place it in your `src/js` directory.
|
3. Create a JSON file called `config.json` and place it in your `src/js` directory.
|
||||||
4. In order for JSON files to work you may need to change a line in your `wscript` from `ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob('src/js/**/*.js'))` to `ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob(['src/js/**/*.js', 'src/js/**/*.json']))`.
|
4. In order for JSON files to work you may need to change a line in your `wscript` from `ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob('src/js/**/*.js'))` to `ctx.pbl_bundle(binaries=binaries, js=ctx.path.ant_glob(['src/js/**/*.js', 'src/js/**/*.json']))`.
|
||||||
@@ -27,7 +27,7 @@ Clay will eventually be built into the Pebble SDK. However, while it is still in
|
|||||||
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
|
||||||
|
|
||||||
1. Create a new JavaScript file called `clay.js`.
|
1. Create a new JavaScript file called `clay.js`.
|
||||||
2. Copy the contents of the Clay distribution file from [dist/clay.js](dist/clay.js) into your newly created `clay.js` file.
|
2. Copy the contents from the **clay.js** distribution file found in the [latest release](releases/latest) into your newly created `clay.js` file.
|
||||||
3. Create another JavaScript file called `config.js` with the following content. This will act as your config's root array element, from which the rest of the page is built up:
|
3. Create another JavaScript file called `config.js` with the following content. This will act as your config's root array element, from which the rest of the page is built up:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|||||||
Vendored
-3
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user