Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tytydraco/zepp-ts
Compile ZeppOS projects in TypeScript.
https://github.com/tytydraco/zepp-ts
Last synced: 3 months ago
JSON representation
Compile ZeppOS projects in TypeScript.
- Host: GitHub
- URL: https://github.com/tytydraco/zepp-ts
- Owner: tytydraco
- License: bsd-2-clause
- Created: 2022-12-09T05:30:44.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T06:06:12.000Z (almost 2 years ago)
- Last Synced: 2024-04-08T03:13:18.746Z (7 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zeppos - zepp-ts - Build tool that use typescript to develop zeppos-app. (Libraries / Tool)
README
# zepp-ts
Compile ZeppOS projects in TypeScript.# How it works
We accomplish this by setting up the project such that we develop with TypeScript in `src`. This directory should have the necessary files for a `zeus` build (`app.json`, `assets`, etc.). The `package.json` and `node_modules` should remain top-level.NOTE: JSON references to source files should still point to `*.js` files, **NOT** `*.ts`.
Then, we run `teus`, which simply compiles your TypeScript code into JavaScript, copies over the other source files into the `dist` directory.
# Steps
1. Set the `module` to `ES6`, `target` to `es6`, and `moduleResolution` to `Node`. This ensures that external libraries are compiled in properly.
# Example
* `teus; cd dist; zeus build`