shenanigans-manager
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -37,5 +37,5 @@ "use strict"; | ||
} | ||
yield this.subroutine(createAllRepositories_1.CreateAllRepositories, __assign({}, this.args, { install: true })); | ||
yield this.subroutine(createAllRepositories_1.CreateAllRepositories, __assign({}, this.args, { install: true, link: true })); | ||
yield this.subroutine(runGulpInAll_1.RunGulpInAll, this.args); | ||
yield this.subroutine(linkAllRepositories_1.LinkAllRepositories, this.args); | ||
yield this.subroutine(runGulpInAll_1.RunGulpInAll, this.args); | ||
}); | ||
@@ -42,0 +42,0 @@ } |
@@ -25,5 +25,4 @@ "use strict"; | ||
yield this.subroutine(ensureRepositoryExists_1.EnsureRepositoryExists, this.args); | ||
const shell = new shell_1.Shell(this.logger); | ||
shell.setCwd(this.args.directory, this.args.repository); | ||
yield shell.execute("gulp setup && gulp"); | ||
yield new shell_1.Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("gulp setup && gulp"); | ||
}); | ||
@@ -30,0 +29,0 @@ } |
@@ -25,5 +25,3 @@ "use strict"; | ||
yield this.subroutine(ensureRepositoryExists_1.EnsureRepositoryExists, this.args); | ||
const shell = new shell_1.Shell(this.logger); | ||
yield shell | ||
.setCwd(this.args.directory, this.args.repository) | ||
yield new shell_1.Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("npm install gulp-shenanigans@latest"); | ||
@@ -30,0 +28,0 @@ }); |
@@ -39,5 +39,5 @@ import { ILogger } from "./logger"; | ||
* @param logger Logs on important events. | ||
* @param cwd Initial working directory. | ||
* @param pathComponents Path components for the initial directory. | ||
*/ | ||
constructor(logger: ILogger, cwd?: string); | ||
constructor(logger: ILogger, ...pathComponents: string[]); | ||
/** | ||
@@ -44,0 +44,0 @@ * Sets the current working directory. |
@@ -21,5 +21,5 @@ "use strict"; | ||
* @param logger Logs on important events. | ||
* @param cwd Initial working directory. | ||
* @param pathComponents Path components for the initial directory. | ||
*/ | ||
constructor(logger, cwd = ".") { | ||
constructor(logger, ...pathComponents) { | ||
/** | ||
@@ -30,3 +30,6 @@ * Sanitizes shell logs to remove unnecessary strings. | ||
this.logger = logger; | ||
this.cwd = cwd; | ||
if (pathComponents.length === 0) { | ||
pathComponents = ["."]; | ||
} | ||
this.setCwd(...pathComponents); | ||
} | ||
@@ -33,0 +36,0 @@ /** |
@@ -42,5 +42,7 @@ "use strict"; | ||
"not compatible with your operating system or architecture: fsevents@", | ||
"notsup Not compatible", | ||
"npm", | ||
"prefer global", | ||
"optional", | ||
"Skipping failed optional dependency", | ||
"Cloning into", | ||
@@ -47,0 +49,0 @@ "WARN" |
{ | ||
"name": "shenanigans-manager", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Manages large-scale operations on FullScreenShenanigans project.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -26,8 +26,9 @@ import * as fs from "fs"; | ||
...this.args, | ||
install: true | ||
install: true, | ||
link: true | ||
}); | ||
await this.subroutine(RunGulpInAll, this.args); | ||
await this.subroutine(LinkAllRepositories, this.args); | ||
await this.subroutine(RunGulpInAll, this.args); | ||
} | ||
} |
@@ -27,7 +27,5 @@ import { Command, ICommandArgs } from "../command"; | ||
const shell: Shell = new Shell(this.logger); | ||
shell.setCwd(this.args.directory, this.args.repository); | ||
await shell.execute("gulp setup && gulp"); | ||
await new Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("gulp setup && gulp"); | ||
} | ||
} |
@@ -27,8 +27,5 @@ import { Command, ICommandArgs } from "../command"; | ||
const shell: Shell = new Shell(this.logger); | ||
await shell | ||
.setCwd(this.args.directory, this.args.repository) | ||
await new Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("npm install gulp-shenanigans@latest"); | ||
} | ||
} |
@@ -50,7 +50,12 @@ import { ChildProcess, exec } from "child_process"; | ||
* @param logger Logs on important events. | ||
* @param cwd Initial working directory. | ||
* @param pathComponents Path components for the initial directory. | ||
*/ | ||
public constructor(logger: ILogger, cwd: string = ".") { | ||
public constructor(logger: ILogger, ...pathComponents: string[]) { | ||
this.logger = logger; | ||
this.cwd = cwd; | ||
if (pathComponents.length === 0) { | ||
pathComponents = ["."]; | ||
} | ||
this.setCwd(...pathComponents); | ||
} | ||
@@ -57,0 +62,0 @@ |
@@ -16,5 +16,7 @@ /** | ||
"not compatible with your operating system or architecture: fsevents@", | ||
"notsup Not compatible", | ||
"npm", | ||
"prefer global", | ||
"optional", | ||
"Skipping failed optional dependency", | ||
"Cloning into", | ||
@@ -21,0 +23,0 @@ "WARN" |
84484
2574