Skip to content

Commit ee0b0f2

Browse files
committed
add readme files
1 parent 5173e1c commit ee0b0f2

File tree

4 files changed

+44
-99
lines changed

4 files changed

+44
-99
lines changed

bin/README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
BangleApps Utilities
2+
====================
3+
4+
* `sanitycheck.js` - this is run as a CI check (or when `npm test` is used) and checks for common issues with apps or their `metadata.json`
5+
* `create_apps_json.sh` - create the `apps.json` file - this is an aggregation of all `metadata.json` files and is used to speed up loading of BangleApps (or where the server it is hosted on doesn't support directory listing)
6+
* `find_banglejs1_only_apps.sh` - show apps that only work on Bangle.js 1 (and not 2)
7+
* `firmwaremaker_c.js` - create the binary blob needed for the Bangle.js firmware (containing default apps)
8+
* `pre-publish.sh` - this is run before we publish to https://banglejs.com/apps/ - it works out how recently all the apps were updated and writes it to `appdates.csv`
9+
10+
**You should also check out https://github.com/espruino/EspruinoAppLoaderCore/tree/master/tools** (available in `core/tools` in this repo) - this contains tools for handling languages, as well as a command-line based app loader
11+
12+
Related to Linting code:
13+
14+
* `bulk-update-apps.mjs` - use this script to bump the version of many apps with the same changes
15+
* `exempt-lint.mjs` - exempt an app file from a specific eslint rule
16+
* `sync-lint-exemptions.mjs` - Run this to ensure that the lint exemptions are all valid. If any of the exempt app files have been changed, this script will remove the exemption for that file.
17+
18+
Prototypes:
19+
20+
* `runapptests.js` - **PROTOTYPE** - runs tests for apps (where defined) in an emulator so apps can be tested offline
21+
* `thumbnailer.js` - **PROTOTYPE** - runs all apps in an emulator and automatically outputs thumbnails for them
22+
23+
Legacy:
24+
25+
* `firmwaremaker.js` - **LEGACY** create a JS file containing all the commands needed to write firmware to a Bangle. Was used for Bangle.js 1 factory programming

bin/create_app_supports_field.js

-99
This file was deleted.

bin/find_banglejs1_only_apps.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd `dirname $0`/..
3+
find apps -name metadata.json | xargs -I {} grep '\["BANGLEJS"\]' -A 100 -B 100 {}

lang/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Localisation
2+
=============
3+
4+
Any apps which have Strings in which are prefixed with `/*LANG*/` will be scanned, and if the
5+
language is set in the app loader the string will be replaced with a translation from the JSON
6+
in this directory.
7+
8+
JSON in `unicode-based` contains characters that can't be rendered by the default font
9+
in Bangle.js. The `language_render.js` tool (below) renders the text to bitmaps and then
10+
writes them into the corresponding JSON file in this directory, so that the bitmaps (rather than
11+
just text) are included in apps instead.
12+
13+
Check out https://github.com/espruino/EspruinoAppLoaderCore/tree/master/tools (available in `core/tools` in this repo)
14+
15+
* `language_scan.js` - scan for unhandled `/*LANG*/` strings and automatically translate them
16+
* `language_render.js` - renders the JSON translations in the `unicode-based` folder to bitmaps, and writes them into the corresponding JSON file in this directory (see above)

0 commit comments

Comments
 (0)