Git diff archiving grunt plugin.
npm install grunt-diff-archive> Git diff archiving grunt plugin.
> Git の差分ファイルを抽出してアーカイブします
v0.0.6
www.npmjs.org/package/grunt-diff-archive
~0.4.5If 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:
``shell`
npm install grunt-diff-archive --save-dev
Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:
`js`
grunt.loadNpmTasks('grunt-diff-archive');
to the data object passed into grunt.initConfig().`js
grunt.initConfig({
diff: {
options: {
// Task-specific options go here.
},
your_target: {
// Target-specific file lists and/or options go here.
}
}
});
`$3
#### options.pathName
指定の名前のディレクトリ名でアーカイブされます
Type:
String
Default: 'root'#### options.fileName
アーカイブファイル名
Type:
String
Default value: 'archive'#### options.format
アーカイブフォーマット
Type:
String 'zip' or 'tar'
Default value: 'zip'#### originCommit
基点となるコミットID
Type:
String
Default value: 'HEAD'#### options.targetCommit
対象のコミットID
数値の場合は
options.originCommit 遡る数のほか任意のコミットID (文字列)も渡せます
Type:
Number or String
Default value: 1
$3
#### Default Options
`js
grunt.initConfig({
diff: {
options: {
pathName: 'root',
fileName: 'archive',
format: 'zip',
originCommit: 'HEAD',
targetCommit: 1
}, target: {}
}
});
`#### Custom Options
`js
grunt.initConfig({
diff: {
options: {
pathName: 'archive',
fileName: 'diff-archive',
targetCommit: '414fb27g' // commitID
}, target: {}
}
});
``The MIT License (MIT)
Copyright (c) github.com/sugarshin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.