How to use coffee-script

Comprehensive coffee-script code examples:

How to use coffee-script.compile:

98
99
100
101
102
103
104
105
106
107
108


const allPaths = [
  {
    paths: ['ui'].concat(glob.sync('gems/plugins/*/app/coffeescripts')),
    glob: '*.coffee',
    transform: source => CoffeeScript.compile(source, {})
  },
  {
    paths: ['ui'].concat(glob.sync('gems/plugins/*/app/jsx')),
    glob: '*.js'