grunt-sync-version

0.2.1 • Public • Published

grunt-sync-version

About

Synchronize version of JSON setting files with Grunt task.

Usage

module.exports = function (grunt) {
 
  grunt.initConfig({
    version: {
      options: {
        base: 'base.json'
      },
      files: ['package.json']
    }
  });
 
  // load grunt-sync-version
  grunt.loadNpmTasks('grunt-sync-version');
 
  // register task
  grunt.registerTask('default', 'version');
};

files

Type String or Array

Specify targets to apply version.

Options

base

Type: String

Base json file. This is optional.
If base is omitted, package.json will be loaded.

space

Type: Number

License

MIT.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.10latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.10
0.2.00

Package Sidebar

Install

npm i grunt-sync-version

Weekly Downloads

0

Version

0.2.1

License

GPL v3

Last publish

Collaborators

  • 1000ch