File tree Expand file tree Collapse file tree
v4-cokapi/backends/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33all :
44 jshint server.js && node server.js --host 0.0.0.0 --port 30035
55
6+ deps :
7+ npm install websocket optimist
8+
69prod :
710 # jshint server.js && forever -l togetherjs_server.log server.js --host 0.0.0.0 --port 30035
811 # on Linode:
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ diffall:
2020 jshint jslogger.js && python golden_test.py --diffall
2121
2222# run this before creating any Docker containers
23+ # super weird -- need eval@0.1.0 or else line numbers don't show up on syntax errors!
2324deps :
24- npm install eval underscore minimist source-map typescript
25+ npm install eval@0.1.0 underscore minimist source-map typescript@1.4
2526 tar -xvf node-v6.0.0-linux-x64.tar.xz
Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ TypeScript TODOs:
8787/* global Debug */
8888"use strict" ;
8989
90+ // super weird -- need eval@0.1.0 or else line numbers don't show up on syntax errors!
91+ // A HA! see this option in the vm module (https://nodejs.org/api/vm.html),
92+ // which the new version of eval turns to false:
93+ // displayErrors: if true, on error, attach the line of code that
94+ // caused the error to the stack trace. Applies only to syntax errors
95+ // compiling the code; errors while running the code are controlled by
96+ // the options to the script's methods.
9097var _eval = require ( 'eval' ) ;
9198var util = require ( 'util' ) ;
9299var fs = require ( 'fs' ) ;
You can’t perform that action at this time.
0 commit comments