gulp-maven-deploy
Advanced tools
Comparing version 1.0.0-beta.5 to 1.0.0
{ | ||
"name": "gulp-maven-deploy", | ||
"version": "1.0.0-beta.5", | ||
"version": "1.0.0", | ||
"description": "Simple gulp plugin for the maven-deploy module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
gulp-maven-deploy | ||
================= | ||
*** | ||
**Warning** This readme contains changes for the upcoming 1.0.0 release. For using the 0.x versions, have a look into the [0.x support branch](https://github.com/micha149/gulp-maven-deploy/tree/support/0.x) | ||
*** | ||
A [Gulp](//gulpjs.com/) wrapper for the [maven-deploy](https://www.npmjs.org/package/maven-deploy) module. Enables you to have projects which are built with Gulp, but deploys to Maven repositories. | ||
@@ -16,3 +12,3 @@ | ||
All the samples below require a basic understanding of [Gulp](//gulpjs.com/) and [Maven](http://maven.apache.org/). Please look at the documentation for those projects for details. | ||
All the samples below require a basic understanding of [Gulp](//gulpjs.com/) and [Maven](http://maven.apache.org/). Please look at the documentation for those projects for details. This readme refers to 1.x versions. If you are still using the 0.x versions, have a look into the [0.x support branch](https://github.com/micha149/gulp-maven-deploy/tree/support/0.x). | ||
@@ -19,0 +15,0 @@ ## Installing |
@@ -8,8 +8,8 @@ var assign = require('lodash.assign'), | ||
var fileOptions = assign({}, baseOptions, { | ||
var fileOptions = assign({}, { | ||
artifactId: file.stem, | ||
type: file.extname.replace(/^\./, '') | ||
}); | ||
}, baseOptions); | ||
return fileOptions; | ||
}; |
@@ -6,2 +6,3 @@ var plugin = require('../index.js'), | ||
mavenDeploy = require('maven-deploy'), | ||
assign = require('lodash.assign'), | ||
fs = require('fs'); | ||
@@ -146,2 +147,19 @@ | ||
it('uses provided artifactId', function (done) { | ||
var config = assign({}, testConfig); | ||
config.artifactId = 'file'; | ||
var stream = plugin.deploy(config); | ||
var expectedOptions = { | ||
artifactId: 'file' | ||
}; | ||
stream.on('finish', function() { | ||
expect(mavenDeploy.config).to.be.calledWith(sinon.match(expectedOptions)); | ||
done(); | ||
}); | ||
stream.write(fileA); | ||
stream.end(); | ||
}); | ||
it('removes temporary file when finished', function(done) { | ||
@@ -148,0 +166,0 @@ var stream = plugin.deploy(testConfig); |
@@ -6,2 +6,3 @@ var plugin = require('../index.js'), | ||
mavenDeploy = require('maven-deploy'), | ||
assign = require('lodash.assign'), | ||
fs = require('fs'); | ||
@@ -98,2 +99,19 @@ | ||
it('uses provided artifactId', function (done) { | ||
var config = assign({}, testConfig); | ||
config.artifactId = 'file'; | ||
var stream = plugin.install(config); | ||
var expectedOptions = { | ||
artifactId: 'file' | ||
}; | ||
stream.on('finish', function() { | ||
expect(mavenDeploy.config).to.be.calledWith(sinon.match(expectedOptions)); | ||
done(); | ||
}); | ||
stream.write(fileA); | ||
stream.end(); | ||
}); | ||
it('ensures to work with old vinyl versions', function (done) { | ||
@@ -100,0 +118,0 @@ var stream = plugin.install(testConfig); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
24886
469
1
92