There is probably a util that we can use to convert all the coffee files into es6. i did a POC using decaffeinate but it would require more work to update the gruntfile to use eslint and another templating engine that is similar to eco https://github.com/FieldDB/dative/pull/17
for https://github.com/FieldDB/FieldDB/issues/2173
Before Node 8 and Node 10: https://travis-ci.org/github/FieldDB/dative/jobs/708989910
After Node 12 : https://travis-ci.org/github/FieldDB/dative/jobs/708989911
List of impacted files:
Root cause appears that all of these files have nested
<%
when i remove it or workaround it, the file is able to compile:I think i found that i can reproduce this in eco's test suites using 1.0.3 but using the latest version v1.1.0-rc-3 works so upgrading to the latest might be a direction we can go in but it requires an update to grunt-eco to handle the breaking change where compile now returns a function
Option 1: fix the compile issue
coffeescript
instead ofcoffee-script
https://github.com/caolan/nodeunit/pull/358/filesOption 2: check in the dist
If we cant build on the server, we can build using node 10 and then check in the dist and serve those using node 12 https://github.com/FieldDB/dative/pull/16
Option 3: convert from coffee to js
There is probably a util that we can use to convert all the coffee files into es6. i did a POC using decaffeinate but it would require more work to update the gruntfile to use eslint and another templating engine that is similar to eco https://github.com/FieldDB/dative/pull/17