Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gulp-maven-deploy

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-maven-deploy - npm Package Compare versions

Comparing version 1.0.0-beta.5 to 1.0.0

2

package.json
{
"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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc