1 | { |
---|
2 | "name": "grunt-git-deploy", |
---|
3 | "description": "Deploy files to any branch of any remote git repository.", |
---|
4 | "version": "0.1.1", |
---|
5 | "homepage": "https://github.com/iclanzan/grunt-git-deploy", |
---|
6 | "author": { |
---|
7 | "name": "Sorin Iclanzan", |
---|
8 | "email": "sorin@iclanzan.com", |
---|
9 | "url": "http://songpane.com/" |
---|
10 | }, |
---|
11 | "repository": { |
---|
12 | "type": "git", |
---|
13 | "url": "git://github.com/iclanzan/grunt-git-deploy.git" |
---|
14 | }, |
---|
15 | "bugs": { |
---|
16 | "url": "https://github.com/iclanzan/grunt-git-deploy/issues" |
---|
17 | }, |
---|
18 | "licenses": [ |
---|
19 | { |
---|
20 | "type": "MIT", |
---|
21 | "url": "https://github.com/iclanzan/grunt-git-deploy/blob/master/LICENSE-MIT" |
---|
22 | } |
---|
23 | ], |
---|
24 | "main": "Gruntfile.js", |
---|
25 | "engines": { |
---|
26 | "node": ">= 0.8.0" |
---|
27 | }, |
---|
28 | "scripts": { |
---|
29 | "test": "grunt test" |
---|
30 | }, |
---|
31 | "devDependencies": { |
---|
32 | "grunt-contrib-clean": "~0.4.0", |
---|
33 | "grunt-contrib-copy": "~0.4.1", |
---|
34 | "grunt-contrib-nodeunit": "~0.1.2", |
---|
35 | "grunt": "~0.4.1" |
---|
36 | }, |
---|
37 | "peerDependencies": { |
---|
38 | "grunt": "~0.4.1" |
---|
39 | }, |
---|
40 | "keywords": [ |
---|
41 | "gruntplugin", |
---|
42 | "git", |
---|
43 | "deploy", |
---|
44 | "push" |
---|
45 | ], |
---|
46 | "readme": "# grunt-git-deploy\n\n> Deploy files to any branch of any remote git repository.\n\n## Getting Started\nThis plugin requires Grunt `~0.4.1`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-git-deploy --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-git-deploy');\n```\n\n## The \"git_deploy\" task\n\n### Overview\nThe way this task works is it creates an empty git repository in the `src` directory you specify, creates an orphan branch and commits all files from that directory to it. Then it pushes the branch to the configured remote repository. **Be careful as this destroys the history of the remote branch.**\n\nIn your project's Gruntfile, add a section named `git_deploy` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n git_deploy: {\n your_target: {\n options: {\n url: 'git@github.com:example/repo.git'\n },\n src: 'directory/to/deploy'\n },\n },\n})\n```\n\n### Options\n\n#### options.url\nType: `String`\n\nThe URL to a remote git repository. This option is required.\n\n#### options.branch\nType: `String`\nDefault value: `'gh-pages'`\n\nThe branch to push to.\n\n#### options.message\nType: `String`\nDefault value: `'autocommit'`\n\nCommit message.\n\n## Contributing\nIf you can think of a way to unit test this plugin please take a shot at it.\n", |
---|
47 | "readmeFilename": "README.md", |
---|
48 | "_id": "grunt-git-deploy@0.1.1", |
---|
49 | "dist": { |
---|
50 | "shasum": "805634de159e88cec8e34ffc4f8b8ebc1246f654" |
---|
51 | }, |
---|
52 | "_from": "grunt-git-deploy@", |
---|
53 | "_resolved": "https://registry.npmjs.org/grunt-git-deploy/-/grunt-git-deploy-0.1.1.tgz" |
---|
54 | } |
---|