Skip to content

1000ch/grunt-sync-version

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-sync-version

About

Synchronize version of JSON setting files with Grunt task.

NPM

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.

About

Synchronize version of JSON setting file with Grunt task.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published