Skip to content

Commit

Permalink
Merge pull request #31 from hubotio/javascript
Browse files Browse the repository at this point in the history
Javascript
  • Loading branch information
gr2m authored Jun 29, 2017
2 parents d1b65bb + b093760 commit b21dedf
Show file tree
Hide file tree
Showing 13 changed files with 224 additions and 199 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
.nyc_output/
coverage
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
language: node_js
node_js:
- "0.11"
- "0.10"
sudo: false
notifications:
email: false
email: false
node_js:
- "8" # stable
- "6" # LTS
- "4" # maintenance
before_script:
- npm prune
after_success:
- npm run coverage
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
40 changes: 0 additions & 40 deletions Gruntfile.js

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[![Build Status](https://travis-ci.org/hubotio/hubot-redis-brain.svg?branch=master)](https://travis-ci.org/hubotio/hubot-redis-brain) [![Coverage Status](https://coveralls.io/repos/github/hubotio/hubot-redis-brain/badge.svg?branch=master)](https://coveralls.io/github/hubotio/hubot-redis-brain?branch=master)

# hubot-redis-brain

A hubot script to persist hubot's brain using redis

See [`src/redis-brain.coffee`](src/redis-brain.coffee) for full documentation.
See [`src/redis-brain.js`](src/redis-brain.js) for full documentation.

## Installation

Expand Down Expand Up @@ -68,4 +70,4 @@ is added to hubot-redis-brain (or hubot-redis-brain needs to be updated to look
If you are using [Twemproxy](https://github.com/twitter/twemproxy) to cluster redis,
you need to turn off the redis ready check which uses the unsupported INFO cmd.

`REDIS_NO_CHECK = 1`
`REDIS_NO_CHECK = 1`
12 changes: 0 additions & 12 deletions index.coffee

This file was deleted.

8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict'

const path = require('path')

module.exports = (robot) => {
const scriptsPath = path.resolve(__dirname, 'src')
robot.loadFile(scriptsPath, 'redis-brain.js')
}
44 changes: 28 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,51 @@
{
"name": "hubot-redis-brain",
"description": "A hubot script to persist hubot's brain using redis",
"version": "0.0.4",
"version": "0.0.0-development",
"publishConfig": {
"tag": "next"
},
"author": "Josh Nichols <[email protected]>",
"license": "MIT",
"keywords": "hubot, hubot-scripts",
"keywords": [
"hubot",
"hubot-scripts"
],
"repository": {
"type": "git",
"url": "git://github.com/hubot-scripts/hubot-redis-brain.git"
"url": "https://github.com/hubotio/hubot-redis-brain.git"
},
"engines": {
"node": "> 4.0.0"
},
"bugs": {
"url": "https://github.com/hubot-scripts/hubot-redis-brain/issues"
"url": "https://github.com/hubotio/hubot-redis-brain/issues"
},
"dependencies": {
"redis": "~2.6.x"
"redis": "^2.7.1"
},
"peerDependencies": {
"hubot": ">=2 <10 || 0.0.0-development"
},
"devDependencies": {
"chai": "^2.1.1",
"coffee-script": "1.6.3",
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-watch": "~0.6.1",
"grunt-mocha-test": "~0.12.7",
"grunt-release": "~0.11.0",
"hubot": "2.x",
"matchdep": "~0.3.0",
"coveralls": "^2.13.1",
"hubot": "^3.0.0",
"hubot-mock-adapter-v3": "^1.0.0",
"matchdep": "^0.3.0",
"mocha": "^2.1.0",
"nyc": "^11.0.3",
"proxyquire": "^1.8.0",
"sinon": "^1.13.0",
"sinon-chai": "^2.7.0"
"sinon-chai": "^2.7.0",
"standard": "^10.0.2",
"semantic-release": "^6.3.6"
},
"main": "index.coffee",
"main": "index.js",
"scripts": {
"test": "grunt test"
"pretest": "standard",
"test": "nyc --reporter=html --reporter=text mocha",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
}
}
18 changes: 0 additions & 18 deletions script/bootstrap

This file was deleted.

6 changes: 0 additions & 6 deletions script/test

This file was deleted.

91 changes: 0 additions & 91 deletions src/redis-brain.coffee

This file was deleted.

Loading

0 comments on commit b21dedf

Please sign in to comment.