2019-02-05 17:03:46 +08:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2019-07-05 23:01:55 +08:00
|
|
|
const gulp = require('gulp');
|
2019-02-05 17:03:46 +08:00
|
|
|
const util = require('./lib/util');
|
2019-02-12 22:13:43 +08:00
|
|
|
const task = require('./lib/task');
|
2019-02-05 17:03:46 +08:00
|
|
|
const compilation = require('./lib/compilation');
|
|
|
|
|
|
|
|
// Full compile, including nls and inline sources in sourcemaps, for build
|
2021-01-07 03:36:22 +08:00
|
|
|
const compileBuildTask = task.define('compile-build',
|
|
|
|
task.series(
|
|
|
|
util.rimraf('out-build'),
|
|
|
|
compilation.compileTask('src', 'out-build', true)
|
|
|
|
)
|
|
|
|
);
|
2019-07-05 23:01:55 +08:00
|
|
|
gulp.task(compileBuildTask);
|
2021-01-07 03:36:22 +08:00
|
|
|
exports.compileBuildTask = compileBuildTask;
|