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QAAS,GAEX,IAAK,kCAGP,YAAa,CACX,QAAS,CACP,SAAU,SAAW,GACnB,EAAM,IAAI,QAAS,mCACrB,GAEF,IAAK,uCAGP,OACO,EAAM,OAAQ,UACV,CACL,IAAK,CAAE,iBAGF,CAAC,GAMd,SAAU,CACR,MAAO,CAAC,qBAMZ,OACG,KAAM,EAAM,OAAQ,wBACpB,QAAQ,SAAW,GAClB,MAAO,UAAc,KAAM,EAC7B,IACC,QAAS,EAAM,cAGlB,EAAM,UAAW,SAIjB,EAAM,aAAc,OAAQ,CAAE,SAAU,aAAc,UAAW,OAAQ,aAGzE,EAAM,aAAc,MAAO,CAAE,YAAa,WAG1C,EAAM,aAAc,UAAW,CAAE,SAAU,OAAQ,QAGnD,EAAM,aAAc,UAAW,oBAAoB,WACjD,IAAI,EAAO,QAAS,QAClB,EAAU,KAAK,UAEjB,EAAQ,SAAS,SAAS,SAAW,GACnC,EAAM,KAAK,KACT,EAAK,KAAM,EAAQ,QAAS,EAAQ,UACpC,EAAK,KAAM,EAAQ,QAAS,EAAM,SAEtC,GACF,GACF","file":"/npm/grunt-bumpx@0.2.1/Gruntfile.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/grunt-bumpx@0.2.1/Gruntfile.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/*\n * grunt-bumpx\n * https://github.com/Ragnarokkr/grunt-bumpx\n *\n * Copyright (c) 2013-2014 Marco Trulla\n * Licensed under the ISC License.\n */\n\nmodule.exports = function(grunt) { 'use strict';\n\n  // Project configuration.\n  grunt.initConfig({\n    // Meta\n    pkg: grunt.file.readJSON( 'package.json' ),\n\n    // Tasks configuration\n    jshint: {\n      all: [\n        'Gruntfile.js',\n        'tasks/*.js',\n        '<%= nodeunit.tests %>'\n      ],\n      options: {\n        jshintrc: '.jshintrc'\n      }\n    },\n\n    // Remove temporary test files and old documentation\n    clean: {\n      test: [ 'test/fixtures/fix_*.json' ],\n      doc: [ './README.md', './CONTRIBUTORS.md', './LICENSE-MIT' ]\n    },\n\n    // Restore test files\n    restore: {\n      options: {\n        baseDir: 'test/fixtures',\n        baseFile: 'ref_package.json',\n        fixtures: [ 'fix_default', 'fix_major', 'fix_minor', 'fix_patch',\n          'fix_prerelease', 'fix_custom_level', 'fix_custom_level_array',\n          'fix_tabsize', 'fix_custom_event' ]\n      }\n    },\n\n    // Build the documentation\n    sildoc: ( function () {\n      if ( grunt.option( 'deploy' ) ) {\n        return {\n          doc: {\n            options: {\n              data: {\n                name: '<%= pkg.name %>',\n                altName: '<%= pkg.name.match( /-(.*).$/ )[1] %>',\n                description: '<%= pkg.description %>',\n                gruntVersion: '<%= pkg.devDependencies.grunt %>'\n              },\n              template: './src-doc/readme.tmpl.md'\n            },\n            src: [ './src-doc/_*.tmpl.md' ],\n            dest: './README.md'\n          },\n          license: {\n            options: {\n              data: {\n                author: '<%= pkg.author.name %> <<%= pkg.author.email %>>'\n              }\n            },\n            src: './src-doc/license.tmpl.md',\n            dest: './LICENSE-MIT'\n          },\n          contributors: {\n            options: {\n              data: {\n                contributors: '<%= pkg.contributors %>'\n              }\n            },\n            src: './src-doc/contributors.tmpl.md',\n            dest: './CONTRIBUTORS.md'\n          }\n        };\n      } else {\n        return {};\n      }\n    }()),\n\n    // Configuration to be run (and then tested).\n    bump: {\n      defaults: {\n        options: {},\n        src: 'test/fixtures/fix_default.json'\n      },\n\n      major: {\n        options: {\n          level: 'major'\n        },\n        src: 'test/fixtures/fix_major.json'\n      },\n\n      minor: {\n        options: {\n          level: 'minor'\n        },\n        src: 'test/fixtures/fix_minor.json'\n      },\n\n      patch: {\n        options: {\n          level: 'patch'\n        },\n        src: 'test/fixtures/fix_patch.json'\n      },\n\n      prerelease: {\n        options: {\n          level: 'prerelease'\n        },\n        src: 'test/fixtures/fix_prerelease.json'\n      },\n\n      customLevel: {\n        options: {\n          level: function ( data ) {\n            return data.version + '-rc.1';\n          }\n        },\n        src: 'test/fixtures/fix_custom_level.json'\n      },\n\n      customLevelArray: {\n        options: {\n          level: [\n            function ( data ) {\n              return data.version + '-rc.1';\n            },\n            function ( data ) {\n              return data.version + '+build.1';\n            }\n          ]\n        },\n        src: 'test/fixtures/fix_custom_level_array.json'\n      },\n\n      customOptions: {\n        options: {\n          tabSize: 8\n        },\n        src: 'test/fixtures/fix_tabsize.json'\n      },\n\n      customEvent: {\n        options: {\n          onBumped: function ( data ) {\n            grunt.log.writeln( 'version should be equal to 0.1.1' );\n          }\n        },\n        src: 'test/fixtures/fix_custom_event.json'\n      },\n\n      deploy: (function(){\n        if ( grunt.option( 'deploy' ) ) {\n          return {\n            src: [ 'package.json' ]\n          };\n        } else {\n          return {};\n        } // if..else\n      }())\n    },\n\n    // Unit tests.\n    nodeunit: {\n      tests: ['test/*_test.js']\n    }\n\n  });\n\n  // Load the plugins.\n  Object\n    .keys( grunt.config( 'pkg.devDependencies' ) )\n    .filter( function ( dep ) {\n      return ( /^grunt-/ ).test( dep );\n    })\n    .forEach( grunt.loadNpmTasks );\n\n  // Load this plugin's task(s).\n  grunt.loadTasks( 'tasks' );\n\n  // Whenever the \"test\" task is run, first clean and restore the fixtures,\n  // then run this plugin's task(s), then test the result.\n  grunt.registerTask( 'test', [ 'jshint', 'clean:test', 'restore', 'bump', 'nodeunit' ] );\n\n  // Build all the documentation (it requires the `--deploy` to be defined)\n  grunt.registerTask( 'doc', [ 'clean:doc', 'sildoc' ] );\n\n  // By default, lint and run all tests, then build documentation.\n  grunt.registerTask( 'default', [ 'jshint', 'test', 'doc' ] );\n\n  // Restore fixtures before to perform a new test\n  grunt.registerTask( 'restore', 'Restore fixtures', function () {\n    var path = require( 'path' ),\n      options = this.options();\n\n    options.fixtures.forEach( function ( fix ) {\n      grunt.file.copy(\n        path.join( options.baseDir, options.baseFile ),\n        path.join( options.baseDir, fix + '.json' )\n      );\n    });\n  });\n};\n"]}