Created
October 15, 2014 19:16
-
-
Save dbouwman/c1dacf79da70b17d861a to your computer and use it in GitHub Desktop.
grunt status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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