Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kevoree/kevoree-ts-samples
Samples of kevoree-js projects written in TypeScript
https://github.com/kevoree/kevoree-ts-samples
Last synced: about 1 month ago
JSON representation
Samples of kevoree-js projects written in TypeScript
- Host: GitHub
- URL: https://github.com/kevoree/kevoree-ts-samples
- Owner: kevoree
- License: mit
- Created: 2015-03-10T16:37:48.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-12T13:17:26.000Z (over 8 years ago)
- Last Synced: 2024-04-10T22:30:19.900Z (9 months ago)
- Language: TypeScript
- Homepage:
- Size: 90.8 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### IMPORTANT CHANGES TO THIS REPO
:warning: This repo used to be **kevoree/kevoree-js.d.ts**
:warning: This repo is now only a list of Kevoree TypeScript sample projects.
If you want your Kevoree project to get TypeScript Definition files for the API, you just have to run `npm install kevoree-entities` because its `package.json` defines the `typings` correctly.
```ts
// sample
import { AbstractComponent, Callback } from 'kevoree-entities';class MyComp extends AbstractComponent {
tdef_version = 1;start(done: Callback): void {
// start-up method
done();
}stop(done: Callback): void {
// stop method
done();
}toString(): string {
return 'MyComp';
}
}
```Check out [kevoree-entities.d.ts](https://github.com/kevoree/kevoree-js-entities/blob/master/kevoree-entities.d.ts) for the FULL API description
### Samples
In order to test the projects, just run:
```sh
npm i
typings install
grunt kevoree
```
It will start a Kevoree runtime for the current project.