Skip to content

Commit

Permalink
refactor: Move lib to src and add lint/babel
Browse files Browse the repository at this point in the history
  • Loading branch information
crookedneighbor committed Dec 12, 2015
1 parent 7d5840a commit 8eacb3f
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["es2015"]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
*.log
lib
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
28 changes: 24 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "haxfred-slack",
"version": "0.0.1",
"version": "0.1.0",
"description": "Integration between Haxfred and Slack",
"main": "./lib/haxfred-slack",
"scripts": {
"test": "mocha"
"test": "npm run lint && mocha",
"prepublish": "npm test && npm run build",
"build": "babel src --out-dir lib",
"lint": "standard --verbose | snazzy"
},
"repository": {
"type": "git",
Expand All @@ -23,12 +26,29 @@
"slack-client": "^1.4.0"
},
"devDependencies": {
"babel": "^5.5.6",
"babel-cli": "^6.3.17",
"babel-preset-es2015": "^6.3.13",
"babel-register": "^6.3.13",
"chai": "^2.2.0",
"haxfred": "haxiom/haxfred",
"mocha": "^2.2.4",
"rewire": "^2.3.4",
"sinon": "^1.14.1",
"sinon-chai": "^2.7.0"
"sinon-chai": "^2.7.0",
"snazzy": "^2.0.1",
"standard": "^5.4.1"
},
"standard": {
"globals": [
"describe",
"context",
"before",
"beforeEach",
"after",
"afterEach",
"it",
"expect",
"sandbox"
]
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
--colors
--reporter spec
--timeout 8000
--growl
--debug
--compilers js:babel/register
--check-leaks
--compilers js:babel-register
--require ./test/helpers/globals
--globals sandbox
--recursive
--recursive

0 comments on commit 8eacb3f

Please sign in to comment.