mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
* Reapply publish script changes lost in VS Code 1.19 merge
* Pick up changes from commit 0c14c3cc7f
* Add another // {{SQL CARBON EDIT}}
36 lines
993 B
JavaScript
36 lines
993 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
'use strict';
|
|
|
|
const gulp = require('gulp');
|
|
// {{SQL CARBON EDIT}}
|
|
const jeditor = require('gulp-json-editor');
|
|
|
|
gulp.task('mixin', function () {
|
|
// {{SQL CARBON EDIT}}
|
|
const updateUrl = process.env['SQLOPS_UPDATEURL'];
|
|
if (!updateUrl) {
|
|
console.log('Missing SQLOPS_UPDATEURL, skipping mixin');
|
|
return;
|
|
}
|
|
|
|
const quality = process.env['VSCODE_QUALITY'];
|
|
|
|
if (!quality) {
|
|
console.log('Missing VSCODE_QUALITY, skipping mixin');
|
|
return;
|
|
}
|
|
|
|
// {{SQL CARBON EDIT}}
|
|
let newValues = {
|
|
"updateUrl": updateUrl,
|
|
"quality": quality
|
|
};
|
|
|
|
return gulp.src('./product.json')
|
|
.pipe(jeditor(newValues))
|
|
.pipe(gulp.dest('.'));
|
|
}); |