Skip to content

Instantly share code, notes, and snippets.

@dbouwman
Created October 15, 2014 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbouwman/c1dacf79da70b17d861a to your computer and use it in GitHub Desktop.
Save dbouwman/c1dacf79da70b17d861a to your computer and use it in GitHub Desktop.
grunt status.json
grunt.task.registerTask('export-status','export json file with git status', function(){
var info = grunt.config.get('gitinfo');
delete info.remote;
info.changesUrl = "https://github.com/ArcGIS/composer-admin/compare/" + info.local.branch.current.SHA + "...master";
var infoString = JSON.stringify( info , null, '\t' );
grunt.file.write('app/status.json', infoString);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment