Stephan Bönnemann
26e2afc152
test: end tests properly
2015-09-26 20:22:11 +02:00
Stephan Bönnemann
927e930bb9
style(standard): fix ternaries
2015-09-26 12:45:11 +02:00
Stephan Bönnemann
a3f561d1d1
test(mocks): correctly fail git command when ref not in history
2015-09-16 09:51:26 +02:00
Stephan Bönnemann
451378117d
fix(registry): be better at using the correct registry (relevant for npme)
...
Closes #53
2015-08-22 23:32:49 +02:00
Stephan Bönnemann
a16c36ed4d
style: branch available in options not root of config
2015-08-22 19:49:09 +02:00
Stephan Bönnemann
5cc7da6035
fix(commits): add helpful error when lastRelease not in history
...
Closes #61 , Closes #50
2015-08-22 19:31:29 +02:00
Stephan Bönnemann
700ec9d4ca
feat(plugins): run verifications in series
...
With this new feature you can pass an array of plugin locations/names to
both "verifyConditions" and "verifyRelease" in your `package.json`'s "release"
field. This will run multiple verification plugins in series.
2015-08-22 14:52:01 +02:00
Ari Porad
7ceac76689
feat(plugins): add getLastRelease hook
...
The code to determine the last-release is now in its own repository: https://github.com/semantic-release/last-release-npm
One can overwrite that behavior by defining a "getLastRelease" plugin. This way
one can decouple semantic-release from npm, e.g. by implementing a git-tag
based version. This is already worked on: https://github.com/semantic-release/last-release-git-tag
Closes #56
2015-08-18 13:56:24 +02:00
Stephan Bönnemann
05490fe229
test(last-release): adapt registry-mock to how the registry actually behaves
2015-07-30 17:15:03 +01:00
Stephan Bönnemann
ddaec4f2bf
test(integration): make em at least run locally
2015-07-19 16:21:40 +02:00
Stephan Bönnemann
d9eeb3fcae
refactor: use one config object instead of passing arguments to plugins on their own
...
This commit does a lot but it's all connected and tries to make everything more extensible and future proof.
1. CLI arguments and options from the "package.json" are no longer treated as two different things. You can now pass options either way.
BREAKING CHANGE: cli arguments are now normalized to camelCase, so e.g. `options['github-url']` is now `options.githubUrl`
2. Plugins no longer receive config they need one by one, but in one huge object. This way it's easier to pass more info in the future w/o breaking existing plugins that rely on the position of the callback in the arguments array.
BREAKING CHANGE: Plugins now need to read their passed options from one huge config object.
Old:
```js
module.exports = function (pluginConfig, foo, bar, cb) {…}
```
New:
```js
// ES5
module.exports = function(pluginConfig, config, cb) {
var foo = config.foo
var bar = config.bar
…
}
// ES6
module.exports = function (pluginConfig, {foo, bar}, cb) {…}
```
2015-07-19 15:34:30 +02:00
Stephan Bönnemann
ed05101a61
test(post): initial
2015-07-16 17:30:14 +02:00
Stephan Bönnemann
431babb42e
fix(verify): ensure repo url in package.json is well formed
2015-07-16 14:07:52 +02:00
Stephan Bönnemann
6cf1711151
test(last-release): add custom dist-tag
2015-07-16 11:51:22 +02:00
Stephan Bönnemann
b1d9985ba3
test(plugins): test exported plugins
2015-07-14 21:13:36 +02:00
Stephan Bönnemann
af15fb4c61
fix(last-release): normalized registry url
2015-07-14 21:13:36 +02:00
Stephan Bönnemann
43c8df0bfe
fix(plugins): require user plugins relative to the cwd
2015-07-13 12:03:05 +02:00
Stephan Bönnemann
150273c8fe
fix(plugins): rename plugins
2015-07-13 11:53:32 +02:00
Stephan Bönnemann
c6f95e4870
test(pre): initial cli/integration suite
2015-07-09 02:10:39 +02:00
Stephan Bönnemann
6d84b66c05
test(test-module): creates integration test env on disk
2015-07-09 02:10:38 +02:00
Stephan Bönnemann
4d58af7145
test(base-scenario): creates nixt testing base
2015-07-09 02:10:38 +02:00
Stephan Bönnemann
32c1dcf75b
test(registry): lib to start and stop an npm-registry-couchapp
2015-07-09 02:10:38 +02:00
Stephan Bönnemann
057e8e9759
feat(plugins): normalize plugins and have unified function signature
2015-06-18 16:48:28 -07:00
Stephan Bönnemann
da23c15ea5
test(plugins): initial suite
2015-06-18 16:10:55 -07:00
Stephan Bönnemann
c47ff97ab3
test(verify): initial suite
2015-06-17 15:41:26 -07:00
Stephan Bönnemann
689f37ae2e
test(specs): how about running ALL tests?
2015-06-14 21:50:53 -07:00
Stephan Bönnemann
7412401d55
test(pre): initial suite
2015-06-14 21:49:50 -07:00
Stephan Bönnemann
6df67828fe
refactor(commits,type): simplify interfaces
2015-06-14 21:49:39 -07:00
Stephan Bönnemann
66bf8ff710
refactor(mocks): extract from specs
2015-06-14 21:07:39 -07:00
Stephan Bönnemann
f79e26dcd6
test(type): initial suite
2015-06-14 19:39:38 -07:00
Stephan Bönnemann
d6172b8767
test(commits): initial suite
2015-06-14 18:17:25 -07:00
Stephan Bönnemann
cce860ec03
test(last-release): initial suite
2015-06-14 18:17:25 -07:00