{"id":18348001,"url":"https://github.com/collaborne/gulp-inject-git-rev","last_synced_at":"2025-10-26T14:40:01.645Z","repository":{"id":57257892,"uuid":"99446990","full_name":"Collaborne/gulp-inject-git-rev","owner":"Collaborne","description":"Gulp plugin to inject the git revision number","archived":false,"fork":false,"pushed_at":"2018-11-21T12:58:33.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T02:42:18.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Collaborne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-05T20:46:43.000Z","updated_at":"2018-11-21T12:58:34.000Z","dependencies_parsed_at":"2022-08-25T21:22:45.284Z","dependency_job_id":null,"html_url":"https://github.com/Collaborne/gulp-inject-git-rev","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgulp-inject-git-rev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgulp-inject-git-rev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgulp-inject-git-rev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Collaborne%2Fgulp-inject-git-rev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Collaborne","download_url":"https://codeload.github.com/Collaborne/gulp-inject-git-rev/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248128051,"owners_count":21052346,"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":"2024-11-05T21:16:01.550Z","updated_at":"2025-10-26T14:39:56.598Z","avatar_url":"https://github.com/Collaborne.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gulp-inject-git-rev [![Build Status](https://travis-ci.org/Collaborne/gulp-inject-git-rev.svg?branch=master)](https://travis-ci.org/Collaborne/gulp-inject-git-rev) [![Greenkeeper badge](https://badges.greenkeeper.io/Collaborne/gulp-inject-git-rev.svg)](https://greenkeeper.io/)\nGulp plugin to inject the git revision number\n\n## Usage\n\nInstall the plugin:\n\n```\nnpm install gulp-inject-git-rev --save\n```\n\nAdd the `%%GULP.GIT_REV_VERSION%%` placeholder to any of your files, e.g.:\n\n```\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript\u003e\n      window.REV_VERSION = '%%GULP.GIT_REV_VERSION%%';\n      console.log(`This is revision ${window.REV_VERSION}.`);\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    Hello world from revision %%GULP.GIT_REV_VERSION%%!\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\nFinally, add the plugin to your gulpfile.js:\n\n```\nconst injectGitRev = require('gulp-inject-git-rev');\n\ngulp.task('default', ['fetch-git-rev'], function() {\n  return gulp.src('src/**/*')\n    .pipe(injectGitRev())\n    .pipe(gulp.dest('dist'));\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollaborne%2Fgulp-inject-git-rev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcollaborne%2Fgulp-inject-git-rev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcollaborne%2Fgulp-inject-git-rev/lists"}