forked from muhammadsammy/free-vscode-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.ts
45 lines (40 loc) · 1.57 KB
/
gulpfile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as gulp from 'gulp';
import * as optionsSchemaGenerator from './src/tools/GenerateOptionsSchema';
import * as packageDependencyUpdater from './src/tools/UpdatePackageDependencies';
import tslint from 'gulp-tslint';
require('./tasks/testTasks');
require('./tasks/onlinePackagingTasks');
require('./tasks/offlinePackagingTasks');
require('./tasks/backcompatTasks');
// Disable warning about wanting an async function
// tslint:disable-next-line
gulp.task('generateOptionsSchema', (): Promise<void> => {
optionsSchemaGenerator.GenerateOptionsSchema();
return Promise.resolve();
});
// Disable warning about wanting an async function
// tslint:disable-next-line
gulp.task('updatePackageDependencies', (): Promise<void> => {
return packageDependencyUpdater.updatePackageDependencies();
});
gulp.task('tslint', () => {
return gulp.src([
'**/*.ts',
'!**/*.d.ts',
'!**/typings**',
'!node_modules/**',
'!vsix/**'
])
.pipe(tslint({
program: require('tslint').Linter.createProgram("./tsconfig.json"),
configuration: "./tslint.json"
}))
.pipe(tslint.report({
summarizeFailureOutput: false,
emitError: false
}));
});