Skip to content

Commit

Permalink
Merge pull request #20 from safareli/dev
Browse files Browse the repository at this point in the history
fix docs; fix release
  • Loading branch information
safareli authored Jul 18, 2016
2 parents 4a1cdab + 6f171a9 commit 507f879
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Free implements [Functor](https://github.com/fantasyland/fantasy-land#functor),
- Free.prototype.`graft :: Free i a -> (i -> Free z a) -> Free z a`
- Free.prototype.`foldMap :: Monad m => Free i a -> (i -> m a) -> (a -> m a) -> m a`

### Free structure function equivalencies
### Free structure function equivalencies:

- `graft(f) ≡ foldMap(f, Free.of)`
- `hoist(f) ≡ foldMap(compose(liftF, f), Free.of)`
Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Combination of a free applicative functor and free monad",
"main": "dist/free.js",
"scripts": {
"lint": "eslint --no-ignore .eslintrc.js --ext js src test *.js ",
"lint": "eslint --no-ignore .eslintrc.js --ext js src test tools *.js",
"watch": "nodemon -q -x 'tap -R spec test/*.js'",
"test": "tap test/*.js --coverage",
"coverage": "tap --coverage-report=lcov --no-browser && codecov",
Expand Down Expand Up @@ -75,12 +75,7 @@
]
},
"release": {
"analyzeCommits": {
"path": "conventional-recommended-bump",
"additional": {
"preset": "angular"
}
}
"analyzeCommits": "./misc/releaseAnalyzeCommits"
},
"config": {
"commitizen": {
Expand Down
7 changes: 7 additions & 0 deletions tools/releaseAnalyzeCommits.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const conventionalRecommendedBump = require('conventional-recommended-bump')

module.exports = (options, parserOpts, cb) => conventionalRecommendedBump(
Object.assign({}, options, { preset: 'angular' }),
parserOpts,
(err, res) => cb(err, res != null ? res.releaseAs : res)
)

0 comments on commit 507f879

Please sign in to comment.