belen-albeza / grunt-demo

Grunt example project
MIT License
2 stars 9 forks source link

Gruntfile.js loads the package.json file twice? #2

Open pdehaan opened 11 years ago

pdehaan commented 11 years ago

On line 25 of Gruntfile.js, it seems like we load package.json at the top of grunt.initConfig()

Later, on line 167 it seems we load the file again within the grunt.registerTask("version") target.


Unrelated, but probably not worth a separate bug (unless you want me to), but should the 'version' target use console.log() instead of something like grunt.log.writeln [1]?

[1] http://gruntjs.com/api/grunt.log

belen-albeza commented 11 years ago

Thanks for bringing this up! I'll fix both things when I have a moment :)