Software Archive
Read-only legacy content
17061 Discussions

Coffeescript support?

Andrew_K_3
Beginner
172 Views

Wanted!

  • For building app
  • For debug with sourcemap
  • For autocompletion

 

0 Kudos
2 Replies
Elroy_A_Intel
Employee
172 Views

Thank you for your feedback. I have submitted your request to the Intel XDK engineering team.

0 Kudos
John_S_14
Beginner
172 Views

Had the same question (and surprised that CoffeeScript isn't wildly more popular for these new IoT devices !?)

Using CoffeeScript for app sources (Using Intel XDK my target is Edison) is as easy as

First install CoffeeScript (globally if you wish)

root@edison:~# npm install --global coffee-script

 

Your main.js

require('coffee-script/register')
module.exports=require('./start')

 

Your CoffeeScript source (start.coffee) having initial entry routine

utils = require 'util'
utils.log "Hello Macchiato !\n\n#{utils.inspect process.mainModule}"

 

0 Kudos
Reply