theia-ide / sprotty

A next-gen web-based graphics framework
Apache License 2.0
138 stars 23 forks source link

JavaScript build without the examples? #128

Closed erdalkaraca closed 7 years ago

erdalkaraca commented 7 years ago

I have no experiences with TypeScript et al. Is there a build with just the sprotty lib to be used in a pure JavaScript project or how to build the sprotty lib without the examples? Thanks.

spoenemann commented 7 years ago

The build options are described in the scripts section of package.json:

JanKoehnlein commented 7 years ago

A bit more about this: TypeScript transpiles to JavaScript, so the library can be consumed by pure JavaScript clients. It also creates a type definition file, such that TypeScript clients can leverage the static type checking.

If you don't want to build sprotty yourself, you can use the pre-built library of the client part including type definitions and source maps from npm: sprotty at npm, usually by listing a dependency in your package.json. It is up to you to write your code in JS, TypeScript, CoffeeScript or whatever..