Skip to content

Updates #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ engines:
- javascript
ratings:
paths:
- src/index.js
- lib/**/*.js
- test/*.js
- test/helpers/*.js
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
module.exports = {
extends: [
'@metahub/eslint-config/es6-config',
'@metahub/eslint-config/node-config',
'@metahub/eslint-config/promise-config',
'@metahub/eslint-config/ava-config',
'@metahub/eslint-config/prettier-config',
],
extends: ['pretty/es6', 'pretty/node', 'pretty/promise', 'pretty/ava', 'pretty/prettier'],
parserOptions: {sourceType: 'module'},
};
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @vanduynslagerp
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,6 @@ $RECYCLE.BIN/
*.lnk

# End of https://www.gitignore.io/api/macos,windows,linux,node

yarn.lock
package-lock.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,15 @@
language: node_js
node_js:
- 8
cache:
directories:
- node_modules
branches:
only:
- master
- /^greenkeeper.*$/
git:
depth: 999
before_install:
- npm install -g greenkeeper-lockfile@1
before_script:
- npm prune
- greenkeeper-lockfile-update
script:
- npm run test
after_script:
- greenkeeper-lockfile-upload
after_success:
- if [ -n "${CODECOV_TOKEN:-}" ]; then npm run codecov; fi
- npm run coverage
- npm run semantic-release
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--install.no-lockfile true
22 changes: 11 additions & 11 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ const DEFAULT_RELEASE_RULES = require('./default/release-rules');
*/

/**
* Determine the type of release to create based on a list of commits.
*
* @param {Object} pluginConfig semantic-release configuration
* @param {string} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
* @param {string} pluginConfig.config requierable npm package with a custom conventional-changelog preset
* @param {string|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
* @param {Object} pluginConfig.parserOpts additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
* @param {Object} options semantic-release options
* @param {Array} options.commits array of commits
* @param {commitAnalyzerCallback} callback The callback called with the release type.
*/
* Determine the type of release to create based on a list of commits.
*
* @param {Object} pluginConfig semantic-release configuration
* @param {string} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
* @param {string} pluginConfig.config requierable npm package with a custom conventional-changelog preset
* @param {string|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
* @param {Object} pluginConfig.parserOpts additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
* @param {Object} options semantic-release options
* @param {Array} options.commits array of commits
* @param {commitAnalyzerCallback} callback The callback called with the release type.
*/
module.exports = async (pluginConfig, {commits}, callback) => {
try {
const releaseRules = loadReleaseRules(pluginConfig);
Expand Down
Loading