Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.