node package manager


Add package version information to file


Add package version information.

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-jsversion

Then add this line to your project's grunt.js gruntfile:

    // ... other configs 
    jsversion : {
        dist : {
            namespace   : 'global',             // (optional){}.version = {package.version}; 
            src         : 'dist/test.js',       // (required) source file 
            dest        : 'dist/test.v.js'      // (optional) destination file (default : overrite src) 
    // ... other configs 

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

(Nothing yet)

Copyright (c) 2013 Kim Du-hyeong
Licensed under the MIT license.