Add Gulpfile lint to jake, fix lints
This commit is contained in:
Родитель
d008da5888
Коммит
a2fdc7e7ca
|
@ -27,7 +27,7 @@ declare global {
|
|||
import del = require("del");
|
||||
import mkdirP = require("mkdirP");
|
||||
import minimist = require("minimist");
|
||||
import browserify = require("browserify")
|
||||
import browserify = require("browserify");
|
||||
import through2 = require("through2");
|
||||
import merge2 = require("merge2");
|
||||
import intoStream = require("into-stream");
|
||||
|
@ -106,8 +106,6 @@ const servicesSources = require("./src/services/tsconfig.json").files.map((file)
|
|||
|
||||
const serverCoreSources = require("./src/server/tsconfig.json").files.map((file) => path.join(serverDirectory, file));
|
||||
|
||||
const serverSources = serverCoreSources.concat(servicesSources);
|
||||
|
||||
const languageServiceLibrarySources = [
|
||||
"editorServices.ts",
|
||||
"protocol.d.ts",
|
||||
|
@ -493,7 +491,7 @@ gulp.task(tsserverLibraryFile, false, [servicesFile], (done) => {
|
|||
declaration: true,
|
||||
outFile: tsserverLibraryFile
|
||||
}, /*useBuiltCompiler*/ true);
|
||||
let {js, dts}: {js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream} = gulp.src(languageServiceLibrarySources)
|
||||
const {js, dts}: {js: NodeJS.ReadableStream, dts: NodeJS.ReadableStream} = gulp.src(languageServiceLibrarySources)
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(newer(tsserverLibraryFile))
|
||||
.pipe(tsc(settings));
|
||||
|
@ -501,7 +499,7 @@ gulp.task(tsserverLibraryFile, false, [servicesFile], (done) => {
|
|||
return merge2([
|
||||
js.pipe(prependCopyright())
|
||||
.pipe(sourcemaps.write("."))
|
||||
.pipe(gulp.dest(".")),
|
||||
.pipe(gulp.dest(".")),
|
||||
dts.pipe(prependCopyright())
|
||||
.pipe(gulp.dest("."))
|
||||
]);
|
||||
|
|
|
@ -1043,7 +1043,8 @@ var lintTargets = compilerSources
|
|||
.concat(["instrumenter.ts"].map(function(f) { return path.join(harnessDirectory, f) }))
|
||||
.concat(serverCoreSources)
|
||||
.concat(tslintRulesFiles)
|
||||
.concat(servicesSources);
|
||||
.concat(servicesSources)
|
||||
.concat(["Gulpfile.ts"]);
|
||||
|
||||
|
||||
desc("Runs tslint on the compiler sources. Optional arguments are: f[iles]=regex");
|
||||
|
|
Загрузка…
Ссылка в новой задаче