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

grunt-deployinator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-deployinator - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

lib/git.js

21

lib/deployinator.js
var Promise = require('promise'),
run = require('./command.js').run,
version = require('./version.js');
run = require('commandjs').run,
version = require('./version.js'),
git = require('./git.js');

@@ -39,8 +40,14 @@ function deploySetup(options) {

return new Promise(function(resolve, reject) {
version.fetchLastTag().then(function(lastTag) {
var currentTag = version.getNextTag(lastTag, options.increment);
git.fetchTagsForHead().then(function (tags) {
if (tags.length) {
resolve(tags[0]);
} else {
version.fetchLastTag().then(function(lastTag) {
var currentTag = version.getNextTag(lastTag, options.increment);
version.createTag(currentTag, function() {
resolve(currentTag);
}, reject);
version.createTag(currentTag, function() {
resolve(currentTag);
}, reject);
});
}
});

@@ -47,0 +54,0 @@ });

var exec = require('child_process').exec,
run = require('./command.js').run;
run = require('commandjs').run;

@@ -4,0 +4,0 @@ /* istanbul ignore next */

{
"name": "grunt-deployinator",
"description": "Grunt plugin that deploys git repositories on remote servers.",
"version": "0.3.3",
"homepage": "https://github.com/istvan-antal/grunt-deployinator",
"author": {
"name": "István Miklós Antal",
"email": "istvan.m.antal@gmail.com",
"url": "http://istvan-antal.ro/"
},
"repository": {
"type": "git",
"url": "git@github.com:istvan-antal/grunt-deployinator.git"
},
"bugs": {
"url": "https://github.com/istvan-antal/grunt-deployinator/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/istvan-antal/grunt-deployinator/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt-contrib-jshint": "0.9.2",
"chai": "1.9.1",
"grunt-mocha-test": "~0.9.0",
"grunt-istanbul": "~0.2.4",
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-copy": "0.5.0",
"grunt-istanbul-coverage": "0.0.5",
"grunt": "~0.4.4"
},
"peerDependencies": {
"grunt": "~0.4.4"
},
"keywords": [
"gruntplugin"
],
"dependencies": {
"promise": "~4.0.0"
},
"jshintConfig": {
"bitwise": true,
"curly": true,
"camelcase": true,
"eqeqeq": true,
"freeze": true,
"immed": true,
"latedef": false,
"newcap": true,
"noarg": true,
"forin": true,
"sub": true,
"undef": true,
"unused": true,
"noempty": true,
"boss": false,
"eqnull": true,
"browser": true,
"indent": 4,
"maxcomplexity": 7,
"maxstatements": 36,
"maxparams": 5,
"maxdepth": 3,
"maxlen": 100,
"trailing": true,
"maxerr": 5,
"globals": {
"module": true,
"require": true,
"exports": true,
"grunt": true,
"describe": true,
"it": true,
"expect": true
}
"name": "grunt-deployinator",
"description": "Grunt plugin that deploys git repositories on remote servers.",
"version": "0.3.4",
"homepage": "https://github.com/istvan-antal/grunt-deployinator",
"author": {
"name": "István Miklós Antal",
"email": "istvan.m.antal@gmail.com",
"url": "http://istvan-antal.ro/"
},
"repository": {
"type": "git",
"url": "git@github.com:istvan-antal/grunt-deployinator.git"
},
"bugs": {
"url": "https://github.com/istvan-antal/grunt-deployinator/issues"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/istvan-antal/grunt-deployinator/blob/master/LICENSE-MIT"
}
],
"engines": {
"node": ">= 0.8.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt-contrib-jshint": "0.9.2",
"chai": "1.9.1",
"grunt-mocha-test": "~0.9.0",
"grunt-istanbul": "~0.2.4",
"grunt-contrib-clean": "0.5.0",
"grunt-contrib-copy": "0.5.0",
"grunt-istanbul-coverage": "0.0.5",
"grunt": "~0.4.4"
},
"peerDependencies": {
"grunt": "~0.4.4"
},
"keywords": [
"gruntplugin"
],
"dependencies": {
"commandjs": "0.0.1",
"promise": "~4.0.0"
},
"jshintConfig": {
"bitwise": true,
"curly": true,
"camelcase": true,
"eqeqeq": true,
"freeze": true,
"immed": true,
"latedef": false,
"newcap": true,
"noarg": true,
"forin": true,
"sub": true,
"undef": true,
"unused": true,
"noempty": true,
"boss": false,
"eqnull": true,
"browser": true,
"indent": 4,
"maxcomplexity": 7,
"maxstatements": 36,
"maxparams": 5,
"maxdepth": 3,
"maxlen": 100,
"trailing": true,
"maxerr": 5,
"globals": {
"module": true,
"require": true,
"exports": true,
"grunt": true,
"describe": true,
"it": true,
"expect": true
}
}
}

@@ -40,2 +40,4 @@ /*

done();
}, function (error) {
grunt.fail.fatal('Error encountered during setup: ' + error);
});

@@ -49,2 +51,4 @@ }

done();
}, function (error) {
grunt.fail.fatal('Error encountered during deploy: ' + error);
});

@@ -67,2 +71,4 @@ });

done();
}, function (error) {
grunt.fail.fatal('Error encountered during deploy: ' + error);
});

@@ -91,3 +97,5 @@ });

deployinator.tagRelease(options).then(done);
deployinator.tagRelease(options).then(done, function (error) {
grunt.fail.fatal('Error encountered during deploy: ' + error);
});
});

@@ -94,0 +102,0 @@

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