0.0.6 • Published 10 years ago

nw-coffee v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

nw-coffee

A module that let you use coffeescript easily with node-webkit.

How to use

 <script type="text/javascript">
    require("nw-coffee")("./src/app.coffee");
 </script>

./src/app.coffee is the entry point of your app. From here you can use require() to import commonjs modules in the webkit context and requireNode() to import module in the node context.

This module uses browserify and coffeeify under the hood to import modules in webkit.

All the operations are made on the fly when you reaload node-webkit. You should thus not keep this in production but pre-compile files instead.

Sourcemaps are enabled (sometimes it does not show after startup but it works after a refresh).