kipr / harrogate

The IDE for the Wombat
GNU General Public License v3.0
5 stars 10 forks source link

[RFR] Porting an app resource to javascript #38

Closed jsoutherland closed 8 years ago

jsoutherland commented 8 years ago

This demonstrates the errors that are typical when converting coffeescript app resources to javascript.

josh@kipr:~/got/harrogate$ gulp
User settings file path: /var/local/KIPR Software Suite/users.json
[15:00:40] Using gulpfile ~/got/harrogate/Gulpfile.js
[15:00:40] Starting 'shared_views'...
[15:00:40] Starting 'shared_styles'...
[15:00:40] Starting 'shared_resources'...
[15:00:40] Starting 'scripts'...
[15:00:40] Starting 'bootstrap'...
[15:00:40] Starting 'jquery'...
[15:00:40] Starting 'font-awesome'...
[15:00:40] Starting 'code-mirror'...
[15:00:40] Starting 'code-mirror-themes'...
[15:00:40] Starting 'app_views'...
[15:00:40] Starting 'watch'...
[15:00:40] Finished 'watch' after 147 ms
[15:00:41] Finished 'shared_styles' after 815 ms
[15:00:41] Finished 'shared_resources' after 812 ms
[15:00:41] Finished 'code-mirror' after 757 ms
[15:00:42] Finished 'jquery' after 1.6 s
[15:00:42] Finished 'shared_views' after 1.9 s

/home/josh/got/harrogate/node_modules/coffee-script/lib/coffee-script/coffee-script.js:40
        throw helpers.updateSyntaxError(err, code, options.filename);
                      ^
[stdin]:1:1: error: reserved word 'var'
var code_mirror, io;
^^^
jsoutherland commented 8 years ago

This is broken only in gulp so I will continue porting to JS for now