shark-deploy-git
v0.1.9
Published
deploy plugin of git for shark-deploy
Downloads
16
Readme
grunt-shark-deploy-git
Used to deploy to git
Example:
module.exports = function(grunt) {
// load all tasks
require('load-grunt-tasks')(grunt);
grunt.initConfig({
deployGit: {
options: {
},
// webapp
webapp: {
options: {
build: 'build/app/',
deploy: '/Users/hero/git/shark-deploy-deploy/webapp/test/',
repo: 'git://herodemacbook-pro.local/test/shark-deploy.git'
}
},
// statics
static: {
options: {
// resources path
build: 'build/static/',
// repo path
deploy: '/Users/hero/git/shark-deploy-deploy/static/test/',
// git repo
repo: 'git://herodemacbook-pro.local/test/shark-deploy-statics.git'
}
}
}
});
grunt.loadTasks('tasks');
grunt.registerTask('default', ['deployGit:webapp:rc']);
grunt.registerTask('deploy', '', function(target, branch) {
grunt.task.run([
'deployGit:webapp:' + branch,
'deployGit:static:' + branch
]);
})
};
## 0.1.0
support git