Skip to content
Snippets Groups Projects
Commit 9ac18407 authored by Travis Savo's avatar Travis Savo
Browse files

Adding CONTRIBUTING.MD

parent 57f7ab51
No related branches found
No related tags found
No related merge requests found
Pipeline #
language: node_js
node_js:
- "6"
script:
- npm test
require("coffee-script/register");
require("./src/driver");
Loading
Loading
@@ -5,11 +5,12 @@
"node": ">=6"
},
"description": "Malice",
"entrypoint":"index.js",
"main": "src/driver.coffee",
"bin": "coffee ./src/driver.coffee",
"scripts": {
"test": "istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- test -R spec --compilers coffee:coffee-script/register --require coffee-coverage/register-istanbul --debug",
"start": "coffee ./src/driver.coffee",
"start": "node index.js",
"compile": "coffee -c -o dist src",
"codacy": "cat ./coverage/lcov.info | ./node_modules/.bin/codacy-coverage -p .",
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info"
Loading
Loading
Loading
Loading
@@ -118,26 +118,28 @@ global.$driver.startDriver = ->
global.$driver.handleNewConnection socket
).listen 5555
console.log 'Server listening at port 5555\n'
setInterval global.$driver.save, 1000 * 60 * 10
 
global.$driver.load()
global.$driver.startDriver()
global.$game?.common?.startGame() if global.$game?.common?.startGame
setInterval global.$driver.save, 1000 * 60 * 10
repl.start(
prompt: '> ',
input: process.stdin,
output: process.stdout,
useGlobal:true
).on 'exit', ->
socket.end()
module.exports.repl = ->
repl.start(
prompt: '> ',
input: process.stdin,
output: process.stdout,
useGlobal:true
).on 'exit', ->
socket.end()
ignoredFiles = [
/src\/driver\.coffee/,
/src\/loader\.coffee/,
/src\/telnet\.coffee/
]
module.exports.sourceWatch = ->
stalker = watchr.open "./src", (changeType,filePath,fileCurrentStat,filePreviousStat) ->
try
if _(ignoredFiles).some (item)->
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment