add build example to export to correct path

pull/1052/head
Sebastian Di Luzio 2021-12-07 21:46:28 +01:00
parent 39c3a11d9f
commit 3cd9c39525
2 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,11 @@
# BangleTS
A generic project setup for compiling apps from Typescript to Bangle.js ready, readable Javascript.
It includes types for *some* of the modules and globals that are exposed for apps to use.
It includes types for _some_ of the modules and globals that are exposed for apps to use.
The goal is to have types for everything, but that will take some time. Feel free to help out by contributing!
## Using the types
TODO
## Compilation
@ -21,7 +22,7 @@ npm ci
to install the project's build tools, and:
```
npm run build:app pathToYourApp.ts
npx tsc ./relativePathToYourApp/app.ts --outDir ./relativePathToYourApp/dist
```
To build your app. The last command will generate the `app.js` file containing the transpiled code for the BangleJS.

View File

@ -5,9 +5,8 @@
"main": "app.js",
"types": "app.d.ts",
"scripts": {
"build:testapp": "tsc src/app.ts",
"build:types": "tsc src/bangle.d.ts",
"build:app": "tsc"
"build:testapp": "tsc ./src/app.ts --outDir ./dist",
"build:types": "tsc ./src/bangle.d.ts"
},
"author": {
"name": "Sebastian Di Luzio",