2017-04-24 18:03:30 +00:00
{
2018-02-07 04:02:52 +00:00
"script": [
"set -e",
"if ! [ \"$debug\" == true ]; then ",
2018-03-01 21:42:18 +00:00
" node \"$file\" $args",
2018-02-09 04:02:03 +00:00
"elif \"$(node -p 'parseInt(process.version.slice(1)) < 7')\" == true; then",
2018-02-07 04:02:52 +00:00
" FLAGS=\"--nocrankshaft --nolazy --debug-brk=$debugport\"",
" if node --nodead_code_elimination -e '' &> /dev/null; then",
" FLAGS=\"$FLAGS --nodead_code_elimination\"",
" fi",
2018-03-01 21:42:18 +00:00
" node $FLAGS \"$file\" $args",
2018-02-07 04:02:52 +00:00
"else",
2018-03-01 21:42:18 +00:00
" node --inspect-brk=$debugport \"$file\" $args",
2018-02-07 04:02:52 +00:00
"fi"
],
2017-04-24 18:03:30 +00:00
"debugger": "v8",
"debugport": 15454,
"selector": "source.js",
"info": "Your code is running at \\033[01;34m$url\\033[00m.\n\\033[01;31mImportant:\\033[00m use \\033[01;32mprocess.env.PORT\\033[00m as the port and \\033[01;32mprocess.env.IP\\033[00m as the host in your scripts!\n"
}