BangleApps/typescript
Rob Pilling 486ca23c4c Regenerate typescript / main.d.ts
This regenerates `main.d.ts` from [`build_types.js`] in the espruino repo, after [updates to optionals and other changes].

The main changes are new modules, and some older typings that might have not been regenerated since their jsdoc/comments changed.

New module typings:
- CC3000
- ESP8266
- Flash
- NetworkJS
- Storage
- TelnetServer
- WIZnet
- Wifi
- crypto
- dgram
- fs
- heatshrink
- http
- neopixel
- net
- tensorflow
- tls
- tv

[`build_types.js`]: 149a7f6bac/scripts/build_types.js
[updates to optionals and other changes]: https://github.com/espruino/Espruino/pull/2322
2023-02-09 18:15:42 +00:00
..
types Regenerate typescript / main.d.ts 2023-02-09 18:15:42 +00:00
.gitignore move package back within typescript 2021-12-10 20:52:17 +01:00
README.md TypeScript: Refer to Espruino README 2022-07-27 17:41:59 +02:00
package-lock.json Bump node-fetch from 3.2.9 to 3.2.10 in /typescript 2022-11-04 08:28:46 +00:00
package.json Bump node-fetch from 3.2.9 to 3.2.10 in /typescript 2022-11-04 08:28:46 +00:00

README.md

Bangle.ts

A generic project setup for compiling apps from Typescript to Bangle.js-ready, readable JavaScript.

The types are now automatically generated by a script (see here.

Compilation

Install npm and node.js if you haven't already. We recommend using a version manager like nvm, which is also referenced in the linked documentation. Make sure you are using node version 16 by running nvm use 16 and npm version ^8 by running npm -v. If the latter version is incorrect, run npm i -g npm@^8.

After having installed npm for your platform, open a terminal, and navigate into the /typescript folder. Then run:

npm ci

to install the project's build tools, and:

npm run build

To build all Typescript apps and widgets. The last command will generate the app.js files containing the transpiled code for the Bangle.js.