mirror of https://github.com/espruino/BangleApps
TypeScript: Refer to Espruino README
parent
8a3e6c2b8d
commit
0c2abfb7e1
|
@ -1,7 +1,10 @@
|
|||
# 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 below), although they are still a work-in-progress.
|
||||
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](https://github.com/espruino/Espruino/blob/master/TYPESCRIPT.md).
|
||||
|
||||
## Compilation
|
||||
|
||||
|
@ -21,13 +24,3 @@ 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.
|
||||
|
||||
## Generating types
|
||||
|
||||
To generate the types, ensure this repository and [Espruino](https://github.com/espruino/Espruino) are in the same folder. From the Espruino folder run:
|
||||
|
||||
```
|
||||
node scripts/build_types.js
|
||||
```
|
||||
|
||||
This will update the file in `types/main.d.ts`.
|
||||
|
|
Loading…
Reference in New Issue