grunt-jsversion

1.0.3 • Public • Published

grunt-jsversion

Add package version information.

Getting Started

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:

grunt.loadNpmTasks('grunt-jsversion');

Documentation

grunt.initConfig({
    // ... other configs

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

    // ... other configs
});

Contributing

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.

Release History

(Nothing yet)

License

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

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-jsversion

Weekly Downloads

2

Version

1.0.3

License

none

Last publish

Collaborators

  • dduskim