Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fix(release): Adding semantic release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Aug 24, 2017
1 parent 1455200 commit 2525864
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- '8'
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# promwrap

Wraps modules, and other objects, full of callback functions in promises.

```javascript
let fun = (x, cb) => cb(null, x)
let _module = {fun, prop: 'test'}

test('test basics', async t => {
t.plan(4)
let mod = promwrap(_module)
t.same(mod.prop, 'test')
t.same(mod.prop, 'test')
t.same(await mod.fun('test1'), 'test1')
t.same(await promwrap(fun)('test2'), 'test2')
})
```
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promwrap",
"version": "0.1.0",
"version": "0.0.0-development",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,8 @@
"postcoverage": "codecov",
"precommit": "npm test",
"prepush": "npm test",
"commitmsg": "validate-commit-msg"
"commitmsg": "validate-commit-msg",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"keywords": [],
"author": "Mikeal Rogers <mikeal.rogers@gmail.com> (http://www.mikealrogers.com)",
Expand All @@ -24,6 +25,10 @@
"standard": "^10.0.2",
"tap": "^10.7.1",
"validate-commit-msg": "^2.14.0",
"semantic-release": "^6.3.6"
"semantic-release": "^7.0.2"
},
"repository": {
"type": "git",
"url": "https://github.com/mikeal/promwrap.git"
}
}

0 comments on commit 2525864

Please sign in to comment.