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

grunt-git-init-and-deploy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-git-init-and-deploy

Creates an empty git repository, commit/push all changes to the provided git remote/branch.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-git-init-and-deploy

Creates an empty git repository, commit/push all changes to the provided git remote/branch.

Getting Started

If you haven't used grunt before, be sure to check out the Getting Started guide.

From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:

npm install grunt-git-init-and-deploy

Once that's done, add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-git-init-and-deploy');

Overview

Inside your Gruntfile.js file add a section named gitInitAndDeploy. This section specifies the options to provide remote repository, branch and commit message.

Config Example

Example to deploy the deploy folder to Heroku:

gitInitAndDeploy: {
    dist: {
        options: {
            repository: 'git@heroku.com:' + process.env.HEROKU_APP_NAME + '.git',
            message: 'deployment for v.' + process.env.BUILD_NUMBER + '-' + process.env.ENVIRONMENT,
            branch: 'master' // optional: default is 'master'
        },
        src: 'deploy'
    }
}

License

Copyright (c) 2013 Juan Pablo Garcia Licensed under the MIT license.

Keywords

FAQs

Package last updated on 09 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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