grunt-git-branch-ftpush

0.2.3 • Public • Published

grunt-git-branch-ftpush

grunt-contrib-ftpush + git 사용시 remote dest를 git branch 값으로 자동 변경해 주는 플러그인

Getting Started

This plugin requires Grunt ~0.4.4

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-git-branch-ftpush --save-dev
npm install grunt-contrib-ftpush --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-git-branch-ftpush');
grunt.loadNpmTasks('grunt-contrib-ftpush');

The "GitBranchFtpush" task

Overview

In your project's Gruntfile, add a section named GitBranchFtpush to the data object passed into grunt.initConfig().

grunt.initConfig({
	GitBranchFtpush: {
		ftp : {
			options : {
				ftp_root: '/서비스 root 폴더/'
			}
		}
	}
});

ftpush 설정 추가 'dest: '<%= grunt.config.get('ftp_dest.path') %>'
ftpush 설정은 grunt-contrib-ftpush에서 확인하실 수 있습니다.

ftpush: {
  build: {
    auth: {
      host: '',
      port: '',
      authKey: ''
    },
    src: '',
    dest: '<%= grunt.config.get(\'ftp_dest.path\') %>',
    exclusions: '',
    keep: []
  }
}

task 추가

grunt.registerTask('push', ['GitBranchFtpush', 'ftpush']);

Contributing

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.

Release History

0.2.2 beta release

Readme

Keywords

Package Sidebar

Install

npm i grunt-git-branch-ftpush

Weekly Downloads

3

Version

0.2.3

License

MIT

Last publish

Collaborators

  • chosungmin