New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-build-control

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-build-control - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test/scenarios/deploy to named remote/repo/dist/empty_file

2

package.json
{
"name": "grunt-build-control",
"description": "Automate version control tasks for your project's built code. Keep built code in sync with source code, maintain multiple branches of built code, commit with automatic messages, and push to remote repositories.",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/robwierzbowski/grunt-build-control",

@@ -6,0 +6,0 @@ "author": "Rob Wierzbowski <hello@robwierzbowski.com> (http://robwierzbowski)",

@@ -64,2 +64,3 @@ # grunt-build-control

Type: `String`
Values: `URL|RemoteName|FileSystemPath`
Default: `../`

@@ -71,3 +72,3 @@

#### remoteBranch
Type: `String`
Type: `String`
Default: `''`

@@ -80,3 +81,3 @@

#### login
Type: `String`
Type: `String`
Default: `''`

@@ -90,3 +91,3 @@

#### token
Type: `String`
Type: `String`
Default: `''`

@@ -93,0 +94,0 @@

@@ -203,3 +203,3 @@ /*

// `--update-head-ok` allows fetch on a branch with uncommited changes
execWrap('git fetch --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch);
execWrap('git fetch --progress --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch, false, true);
}

@@ -219,3 +219,4 @@

function gitFetch () {
execWrap('git fetch ' + remoteName, false);
log.subhead('Fetching ' + options.branch + ' history from ' + options.remote + '.');
execWrap('git fetch --progress --verbose ' + remoteName, false, true);
}

@@ -222,0 +223,0 @@

@@ -521,2 +521,30 @@ /*jshint -W030 */

});
describe('deploy to named remote', function() {
it('should have deployed to origin', function(done) {
var tasks = [];
tasks.push(function(next) {
childProcess.exec('git init', {cwd: 'repo/dist'}, next);
});
tasks.push(function(next) {
childProcess.exec('git remote add origin ../../remote', {cwd: 'repo/dist'}, next);
});
tasks.push(function(next) {
execScenario(next);
});
tasks.push(function(next) {
childProcess.exec('git log --pretty=oneline --abbrev-commit --no-color', {cwd: 'validate'}, function(err, stdout) {
stdout.should.have.string('new grunt-build commit');
next();
});
});
async.series(tasks, done);
});
});
});

Sorry, the diff of this file is not supported yet

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