Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Coffeescript support?

Andrew_K_3
Beginner
436 Views

Wanted!

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

 

0 Kudos
2 Replies
Elroy_A_Intel
Employee
436 Views

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

0 Kudos
John_S_14
Beginner
436 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