Use something like [grunt-banner](https://www.npmjs.org/package/grunt-banner) to pick up the version from _package.json_ and write an appropriate header to the files which get distributed.