Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
grunt-gh-deploy
Advanced tools
Grunt plugin for easy deployment to ghPages branch.
This plugin requires Grunt ~0.4.5
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-gh-deploy --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
grunt.loadNpmTasks('grunt-gh-deploy');
In your project's Gruntfile, add a section named ghDeploy
to the data object passed into grunt.initConfig()
.
grunt.initConfig({
ghDeploy: {
// Task options go here
},
});
Type: String
Default value: null
A path to Git repository to deploy to. Can be local file system repository (absolute path) or remote URL.
Type: String
Default value: 'gh-pages'
The name of the branch in the repository to deploy to.
Type: String
Default value: null
Path to the folder with build files to deploy, relative to Gruntfile. Typically this is a result of previous build task.
Type: String
Default value: 'Deployment ' + grunt.template.today()
Commit message to deployment branch.
The minimum configuration must include the path to repository and path to directory with files to deploy. For example:
ghDeploy: {
options: {
repository: 'https://github.com/dfsq/angular-google-tasks.git',
deployPath: 'dist'
}
},
There are several additional configuration options: name of the branch to push deployed files and optional commit message.
grunt.initConfig({
ghDeploy: {
repository: 'https://github.com/dfsq/angular-google-tasks.git',
branch: 'release-branch',
deployPath: 'dist',
message: 'Auto deplyment ' + grunt.template.today()
}
});
Depending on your system git setup you may be asked to input github username and password before pushing to remote repository.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
2014-11-14 v0.1.0 Initial basic version is released.
FAQs
Grunt plugin for easy deployment to Github gh-pages branch.
The npm package grunt-gh-deploy receives a total of 0 weekly downloads. As such, grunt-gh-deploy popularity was classified as not popular.
We found that grunt-gh-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.