forked from jasonrhodes/hubot-cah-fork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54d783d
commit 2d2ba77
Showing
7 changed files
with
1,244 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
fs = require 'fs' | ||
path = require 'path' | ||
|
||
module.exports = (robot, scripts) -> | ||
scriptsPath = path.resolve(__dirname, 'src') | ||
fs.exists scriptsPath, (exists) -> | ||
if exists | ||
for script in fs.readdirSync(scriptsPath) | ||
if scripts? and '*' not in scripts | ||
robot.loadFile(scriptsPath, script) if script in scripts | ||
else | ||
robot.loadFile(scriptsPath, script) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "hubot-cah", | ||
"description": "Hubot-managed Cards Against Humanity.", | ||
"version": "0.0.1", | ||
"author": "Cory Metcalfe <[email protected]>", | ||
"license": "MIT", | ||
"keywords": [ | ||
"hubot", | ||
"hubot-scripts" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/coryallegory/hubot-cah" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/coryallegory/hubot-cah/issues" | ||
}, | ||
"dependencies": { | ||
"coffee-script": "~1.6" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"chai": "*", | ||
"sinon-chai": "*", | ||
"sinon": "*" | ||
}, | ||
"main": "index.coffee", | ||
"scripts": { | ||
"test": "script/test" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Make sure everything is development forever | ||
export NODE_ENV=development | ||
|
||
# Load environment specific environment variables | ||
if [ -f .env ]; then | ||
source .env | ||
fi | ||
|
||
if [ -f .env.${NODE_ENV} ]; then | ||
source .env.${NODE_ENV} | ||
fi | ||
|
||
npm install | ||
|
||
# Make sure coffee and mocha are on the path | ||
export PATH="node_modules/.bin:$PATH" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# bootstrap environment | ||
source script/bootstrap | ||
|
||
mocha --compilers coffee:coffee-script |
Oops, something went wrong.