Last active
April 8, 2018 09:13
-
-
Save molda/eedd7c5abd2cc79de4ee7fe1bbd4e420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env node | |
var Path = require('path'); | |
if (process.argv[2] === '--help' || process.argv[2] === '-h') { | |
console.log(''); | |
console.log('Runs in debug mode on port 8000 by default'); | |
console.log('Add port number to run on different port'); | |
console.log('Example: `$ totald 3000`'); | |
console.log(''); | |
return; | |
} | |
module.paths.unshift(Path.join(process.cwd(), '../', 'node_modules')); | |
module.paths.unshift(Path.join(process.cwd(), 'node_modules')); | |
require('total.js/debug')(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment