Skip to content

Commit

Permalink
add build example to export to correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
maybeanerd committed Dec 7, 2021
1 parent 39c3a11 commit 3cd9c39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions typescript/sharedLib/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
5 changes: 2 additions & 3 deletions typescript/sharedLib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 3cd9c39

Please sign in to comment.