Improved gruntfile for building application