RusticiSoftware/TinCanJS

Remove manual version stamping of built file

Closed this issue · 3 comments

Use something like https://www.npmjs.org/package/grunt-text-replace as a grunt task after the "build" process to replace a version identifier in the built files based on the current version in the package.json file.

Figured out a better way to do this with the already in place concat module. Adding a 'banner' to that task worked a treat.

options: {
    banner: "\"<%= pkg.version %>\";\n"
},

I have this in a commit in my local repo waiting on #72.

Resolved by #80.