Skip to content

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

License

Notifications You must be signed in to change notification settings

Apoxx/nw-coffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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',{reload: true});
 </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 modules 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 reload 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).

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published