Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localization for 2019.1 #10502

Merged
merged 6 commits into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,13 @@ var agentPluginTasks = ['DownloadPipelineArtifact', 'PublishPipelineArtifact'];
// used to bump the patch version in task.json files
target.bump = function() {
taskList.forEach(function (taskName) {
// load files
var taskJsonPath = path.join(__dirname, 'Tasks', taskName, 'task.json');
var taskJson = JSON.parse(fs.readFileSync(taskJsonPath));

var taskLocJsonPath = path.join(__dirname, 'Tasks', taskName, 'task.loc.json');
var taskLocJson = JSON.parse(fs.readFileSync(taskLocJsonPath));

// skip agent plugin tasks
if(agentPluginTasks.indexOf(taskJson.name) > -1) {
return;
Expand All @@ -560,6 +564,16 @@ target.bump = function() {
}

taskJson.version.Patch = taskJson.version.Patch + 1;
taskLocJson.version.Patch = taskLocJson.version.Patch + 1;
stephenmichaelf marked this conversation as resolved.
Show resolved Hide resolved

fs.writeFileSync(taskJsonPath, JSON.stringify(taskJson, null, 4));
fs.writeFileSync(taskJsonPath, JSON.stringify(taskLocJson, null, 2));
stephenmichaelf marked this conversation as resolved.
Show resolved Hide resolved

// Check that task.loc and task.loc.json versions match
if ((taskJson.version.Major !== taskLocJson.version.Major) ||
(taskJson.version.Major !== taskLocJson.version.Major) ||
stephenmichaelf marked this conversation as resolved.
Show resolved Hide resolved
(taskJson.version.Major !== taskLocJson.version.Major)) {
console.log(`versions dont match, task json: ${JSON.stringify(taskJson.version)} task loc json: ${JSON.stringify(taskLocJson.version)}`);
}
});
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build": "node make.js build",
"test": "node make.js test",
"testLegacy": "node make.js testLegacy",
"package": "node make.js package"
"package": "node make.js package",
"bump": "node make.js bump"
},
"repository": {
"type": "git",
Expand Down