All code moved to lib directory

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 8 years ago
parent f5c85c26e2
commit 9451c0691a
  1. 2
      BuildServer/lib/builder.ts
  2. 2
      BuildServer/lib/index.ts
  3. 2
      BuildServer/lib/report-processor.ts
  4. 0
      BuildServer/lib/routes/artifact.ts
  5. 0
      BuildServer/lib/routes/index.ts
  6. 2
      BuildServer/lib/routes/manual.ts
  7. 4
      BuildServer/lib/routes/postreceive.ts
  8. 2
      BuildServer/lib/routes/release.ts
  9. 2
      BuildServer/lib/routes/status.ts
  10. 2
      BuildServer/lib/task-processor.ts
  11. 2
      BuildServer/lib/tasks/cleanupafterdotnetbuild.ts
  12. 2
      BuildServer/lib/tasks/conditional.ts
  13. 2
      BuildServer/lib/tasks/copy.ts
  14. 2
      BuildServer/lib/tasks/copyglob.ts
  15. 2
      BuildServer/lib/tasks/cssnano.ts
  16. 2
      BuildServer/lib/tasks/cssnanoall.ts
  17. 2
      BuildServer/lib/tasks/deletefromcode.ts
  18. 2
      BuildServer/lib/tasks/dotnetbuild.ts
  19. 2
      BuildServer/lib/tasks/dotnetbuildandtest.ts
  20. 2
      BuildServer/lib/tasks/dotnetbuilderwrapper.ts
  21. 2
      BuildServer/lib/tasks/dotnetbuildwithoutcleanup.ts
  22. 2
      BuildServer/lib/tasks/dotnetcheckstyle.ts
  23. 2
      BuildServer/lib/tasks/dotnetcompile.ts
  24. 2
      BuildServer/lib/tasks/dotnetnugetpack.ts
  25. 2
      BuildServer/lib/tasks/dotnetnugetprocess.ts
  26. 2
      BuildServer/lib/tasks/dotnetnugetprocessinternal.ts
  27. 2
      BuildServer/lib/tasks/dotnetnugetpush.ts
  28. 2
      BuildServer/lib/tasks/dotnetnugetpushonly.ts
  29. 2
      BuildServer/lib/tasks/dotnetnugetrestore.ts
  30. 2
      BuildServer/lib/tasks/dotnetnunit.ts
  31. 2
      BuildServer/lib/tasks/dotnetnunitall.ts
  32. 2
      BuildServer/lib/tasks/dotnetpackwebapp.ts
  33. 2
      BuildServer/lib/tasks/dotnetrewrite.ts
  34. 2
      BuildServer/lib/tasks/echo.ts
  35. 2
      BuildServer/lib/tasks/eslintbrowser.ts
  36. 2
      BuildServer/lib/tasks/eslintbrowserall.ts
  37. 2
      BuildServer/lib/tasks/index.ts
  38. 2
      BuildServer/lib/tasks/noop.ts
  39. 2
      BuildServer/lib/tasks/packform.ts
  40. 2
      BuildServer/lib/tasks/parallel.ts
  41. 2
      BuildServer/lib/tasks/sequential.ts
  42. 2
      BuildServer/lib/tasks/uglifyjs.ts
  43. 2
      BuildServer/lib/tasks/uglifyjsall.ts
  44. 2
      BuildServer/lib/tasks/writefile.ts
  45. 2
      BuildServer/lib/tasks/zip.ts
  46. 0
      BuildServer/lib/types/index.ts
  47. 0
      BuildServer/lib/types/report-types.ts
  48. 0
      BuildServer/lib/types/settings-types.ts
  49. 0
      BuildServer/lib/types/task-processor-types.ts

@ -7,12 +7,12 @@ import * as JSONParse from "json-parse-safe";
import { join } from "path"; import { join } from "path";
import settings from "../settings"; import settings from "../settings";
import { ReportResult } from "../types";
import { gitLoader } from "./git/loader"; import { gitLoader } from "./git/loader";
import { createGithub } from "./github-wrapper"; import { createGithub } from "./github-wrapper";
import { send as sendMail } from "./mail-sender"; import { send as sendMail } from "./mail-sender";
import { writeReport } from "./report-processor"; import { writeReport } from "./report-processor";
import { processTask } from "./task-processor"; import { processTask } from "./task-processor";
import { ReportResult } from "./types";
const codePostfix = ""; const codePostfix = "";
const mailLazinessLevel = 1000; const mailLazinessLevel = 1000;

@ -15,8 +15,8 @@ import { join } from "path";
import * as serveFavicon from "serve-favicon"; import * as serveFavicon from "serve-favicon";
import * as serveStatic from "serve-static"; import * as serveStatic from "serve-static";
import settings from "../settings";
import * as routes from "./routes"; import * as routes from "./routes";
import settings from "./settings";
const app = express(); const app = express();

@ -8,7 +8,7 @@ import { ReadableStreamBuffer, WritableStreamBuffer } from "stream-buffers";
import * as _ from "underscore"; import * as _ from "underscore";
import { createGunzip, createGzip } from "zlib"; import { createGunzip, createGzip } from "zlib";
import { Message, Report, ReportResult } from "../types"; import { Message, Report, ReportResult } from "./types";
const reportFilename = "report.json.gz"; const reportFilename = "report.json.gz";
const maxAttemptsNumber = 100; const maxAttemptsNumber = 100;

@ -1,7 +1,7 @@
"use strict"; "use strict";
import * as _ from "underscore"; import * as _ from "underscore";
import { build } from "../lib/builder"; import { build } from "../builder";
export const get = (req, res) => res.render("manual"); export const get = (req, res) => res.render("manual");

@ -1,8 +1,8 @@
"use strict"; "use strict";
import * as JSONParse from "json-parse-safe"; import * as JSONParse from "json-parse-safe";
import { build } from "../lib/builder"; import { build } from "../builder";
import { commentOnPullRequest } from "../lib/commenter"; import { commentOnPullRequest } from "../commenter";
const getBranchDescription = (options) => `${options.owner}/${options.reponame}:${options.branchname || options.branch}`; const getBranchDescription = (options) => `${options.owner}/${options.reponame}:${options.branchname || options.branch}`;

@ -3,7 +3,7 @@
import { create as createArchiver } from "archiver"; import { create as createArchiver } from "archiver";
import { join } from "path"; import { join } from "path";
import { readReport } from "../lib/report-processor"; import { readReport } from "../report-processor";
const getDatePart = (report) => { const getDatePart = (report) => {
if (!report.date) { if (!report.date) {

@ -3,7 +3,7 @@
import * as _ from "underscore"; import * as _ from "underscore";
import { parse } from "url"; import { parse } from "url";
import { getReport } from "../lib/status-processor"; import { getReport } from "../status-processor";
const parseOptionsFromReferer = (path, callback) => { const parseOptionsFromReferer = (path, callback) => {
const pathParts = path.split("/").filter((value) => value); const pathParts = path.split("/").filter((value) => value);

@ -2,8 +2,8 @@
import * as _ from "underscore"; import * as _ from "underscore";
import { MessagesRoot, TaskInfo, TaskProcessor, TaskProcessorCallback, TaskProcessorCore } from "../types";
import tasks from "./tasks"; import tasks from "./tasks";
import { MessagesRoot, TaskInfo, TaskProcessor, TaskProcessorCallback, TaskProcessorCore } from "./types";
// TaskProcessor does not look like EventEmitter, so no need to extend EventEmitter and use `emit' here. // TaskProcessor does not look like EventEmitter, so no need to extend EventEmitter and use `emit' here.
const createTaskProcessor = (task: TaskInfo, outerProcessor: TaskProcessorCore, callback: TaskProcessorCallback) => { const createTaskProcessor = (task: TaskInfo, outerProcessor: TaskProcessorCore, callback: TaskProcessorCallback) => {

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => glob("**/obj/{Debug,Release}/*.{dll,pdb,xml}", { export default ((params, processor) => () => glob("**/obj/{Debug,Release}/*.{dll,pdb,xml}", {
cwd: processor.context.exported, cwd: processor.context.exported,

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => { export default ((params, processor) => {
const condition = (!params.owner || params.owner === processor.context.owner) const condition = (!params.owner || params.owner === processor.context.owner)

@ -3,7 +3,7 @@
import { copy } from "fs-extra"; import { copy } from "fs-extra";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const sourceFilePath = join(processor.context.exported, params.filename); const sourceFilePath = join(processor.context.exported, params.filename);

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => glob(params.mask, { export default ((params, processor) => () => glob(params.mask, {
cwd: processor.context.exported, cwd: processor.context.exported,

@ -4,7 +4,7 @@ import { process as cssnanoProcess } from "cssnano";
import { readFile, writeFile } from "fs"; import { readFile, writeFile } from "fs";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const filePath = join(processor.context.exported, params.filename); const filePath = join(processor.context.exported, params.filename);

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
const flagDoneName = "cssnanoallDone"; const flagDoneName = "cssnanoallDone";

@ -3,7 +3,7 @@
import { remove } from "fs-extra"; import { remove } from "fs-extra";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const sourceFilePath = join(processor.context.exported, params.filename); const sourceFilePath = join(processor.context.exported, params.filename);

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
export default ((params, processor) => sequential({ export default ((params, processor) => sequential({

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
export default ((params, processor) => sequential({ export default ((params, processor) => sequential({

@ -5,7 +5,7 @@ import * as JSONParse from "json-parse-safe";
import { WritableStreamBuffer } from "stream-buffers"; import { WritableStreamBuffer } from "stream-buffers";
import settings from "../../settings"; import settings from "../../settings";
import { Task } from "../../types"; import { Task } from "../types";
const wrapBuilder = (builder, input, onExit) => { const wrapBuilder = (builder, input, onExit) => {
const stdoutPromise = new Promise((resolve, reject) => { const stdoutPromise = new Promise((resolve, reject) => {

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
const createTasks = function *(params) { const createTasks = function *(params) {

@ -5,7 +5,7 @@ import { readFile } from "fs";
import * as glob from "glob"; import * as glob from "glob";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
const autoGeneratedMarker const autoGeneratedMarker
= "//------------------------------------------------------------------------------\n" = "//------------------------------------------------------------------------------\n"

@ -4,7 +4,7 @@ import { join } from "path";
import * as _ from "underscore"; import * as _ from "underscore";
import rawSettings from "../../settings"; import rawSettings from "../../settings";
import { Settings, Task } from "../../types"; import { Settings, Task } from "../types";
import dotnetbuilderwrapper from "./dotnetbuilderwrapper"; import dotnetbuilderwrapper from "./dotnetbuilderwrapper";
const settings: Settings = rawSettings; const settings: Settings = rawSettings;

@ -2,7 +2,7 @@
import * as _ from "underscore"; import * as _ from "underscore";
import { Task } from "../../types"; import { Task } from "../types";
import dotnetnugetprocessinternal from "./dotnetnugetprocessinternal"; import dotnetnugetprocessinternal from "./dotnetnugetprocessinternal";
export default ((params, processor) => dotnetnugetprocessinternal({ export default ((params, processor) => dotnetnugetprocessinternal({

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
import conditional from "./conditional"; import conditional from "./conditional";
export default ((params, processor) => conditional({ export default ((params, processor) => conditional({

@ -2,7 +2,7 @@
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
const postfixLength = 16; const postfixLength = 16;

@ -2,7 +2,7 @@
import * as _ from "underscore"; import * as _ from "underscore";
import { Task } from "../../types"; import { Task } from "../types";
import dotnetnugetprocessinternal from "./dotnetnugetprocessinternal"; import dotnetnugetprocessinternal from "./dotnetnugetprocessinternal";
export default ((params, processor) => dotnetnugetprocessinternal({ export default ((params, processor) => dotnetnugetprocessinternal({

@ -3,7 +3,7 @@
import { join } from "path"; import { join } from "path";
import settings from "../../settings"; import settings from "../../settings";
import { Task } from "../../types"; import { Task } from "../types";
import dotnetbuilderwrapper from "./dotnetbuilderwrapper"; import dotnetbuilderwrapper from "./dotnetbuilderwrapper";
export default ((params, processor) => dotnetbuilderwrapper({ export default ((params, processor) => dotnetbuilderwrapper({

@ -2,7 +2,7 @@
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
export default ((params, processor) => sequential({ export default ((params, processor) => sequential({

@ -2,7 +2,7 @@
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
import dotNetBuilderWrapper from "./dotnetbuilderwrapper"; import dotNetBuilderWrapper from "./dotnetbuilderwrapper";
export default ((params, processor) => dotNetBuilderWrapper({ export default ((params, processor) => dotNetBuilderWrapper({

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
const flagDoneName = "dotnetnunitallDone"; const flagDoneName = "dotnetnunitallDone";

@ -4,7 +4,7 @@ import { readFileSync } from "fs";
import { render } from "mustache"; import { render } from "mustache";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
const msbuildTemplate = readFileSync(join(__dirname, "/dotnetpackwebapp.template.msbuild"), { encoding: "utf8" }); const msbuildTemplate = readFileSync(join(__dirname, "/dotnetpackwebapp.template.msbuild"), { encoding: "utf8" });

@ -6,7 +6,7 @@ import * as glob from "glob";
import { join } from "path"; import { join } from "path";
import rawSettings from "../../settings"; import rawSettings from "../../settings";
import { Settings, Task } from "../../types"; import { Settings, Task } from "../types";
const flagDoneName = "dotnetrewriterDone"; const flagDoneName = "dotnetrewriterDone";

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
if (params.error) { if (params.error) {

@ -4,7 +4,7 @@ import { CLIEngine } from "eslint";
import { join } from "path"; import { join } from "path";
import rawSettings from "../../settings"; import rawSettings from "../../settings";
import { Settings, Task } from "../../types"; import { Settings, Task } from "../types";
const settings: Settings = rawSettings; const settings: Settings = rawSettings;

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
const flagDoneName = "eslintbrowserallDone"; const flagDoneName = "eslintbrowserallDone";

@ -3,7 +3,7 @@
import { readdirSync } from "fs"; import { readdirSync } from "fs";
import * as _ from "underscore"; import * as _ from "underscore";
import { Tasks } from "../../types"; import { Tasks } from "../types";
const taskNames = _.unique(readdirSync(__dirname).map((file) => { const taskNames = _.unique(readdirSync(__dirname).map((file) => {
if (file.match(/\.ts$/) !== null) { if (file.match(/\.ts$/) !== null) {

@ -1,5 +1,5 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => processor.done()) as Task; export default ((params, processor) => processor.done()) as Task;

@ -1,6 +1,6 @@
"use strict"; "use strict";
import { Task } from "../../types"; import { Task } from "../types";
import sequential from "./sequential"; import sequential from "./sequential";
export default ((params, processor) => sequential({ export default ((params, processor) => sequential({

@ -2,7 +2,7 @@
import { parallel } from "async"; import { parallel } from "async";
import { Task } from "../../types"; import { Task } from "../types";
const mapper = (processor) => (task) => (callback) => processor.processTask(task, callback); const mapper = (processor) => (task) => (callback) => processor.processTask(task, callback);

@ -2,7 +2,7 @@
import { series } from "async"; import { series } from "async";
import { Task } from "../../types"; import { Task } from "../types";
const mapper = (processor) => (task) => (callback) => processor.processTask(task, callback); const mapper = (processor) => (task) => (callback) => processor.processTask(task, callback);

@ -4,7 +4,7 @@ import { writeFile } from "fs";
import { join, normalize } from "path"; import { join, normalize } from "path";
import { minify } from "uglify-js"; import { minify } from "uglify-js";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const filePath = normalize(join(processor.context.exported, params.filename)); const filePath = normalize(join(processor.context.exported, params.filename));

@ -2,7 +2,7 @@
import * as glob from "glob"; import * as glob from "glob";
import { Task } from "../../types"; import { Task } from "../types";
const doneFlagName = "uglifyjsallDone"; const doneFlagName = "uglifyjsallDone";

@ -3,7 +3,7 @@
import { writeFile } from "fs"; import { writeFile } from "fs";
import { join } from "path"; import { join } from "path";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const filePath = join(processor.context.exported, params.filename); const filePath = join(processor.context.exported, params.filename);

@ -4,7 +4,7 @@ import { create as createArchiver } from "archiver";
import { createWriteStream } from "fs"; import { createWriteStream } from "fs";
import { join, normalize } from "path"; import { join, normalize } from "path";
import { Task } from "../../types"; import { Task } from "../types";
export default ((params, processor) => () => { export default ((params, processor) => () => {
const sourceDirectoryPath = normalize(join(processor.context.exported, String(params.directory || ""))); const sourceDirectoryPath = normalize(join(processor.context.exported, String(params.directory || "")));

Loading…
Cancel
Save