[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
pmb2
/
assets
/
tinymce
/
tools
/
tasks
/
[
Home
]
File: validateVersion.js
/* eslint-env node */ var fs = require('fs'); var path = require('path'); var package = require(path.join(__dirname, '../../package.json')); module.exports = function (grunt) { grunt.registerTask("validateVersion", "Check that version number in changelog and package.json match", function () { var changelog = fs.readFileSync(path.join(__dirname, '../../changelog.txt')); var changelogVersion = /Version ([0-9.]+)/.exec(changelog)[1]; if (package.version !== changelogVersion) { grunt.fail.fatal( 'Latest changelog version ' + changelogVersion + ' and package.json version ' + package.version + ' does not match.' ); } }); };