{"id":29627647,"url":"https://github.com/knuton/grunt-transbrute","last_synced_at":"2025-07-21T08:05:35.897Z","repository":{"id":9107836,"uuid":"10889104","full_name":"knuton/grunt-transbrute","owner":"knuton","description":"Publish project files using Git.","archived":false,"fork":false,"pushed_at":"2016-02-22T19:58:21.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T14:07:24.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://npmjs.org/package/grunt-transbrute","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knuton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-23T17:49:42.000Z","updated_at":"2016-02-22T19:37:51.000Z","dependencies_parsed_at":"2022-08-29T03:01:45.953Z","dependency_job_id":null,"html_url":"https://github.com/knuton/grunt-transbrute","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knuton/grunt-transbrute","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knuton%2Fgrunt-transbrute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knuton%2Fgrunt-transbrute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knuton%2Fgrunt-transbrute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knuton%2Fgrunt-transbrute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knuton","download_url":"https://codeload.github.com/knuton/grunt-transbrute/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knuton%2Fgrunt-transbrute/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266263057,"owners_count":23901356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-21T08:05:33.620Z","updated_at":"2025-07-21T08:05:35.888Z","avatar_url":"https://github.com/knuton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grunt-transbrute\n\n\u003e Publish project files using Git.\n\nThe goal of this plugin is to simplify the use of Git as a transport\nchannel for publishing files from your project to the web. An example\nuse case would be publishing documentation sources that live in the same\nrepository as your project's code to the web using GitHub Pages.\n\ntransbrute creates a throwaway Git repository, adds those parts of your\nproject that you specified, and pushes them to the remote repository you\nspecified.\n\n[![Build Status](https://travis-ci.org/knuton/grunt-transbrute.png?branch=master)](https://travis-ci.org/knuton/grunt-transbrute)\n\n## Getting Started\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to\ncheck out the [Getting Started](http://gruntjs.com/getting-started)\nguide, as it explains how to create a\n[Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and\nuse Grunt plugins. Once you're familiar with that process, you may\ninstall this plugin with this command:\n\n```shell\nnpm install grunt-transbrute --save-dev\n```\n\nOnce the plugin has been installed, it may be enabled inside your\nGruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-transbrute');\n```\n\n## The \"transbrute\" task\n\n### Overview\nIn your project's Gruntfile, add a section named `transbrute` to the\ndata object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  transbrute: {\n    target: {\n      message: 'Add foo on %DATE',\n      remote: 'git@github.com:you/foo.git',\n      branch: 'target-branch',\n      tag: '0.1.3',\n      tagMessage: 'Release 0.1.3',\n      pull: true,\n      force: false,\n      files: [\n        { src: '**/*', expand: true, cwd: 'docs/' },\n        { dest: 'relative_path', body: 'str' },\n        { dest: 'relative_path_2', body: {a: 1} }\n      ]\n    },\n  },\n})\n```\n\n### Target Options\n\n#### remote\nType: `String`\n\nThe URI for the remote repository. Required.\n\n#### branch\nType: `String`\n\nThe name of the remote branch. Required.\n\n#### message\nType: `String`\nDefault value: `'Add \u003cTARGET_NAME\u003e from \u003cTIMESTAMP\u003e'`\n\nThe commit message to use. An occurrence of `%DATE` in the string will\nbe replaced by the current timestamp in ISO format.\n\n#### tag\nType: `String`\n\nIf a tag identifier is given, the commit will be tagged before being\npushed. Can be combined with `tagMessage`.\n\n#### tagMessage\nType: `String`\n\nIf in addition to a tag identifier a tag message is given, the tag will\nbe annotated with this message.If `tag` is not provided, `tagMessage`\nwill be ignored.\n\n#### pull\nType: `Boolean`\nDefault value: `true`\n\nIf `true`, contents of the remote repository will be pulled before files\nare processed and committed.\n\n#### force\nType: `Boolean`\nDefault value: `false`\n\nIf `true`, the commit will be force-pushed.\n\n#### files\nType: `Array`\n\nA list of files to use. You can specify files that are actually present\nin the filesystem in the usual Grunt way, but you should set the `cwd`\noption to the directory from which the files have relative paths that\nequal those you want them to have in the repository.\n\nAdditionally, you can add files inline by giving their relative path\nwithin the repository as `dest` and specifying their body as `body`.\n`body` can either be a string, which will be written to the file, or a\nJSON-serializable object, which will first be pretty-printed using\n`JSON.stringify` and then written to the file.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing\ncoding style. Add unit tests for any new or changed functionality.\nLint and test your code using [Grunt](http://gruntjs.com/).\n\n## Release History\n\n### 1.0.1 (2015/22/02)\n* Bump minimal Node version to v0.10.0\n\n### 1.0.0 (2015/22/02)\n* Updated Grunt dependency to [prepare for Grunt 1.0.0](http://gruntjs.com/blog/2016-02-11-grunt-1.0.0-rc1-released#peer-dependencies)\n\n### 0.2.0 (2013/10/04)\n* Added option for tagging of commits\n\n### 0.1.1 Bugfix (2013/06/30)\n* Fixed issue with commit message containing doublequotes\n\n### 0.1.0 Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknuton%2Fgrunt-transbrute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknuton%2Fgrunt-transbrute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknuton%2Fgrunt-transbrute/lists"}