flowhub / jsjob

Run arbitrary JavaScript code as jobs, in a browser-based sandbox.
MIT License
18 stars 0 forks source link

Remove Coffeescript dependency #37

Open jimmywarting opened 7 years ago

jimmywarting commented 7 years ago

replace it with es7

jonnor commented 7 years ago

I'm happy to accept a pull request which compiles the CoffeeScript to JS at build time. Then the NPM package will contain plain-JS for projects to use, and the coffee-script dependency can be moved to dev-dependencies.

Also happy to include an example written in ES6 (ES7 is not supported in PhantomJS yet).

jonnor commented 7 years ago

Also note that one can use JsJob in Node.js from plain JavaScript today (ES6 or whatever your node version supports). One example here: https://github.com/wikihouseproject/buildx-editor/blob/master/src/nestingserver.js

And the JsJob which runs inside is always standard JavaScript.