shenanigans-manager
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -5,2 +5,3 @@ const del = require("del"); | ||
const runSequence = require("run-sequence").use(gulp); | ||
const sourcemaps = require("gulp-sourcemaps"); | ||
const ts = require("gulp-typescript"); | ||
@@ -25,2 +26,3 @@ const tslint = require("gulp-tslint"); | ||
.src() | ||
.pipe(sourcemaps.init()) | ||
.pipe(project()); | ||
@@ -30,3 +32,5 @@ | ||
output.dts.pipe(gulp.dest("lib")), | ||
output.js.pipe(gulp.dest("lib")) | ||
output.js | ||
.pipe(sourcemaps.write()) | ||
.pipe(gulp.dest("lib")) | ||
]); | ||
@@ -33,0 +37,0 @@ }); |
@@ -27,6 +27,5 @@ "use strict"; | ||
const startTime = moment(); | ||
const args = __assign({ directory: process.cwd() }, minimist(process.argv.slice(2))); | ||
if (!args.command) { | ||
throw new Error("Requires --command."); | ||
} | ||
const argv = minimist(process.argv.slice(2)); | ||
const commandName = argv._[0] || "help"; | ||
const args = __assign({ commandName: commandName, directory: process.cwd() }, argv); | ||
(() => __awaiter(this, void 0, void 0, function* () { | ||
@@ -37,3 +36,3 @@ const runner = new runner_1.Runner(new commandSearcher_1.CommandSearcher([path.join(__dirname, "commands")], new nameTransformer_1.NameTransformer())); | ||
args, | ||
command: args.command, | ||
commandName, | ||
logger: new consoleLogger_1.ConsoleLogger(), | ||
@@ -43,6 +42,5 @@ userSettings: settings_1.settings | ||
if (!result) { | ||
console.error(`Could not find command '${args.command}'...`); | ||
console.error(`Could not find command '${commandName}'...`); | ||
return; | ||
} | ||
console.log("Success?"); | ||
} | ||
@@ -52,5 +50,9 @@ catch (error) { | ||
} | ||
const endTime = moment(); | ||
const duration = moment.duration(endTime.diff(startTime)); | ||
console.log(`\nshenanigans-manager took ${duration.humanize()}.`); | ||
if (commandName !== "help") { | ||
const endTime = moment(); | ||
const duration = moment.duration(endTime.diff(startTime)); | ||
console.log(`\nshenanigans-manager took ${duration.humanize()}.`); | ||
} | ||
}))(); | ||
//# sourceM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AgICBjb21tYW5kTmFtZSxcclxuICAgICAgICAgICAgbG9nZ2VyOiBuZXcgQ29uc29sZUxvZ2dlcigpLFxyXG4gICAgICAgICAgICB1c2VyU2V0dGluZ3M6IHNldHRpbmdzXHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIGlmICghcmVzdWx0KSB7XHJcbiAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoYENvdWxkIG5vdCBmaW5kIGNvbW1hbmQgJyR7Y29tbWFuZE5hbWV9Jy4uLmApO1xyXG4gICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgfVxyXG4gICAgfSBjYXRjaCAoZXJyb3IpIHtcclxuICAgICAgICBjb25zb2xlLmVycm9yKGVycm9yLnN0YWNrIHx8IGVycm9yLm1lc3NhZ2UpO1xyXG4gICAgfVxyXG5cclxuICAgIGlmIChjb21tYW5kTmFtZSAhPT0gXCJoZWxwXCIpIHtcclxuICAgICAgICBjb25zdCBlbmRUaW1lOiBtb21lbnQuTW9tZW50ID0gbW9tZW50KCk7XHJcbiAgICAgICAgY29uc3QgZHVyYXRpb246IG1vbWVudC5EdXJhdGlvbiA9IG1vbWVudC5kdXJhdGlvbihlbmRUaW1lLmRpZmYoc3RhcnRUaW1lKSk7XHJcbiAgICAgICAgY29uc29sZS5sb2coYFxcbnNoZW5hbmlnYW5zLW1hbmFnZXIgdG9vayAke2R1cmF0aW9uLmh1bWFuaXplKCl9LmApO1xyXG4gICAgfVxyXG59KSgpO1xyXG4iXX0= |
@@ -35,1 +35,3 @@ "use strict"; | ||
exports.Command = Command; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUE4QkE7Ozs7O0dBS0c7QUFDSDtJQWdCSTs7Ozs7O09BTUc7SUFDSCxZQUFtQixJQUFXLEVBQUUsTUFBZSxFQUFFLFFBQW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4gICAgICogXHJcbiAgICAgKiBAdHlwZSBUU3ViQXJncyAgIFR5cGUgb2YgdGhlIHN1Yi1jb21tYW5kJ3MgYXJndW1lbnRzLlxyXG4gICAgICogQHR5cGUgVFN1YlJlc3VsdHMgICBUeXBlIHRoZSBzdWItY29tbWFuZCByZXR1cm5zLlxyXG4gICAgICogQHR5cGUgVFN1YkNvbW1hbmQgICBUeXBlIG9mIHRoZSBzdWItY29tbWFuZC5cclxuICAgICAqIEBwYXJhbSBjb21tYW5kICAgU3ViLWNvbW1hbmQgY2xhc3MgdG8gcnVuLlxyXG4gICAgICogQHBhcmFtIGFyZ3MgICBBcmdzIGZvciB0aGUgc3ViLWNvbW1hbmQuXHJcbiAgICAgKi9cclxuICAgIHByb3RlY3RlZCBzdWJyb3V0aW5lPFRTdWJBcmdzIGV4dGVuZHMgSUNvbW1hbmRBcmdzLCBUU3ViUmVzdWx0cywgVFN1YkNvbW1hbmQgZXh0ZW5kcyBJQ29tbWFuZENsYXNzPFRTdWJBcmdzLCBUU3ViUmVzdWx0cz4+XHJcbiAgICAgICAgKGNvbW1hbmQ6IFRTdWJDb21tYW5kLCBhcmdzOiBUU3ViQXJncyk6IFByb21pc2U8VFN1YlJlc3VsdHM+IHtcclxuICAgICAgICByZXR1cm4gbmV3IGNvbW1hbmQoYXJncywgdGhpcy5sb2dnZXIsIHRoaXMuc2V0dGluZ3MpLmV4ZWN1dGUoKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -20,3 +20,3 @@ "use strict"; | ||
const command_1 = require("../command"); | ||
const createAllRepositories_1 = require("./createAllRepositories"); | ||
const cloneAllRepositories_1 = require("./cloneAllRepositories"); | ||
const linkAllRepositories_1 = require("./linkAllRepositories"); | ||
@@ -38,3 +38,3 @@ const runGulpInAll_1 = require("./runGulpInAll"); | ||
} | ||
yield this.subroutine(createAllRepositories_1.CreateAllRepositories, __assign({}, this.args, { install: true, link: true })); | ||
yield this.subroutine(cloneAllRepositories_1.CloneAllRepositories, __assign({}, this.args, { install: true })); | ||
yield this.subroutine(runGulpInAll_1.RunGulpInAll, this.args); | ||
@@ -46,1 +46,3 @@ yield this.subroutine(linkAllRepositories_1.LinkAllRepositories, this.args); | ||
exports.CompleteSetup = CompleteSetup; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9jb21wbGV0ZVNldHVwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseUJBQXlCO0FBRXpCLHdDQUFtRDtBQUNuRCxpRUFBOEQ7QUFDOUQsK0RBQTREO0FBQzVELGlEQUE4QztBQUU5Qzs7R0FFRztBQUNILG1CQUEyQixTQUFRLGlCQUEyQjtJQUMxRDs7OztPQUlHO0lBQ1UsT0FBTzs7WUFDaEIsRUFBRSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUFDO2dCQUN0QyxFQUFFLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7WUFDdEMsQ0FBQztZQUVELE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FDakIsMkNBQTJCLGVBRXBCLElBQUksQ0FBQyxJQUFJLElBQ1osT0FBTyxFQUFFLElBQUksSUFDZixDQUFDO1lBRVAsTUFBTSxJQUFJLENBQUMsVUFBVSxDQUFDLDJCQUFZLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1lBQy9DLE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FBQyx5Q0FBbUIsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDMUQsQ0FBQztLQUFBO0NBQ0o7QUFyQkQsc0NBcUJDIiwiZmlsZSI6ImNvbW1hbm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gICAgICAgICAgICAgLi4udGhpcy5hcmdzLFxuICAgICAgICAgICAgICAgIGluc3RhbGw6IHRydWVcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgIGF3YWl0IHRoaXMuc3Vicm91dGluZShSdW5HdWxwSW5BbGwsIHRoaXMuYXJncyk7XG4gICAgICAgIGF3YWl0IHRoaXMuc3Vicm91dGluZShMaW5rQWxsUmVwb3NpdG9yaWVzLCB0aGlzLmFyZ3MpO1xuICAgIH1cbn1cbiJdfQ== |
@@ -34,1 +34,3 @@ "use strict"; | ||
exports.DoesRepositoryExist = DoesRepositoryExist; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9kb2VzUmVwb3NpdG9yeUV4aXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLHlCQUF5QjtBQUN6Qiw2QkFBNkI7QUFFN0Isd0NBQW1EO0FBWW5EOztHQUVHO0FBQ0gseUJBQWlDLFNBQVEsaUJBQXVDO0lBQzVFOzs7OztPQUtHO0lBQ1UsT0FBTzs7WUFDaEIsTUFBTSxDQUFDLElBQUksT0FBTyxDQUFVLENBQUMsT0FBTztnQkFDaEMsRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsU0FBUyxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQyxNQUFlO29CQUM1RSxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7Z0JBQ3BCLENBQUMsQ0FBQyxDQUFDO1lBQ1AsQ0FBQyxDQUFDLENBQUM7UUFDUCxDQUFDO0tBQUE7Q0FDSjtBQWRELGtEQWNDIiwiZmlsZSI6ImNvbW1hbmRzL2RvZXNSZXBvc2l0b3J5RXhpc3QuanMiLCJzb3VyY2VzQ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b2xlYW4pOiB2b2lkID0+IHtcbiAgICAgICAgICAgICAgICByZXNvbHZlKGV4aXN0cyk7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgfVxufVxuIl19 |
@@ -39,1 +39,3 @@ "use strict"; | ||
exports.EnsureAllRepositoriesExist = EnsureAllRepositoriesExist; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9lbnN1cmVBbGxSZXBvc2l0b3JpZXNFeGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdDQUFtRDtBQUNuRCxxRUFBa0U7QUFZbEU7O0dBRUc7QUFDSCxnQ0FBd0MsU0FBUSxpQkFBOEM7SUFDMUY7Ozs7O09BS0c7SUFDVSxPQUFPOztZQUNoQixHQUFHLENBQUMsQ0FBQyxNQUFNLFVBQVUsSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUM7Z0JBQ3JELE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FDakIsK0NBQXNCLGVBRWYsSUFBSSxDQUFDLElBQUksSUFDWixVQUFVLElBQ1osQ0FBQztZQUNYLENBQUM7UUFDTCxDQUFDO0tBQUE7Q0FDSjtBQWpCRCxnRUFpQkMiLCJmaWxlIjoiY29tbWFuZHMvZW5zdXJlQWxsUmVwb3NpdG9yaWVzRXhpc3QuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21tYW5kLCBJQ29tbWFuZEFyZ3MgfSBmcm9tIFwiLi4vY29tbWFuZFwiO1xuaW1wb3J0IHsgRW5zdXJlUmVwb3NpdG9yeUV4aXN0cyB9IGZyb20gXCIuL2Vuc3VyZVJlcG9zaXRvcnlFeGlzdHNcIjtcblxuLyoqXG4gKiBBcmd1bWVudHMgZm9yIGFuIEVuc3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iJdfQ== |
@@ -11,3 +11,3 @@ "use strict"; | ||
const command_1 = require("../command"); | ||
const createRepository_1 = require("./createRepository"); | ||
const cloneRepository_1 = require("./cloneRepository"); | ||
const doesRepositoryExist_1 = require("./doesRepositoryExist"); | ||
@@ -26,3 +26,3 @@ /** | ||
if (!(yield this.subroutine(doesRepositoryExist_1.DoesRepositoryExist, this.args))) { | ||
yield this.subroutine(createRepository_1.CreateRepository, this.args); | ||
yield this.subroutine(cloneRepository_1.CloneRepository, this.args); | ||
} | ||
@@ -33,1 +33,3 @@ }); | ||
exports.EnsureRepositoryExists = EnsureRepositoryExists; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9lbnN1cmVSZXBvc2l0b3J5RXhpc3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLHdDQUFtRDtBQUNuRCx1REFBb0Q7QUFDcEQsK0RBQTREO0FBaUI1RDs7R0FFRztBQUNILDRCQUFvQyxTQUFRLGlCQUEwQztJQUNsRjs7OztPQUlHO0lBQ1UsT0FBTzs7WUFDaEIsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FBQyx5Q0FBbUIsRUFBRSxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7Z0JBQzNELE1BQU0sSUFBSSxDQUFDLFVBQVUsQ0FBQyxpQ0FBZSxFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUN0RCxDQUFDO1FBQ0wsQ0FBQztLQUFBO0NBQ0o7QUFYRCx3REFXQyIsImZpbGUiOiJjb21tYW5kcy9lbnN1cmVSZXBvc2l0b3J5RXhpc3RzLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tbWFuZCwgSUNvbW1hbmRBcmdz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eGlzdCwgdGhpcy5hcmdzKSkpIHtcbiAgICAgICAgICAgIGF3YWl0IHRoaXMuc3Vicm91dGluZShDbG9uZVJlcG9zaXRvcnksIHRoaXMuYXJncyk7XG4gICAgICAgIH1cbiAgICB9XG59XG4iXX0= |
@@ -35,1 +35,3 @@ "use strict"; | ||
exports.LinkAllRepositories = LinkAllRepositories; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9saW5rQWxsUmVwb3NpdG9yaWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLHdDQUFtRDtBQUNuRCxvQ0FBaUM7QUFFakM7O0dBRUc7QUFDSCx5QkFBaUMsU0FBUSxpQkFBMkI7SUFDaEU7Ozs7T0FJRztJQUNVLE9BQU87O1lBQ2hCLE1BQU0sS0FBSyxHQUFVLElBQUksYUFBSyxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQztZQUU1QyxHQUFHLENBQUMsQ0FBQyxNQUFNLE1BQU0sSUFBSSxJQUFJLENBQUMsUUFBUSxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUM7Z0JBQ2pELE1BQU0sTUFBTSxHQUFhLElBQUksQ0FBQyxRQUFRLENBQUMsZUFBZTtxQkFDakQsTUFBTSxDQUFDLENBQUMsVUFBa0IsS0FBYyxVQUFVLEtBQUssTUFBTSxDQUFDLENBQUM7Z0JBRXBFLE1BQU0sS0FBSztxQkFDTixNQUFNLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsTUFBTSxDQUFDO3FCQUNuQyxPQUFPLENBQUMsWUFBWSxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsQ0FBQztZQUNqRCxDQUFDO1FBQ0wsQ0FBQztLQUFBO0NBQ0o7QUFsQkQsa0RBa0JDIiwiZmls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NvbW1hbmQuXHJcbiAqL1xyXG5leHBvcnQgaW50ZXJmYWNlIElSdW5HdWxwSW5BcmdzIGV4dGVuZHMgSUNvbW1hbmRBcmdzIHtcclxuICAgIC8qKlxyXG4gICAgICogTmFtZXMgb2YgdGhlIHJlcG9zaXRvcnkuXHJcbiAgICAgKi9cclxuICAgIHJlcG9zaXRvcnk6IHN0cmluZztcclxufVxyXG5cclxuLyoqXHJcbiAqIENyZWF0ZXMgYSByZXBvc2l0b3J5IGxvY2FsbHkuXHJcbiAqL1xyXG5leHBvcnQgY2xhc3MgUnVuR3VscEluIGV4dGVuZHMgQ29tbWFuZDxJUnVuR3VscEluQXJncywgdm9pZD4ge1xyXG4gICAgLyoqXHJcbiAgICAgKiBFeGVjdXRlcyB0aGUgY29tbWFuZC5cclxuICAgICAqIFxyXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciBydW5uaW5nIHRoZSBjb21tYW5kLlxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgYXN5bmMgZXhlY3V0ZSgpOiBQcm9taXNlPGFueT4ge1xyXG4gICAgICAgIGF3YWl0IHRoaXMuc3Vicm91dGluZShFbnN1cmVSZXBvc2l0b3J5RXhpc3RzLCB0aGlzLmFyZ3MpO1xyXG5cclxuICAgICAgICBhd2FpdCBuZXcgU2hlbGwodGhpcy5sb2dnZXIsIHRoaXMuYXJncy5kaXJlY3RvcnksIHRoaXMuYXJncy5yZXBvc2l0b3J5KVxyXG4gICAgICAgICAgICAuZXhlY3V0ZShcImd1bHAgc2V0dXAgJiYgZ3VscFwiKTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -38,1 +38,3 @@ "use strict"; | ||
exports.RunGulpInAll = RunGulpInAll; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy9ydW5HdWxwSW5BbGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7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gdGhpcy5zZXR0aW5ncy5hbGxSZXBvc2l0b3JpZXMpIHtcclxuICAgICAgICAgICAgYXdhaXQgdGhpcy5zdWJyb3V0aW5lKFxyXG4gICAgICAgICAgICAgICAgUnVuR3VscEluLFxyXG4gICAgICAgICAgICAgICAge1xyXG4gICAgICAgICAgICAgICAgICAgIC4uLnRoaXMuYXJncyxcclxuICAgICAgICAgICAgICAgICAgICByZXBvc2l0b3J5XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -26,3 +26,3 @@ "use strict"; | ||
yield new shell_1.Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("npm install gulp-shenanigans@latest"); | ||
.execute("npm install gulp-shenanigans@latest --silent"); | ||
}); | ||
@@ -32,1 +32,3 @@ } | ||
exports.UpdateGulpShenanigansIn = UpdateGulpShenanigansIn; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kcy91cGRhdGVHdWxwU2hlbmFuaWdhbnNJbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSx3Q0FBbUQ7QUFDbkQsb0NBQWlDO0FBQ2pDLHFFQUFrRTtBQVlsRTs7R0FFRztBQUNILDZCQUFxQyxTQUFRLGlCQUEyQztJQUNwRjs7OztPQUlHO0lBQ1UsT0FBTzs7WUFDaEIsTUFBTSxJQUFJLENBQUMsVUFBVSxDQUFDLCtDQUFzQixFQUFFLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUV6RCxNQUFNLElBQUksYUFBSyxDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUM7aUJBQ2xFLE9BQU8sQ0FBQyw4Q0FBOEMsQ0FB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29tbWFuZEFyZ3MgfSBmcm9tIFwiLi4vY29tbWFuZFwiO1xuaW1wb3J0IHsgVXBkYXRlR3VscFNoZW5hbmlnYW5zSW4gfSBmcm9tIFwiLi91cGRhdGVHdWxwU2hlbmFuaWdhbnNJblwiO1xuXG4vKipcbiAqIENyZWF0ZXMgYSByZXBvc2l0b3J5IGxvY2FsbHkuXG4gKi9cbmV4cG9ydCBjbGFzcyBVcGRhdGVHdWxwU2hlbmFuaWdhbnNJbkFsbCBleHRlbmRzIENvbW1hbmQ8SUNvbW1hbmRBcmdzLCB2b2lkPiB7XG4gICAgLyoqXG4gICAgICogRXhlY3V0ZXMgdGhlIGNvbW1hbmQuXG4gICAgICogXG4gICAgICogQHJldHVybnMgQSBQcm9taXNlIGZvciBleGVjdXRpbmcgdGhlIGNvbW1hbmQuXG4gICAgICovXG4gICAgcHVibGljIGFzeW5jIGV4ZWN1dGUoKTogUHJvbWlzZTxhbnk+IHtcbiAgICAgICAgZm9yIChjb25zdCByZXBvc2l0b3J5IG9mIHRoaXMuc2V0dGluZ3MuYWxsUmVwb3NpdG9yaWVzKSB7XG4gICAgICAgICAgICBhd2FpdCB0aGlzLnN1YnJvdXRpbmUoXG4gICAgICAgICAgICAgICAgVXBkYXRlR3VscFNoZW5hbmlnYW5zSW4sXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAuLi50aGlzLmFyZ3MsXG4gICAgICAgICAgICAgICAgICAgIHJlcG9zaXRvcnlcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cbn1cbiJdfQ== |
@@ -38,1 +38,3 @@ "use strict"; | ||
exports.CommandSearcher = CommandSearcher; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kU2VhcmNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHlCQUF5QjtBQUN6Qiw2Qk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29tbWFuZCBzdWItY2xhc3MsIGlmIGl0IGNhbiBiZSBmb3VuZC5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHNlYXJjaDxUQ29tbWFuZENsYXNzIGV4dGVuZHMgSUNvbW1hbmRDbGFzczxhbnksIGFueT4+KG5hbWU6IHN0cmluZyk6IFRDb21tYW5kQ2xhc3MgfCB1bmRlZmluZWQge1xyXG4gICAgICAgIGNvbnN0IGNhbWVsQ2FzZU5hbWU6IHN0cmluZyA9IHRoaXMubmFtZVRyYW5zZm9ybWVyLnRvQ2FtZWxDYXNlKG5hbWUpO1xyXG5cclxuICAgICAgICBmb3IgKGNvbnN0IGRpcmVjdG9yeSBvZiB0aGlzLmRpcmVjdG9yaWVzKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IGpvaW5lZFBhdGg6IHN0cmluZyA9IHBhdGguam9pbihkaXJlY3RvcnksIGNhbWVsQ2FzZU5hbWUgKyBcIi5qc1wiKTtcclxuXHJcbiAgICAgICAgICAgIGlmIChmcy5leGlzdHNTeW5jKGpvaW5lZFBhdGgpKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gcmVxdWlyZShqb2luZWRQYXRoKVt0aGlzLm5hbWVUcmFuc2Zvcm1lci50b1Bhc2NhbENhc2UobmFtZSldO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gdW5kZWZpbmVkO1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -67,2 +67,6 @@ /** | ||
/** | ||
* Logs general information. | ||
*/ | ||
log: typeof console.log; | ||
/** | ||
* Logs that executing a command has started. | ||
@@ -69,0 +73,0 @@ * |
"use strict"; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJsb2dnZXIuanMiLCJzb3VyY2VzQ29udGVudCI6W119 |
@@ -8,2 +8,6 @@ import "colors"; | ||
/** | ||
* Logs general information. | ||
*/ | ||
log(message?: any, ...args: any[]): void; | ||
/** | ||
* Logs that executing a command has started. | ||
@@ -10,0 +14,0 @@ * |
@@ -8,2 +8,8 @@ "use strict"; | ||
/** | ||
* Logs general information. | ||
*/ | ||
log(message, ...args) { | ||
console.log(message, ...args); | ||
} | ||
/** | ||
* Logs that executing a command has started. | ||
@@ -55,1 +61,3 @@ * | ||
exports.ConsoleLogger = ConsoleLogger; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9sb2dnZXJzL2NvbnNvbGVMb2dnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGtCQUFnQjtBQVFoQjs7R0FFRztBQUNIO0lBQ0k7O09BRUc7SUFDSSxHQUFHLENBQUMsT0FBYSxFQUFFLEdBQUcsSUFBVztRQUNwQyxPQUFPLENBQUMsR0FBRyxDQUFDLE9BQU8sRUFBRSxHQUFHLElBQUksQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFRDs7OztPQUlHO0lBQ0ksY0FBYyxDQUFDLElBQXVCO1FBQ3pDLE9BQU8sQ0FBQyxHQUFHLENBQUMsb0JBQW9CLENBQUMsSUFBSSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUN6RCxDQUFDO0lBRUQ7Ozs7T0FJRztJQUNJLFlBQVksQ0FBQyxJQUFxQjtRQUNyQyxNQUFNLFVBQVUsR0FBVyxJQUFJLENBQUMsSUFBSSxLQUFLLENBQUM7Y0FDcEMsR0FBRyxDQUFDLEtBQUs7Y0FDVCxJQUFJLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDLEdBQUcsQ0FBQztRQUUvQixPQUFPLENBQUMsR0FBRyxDQUFDLDBCQUEwQixDQUFDLElBQUksRUFBRSxHQUFHLFVBQVUsS0FBSyxJQUFJLENBQUMsT0F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clxuICAgIHByaXZhdGUgdHJpbShsaW5lOiBzdHJpbmcsIGV4dHJhOiBzdHJpbmcgPSBcIlwiKTogc3RyaW5nIHtcclxuICAgICAgICByZXR1cm4gZXh0cmEgKyBsaW5lXHJcbiAgICAgICAgICAgIC50cmltKClcclxuICAgICAgICAgICAgLnJlcGxhY2UoL1xcbi9nLCBgXFxuPiR7ZXh0cmF9YCk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
/** | ||
* Transforms dashed-case names to cases. | ||
* Transforms names between cases. | ||
*/ | ||
@@ -21,3 +21,3 @@ export interface INameTransformer { | ||
/** | ||
* Transforms dashed-case names to cases. | ||
* Transforms names between cases. | ||
*/ | ||
@@ -39,2 +39,6 @@ export declare class NameTransformer implements INameTransformer { | ||
toPascalCase(name: string): string; | ||
/** | ||
* Transforms a camelCase name to dashed-case | ||
*/ | ||
toDashedCase(name: string): string; | ||
} |
"use strict"; | ||
/** | ||
* Transforms dashed-case names to cases. | ||
* Transforms names between cases. | ||
*/ | ||
@@ -34,3 +34,23 @@ class NameTransformer { | ||
} | ||
/** | ||
* Transforms a camelCase name to dashed-case | ||
*/ | ||
toDashedCase(name) { | ||
let output = ""; | ||
let lastAdded = 0; | ||
for (let i = 0; i < name.length; i += 1) { | ||
if (name[i].toUpperCase() === name[i]) { | ||
output += name.substring(lastAdded, i).toLowerCase() + "-"; | ||
lastAdded = i; | ||
} | ||
} | ||
output += name.substring(lastAdded).toLowerCase(); | ||
if (output[output.length - 1] === "-") { | ||
output = output.substring(0, output.length - 1); | ||
} | ||
return output; | ||
} | ||
} | ||
exports.NameTransformer = NameTransformer; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9uYW1lVHJhbnNmb3JtZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQXFCQTs7R0FFRztBQUNIO0lBQ0k7Ozs7O09BS0c7SUFDSSxXQUFXLENBQUMsSU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jtcclxuICAgICAgICBsZXQgbGFzdEFkZGVkOiBudW1iZXIgPSAwO1xyXG5cclxuICAgICAgICBmb3IgKGxldCBpOiBudW1iZXIgPSAwOyBpIDwgbmFtZS5sZW5ndGg7IGkgKz0gMSkge1xyXG4gICAgICAgICAgICBpZiAobmFtZVtpXS50b1VwcGVyQ2FzZSgpID09PSBuYW1lW2ldKSB7XHJcbiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbmFtZS5zdWJzdHJpbmcobGFzdEFkZGVkLCBpKS50b0xvd2VyQ2FzZSgpICsgXCItXCI7XHJcbiAgICAgICAgICAgICAgICBsYXN0QWRkZWQgPSBpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBvdXRwdXQgKz0gbmFtZS5zdWJzdHJpbmcobGFzdEFkZGVkKS50b0xvd2VyQ2FzZSgpO1xyXG5cclxuICAgICAgICBpZiAob3V0cHV0W291dHB1dC5sZW5ndGggLSAxXSA9PT0gXCItXCIpIHtcclxuICAgICAgICAgICAgb3V0cHV0ID0gb3V0cHV0LnN1YnN0cmluZygwLCBvdXRwdXQubGVuZ3RoIC0gMSk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gb3V0cHV0O1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -15,3 +15,3 @@ import { ICommandSearcher } from "./commandSearcher"; | ||
*/ | ||
command: string; | ||
commandName: string; | ||
/** | ||
@@ -18,0 +18,0 @@ * Logs on important events. |
@@ -30,3 +30,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const command = this.commandSearcher.search(settings.command); | ||
const command = this.commandSearcher.search(settings.commandName); | ||
if (!command) { | ||
@@ -41,1 +41,3 @@ return false; | ||
exports.Runner = Runner; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9ydW5uZXIudHMiXSwibmFtZXMiOltd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gICB0aGlzLmNvbW1hbmRTZWFyY2hlciA9IGNvbW1hbmRTZWFyY2hlcjtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIFJ1bnMgdGhlIHByb2dyYW0uXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBzZXR0aW5ncyAgIFNldHRpbmdzIHRvIHJ1biB0aGUgcHJvZ3JhbS5cclxuICAgICAqIEByZXR1cm5zIFdoZXRoZXIgdGhlIHJlcXVlc3RlZCBjb21tYW5kIHdhcyBydW4uXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBhc3luYyBydW4oc2V0dGluZ3M6IElSdW5TZXR0aW5ncyk6IFByb21pc2U8Ym9vbGVhbj4ge1xyXG4gICAgICAgIGNvbnN0IGNvbW1hbmQ6IElDb21tYW5kQ2xhc3M8YW55LCBhbnk+IHwgdW5kZWZpbmVkID0gdGhpcy5jb21tYW5kU2VhcmNoZXIuc2VhcmNoKHNldHRpbmdzLmNvbW1hbmROYW1lKTtcclxuICAgICAgICBpZiAoIWNvbW1hbmQpIHtcclxuICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgYXdhaXQgbmV3IGNvbW1hbmQoc2V0dGluZ3MuYXJncywgc2V0dGluZ3MubG9nZ2VyLCBzZXR0aW5ncy51c2VyU2V0dGluZ3MpLmV4ZWN1dGUoKTtcclxuICAgICAgICByZXR1cm4gdHJ1ZTtcclxuICAgIH1cclxufVxyXG4iXX0= |
@@ -41,1 +41,3 @@ "use strict"; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zZXR0aW5ncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBVUE7O0dBRUc7QUFDVSxRQUFBLFFBQVEsR0FBYztJQUMvQixlQUFlLEVBQUU7UUFDYixVQUFVO1FBQ1YsWUFBWTtRQU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AgICAgIFwiQ2hhbmdlTGluclwiLFxyXG4gICAgICAgIFwiRGV2aWNlTGF5clwiLFxyXG4gICAgICAgIFwiRWlnaHRCaXR0clwiLFxyXG4gICAgICAgIFwiRlBTQW5hbHl6clwiLFxyXG4gICAgICAgIFwiR2FtZXNSdW5uclwiLFxyXG4gICAgICAgIFwiR2FtZVN0YXJ0clwiLFxyXG4gICAgICAgIFwiR3JvdXBIb2xkclwiLFxyXG4gICAgICAgIFwiSW5wdXRXcml0clwiLFxyXG4gICAgICAgIFwiSXRlbXNIb2xkclwiLFxyXG4gICAgICAgIFwiTWFwc0NyZWF0clwiLFxyXG4gICAgICAgIFwiTWFwU2NyZWVuclwiLFxyXG4gICAgICAgIFwiTWVudUdyYXBoclwiLFxyXG4gICAgICAgIFwiTW9kQXR0YWNoclwiLFxyXG4gICAgICAgIFwiTnVtYmVyTWFrclwiLFxyXG4gICAgICAgIFwiT2JqZWN0TWFrclwiLFxyXG4gICAgICAgIFwiUGl4ZWxEcmF3clwiLFxyXG4gICAgICAgIFwiUGl4ZWxSZW5kclwiLFxyXG4gICAgICAgIFwiUXVhZHNLZWVwclwiLFxyXG4gICAgICAgIFwiU2NlbmVQbGF5clwiLFxyXG4gICAgICAgIFwiU3RhdGVIb2xkclwiLFxyXG4gICAgICAgIFwiU3RyaW5nRmlsclwiLFxyXG4gICAgICAgIFwiVGhpbmdIaXR0clwiLFxyXG4gICAgICAgIFwiVGltZUhhbmRsclwiLFxyXG4gICAgICAgIFwiVG91Y2hQYXNzclwiLFxyXG4gICAgICAgIFwiVXNlcldyYXBwclwiLFxyXG4gICAgICAgIFwiV29ybGRTZWVkclwiLFxyXG4gICAgICAgIC8vIEdhbWVzXHJcbiAgICAgICAgXCJGdWxsU2NyZWVuUG9rZW1vblwiXHJcbiAgICBdXHJcbn07XHJcbiJdfQ== |
@@ -30,5 +30,7 @@ "use strict"; | ||
if (pathComponents.length === 0) { | ||
pathComponents = ["."]; | ||
this.cwd = "."; | ||
} | ||
this.setCwd(...pathComponents); | ||
else { | ||
this.setCwd(...pathComponents); | ||
} | ||
} | ||
@@ -97,1 +99,3 @@ /** | ||
exports.Shell = Shell; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGVsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxpREFBbUQ7QUFDbkQsNkJBQTZCO0FBRzdCLGlEQUE4QztBQXNCOUM7O0dBRUc7QUFDSDtJQWdCSTs7Ozs7T0FLRztJQUNILFlBQW1CLE1BQWUsRUFBRSxHQUFHLGNBQXdCO1FBckIvRDs7V0FFRztRQUNjLGNBQVMsR0FBYyxJQUFJLHFCQUFTLEVBQUUsQ0FBQztRQW1CcEQsSUFBSSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7UUFFckIsRUFBRSxDQUFDLENBQUMsY0FBYyxDQUFDLE1BQU0sS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQzlCLElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO1FBQ25CLENBQUM7UUFBQyxJQUFJLENBQUMsQ0FBQztZQUNKLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxjQUFjLENBQUMsQ0FBQztRQUNuQyxDQUFDO0lBQ0wsQ0FBQztJQUVEOzs7OztPQUtHO0lBQ0ksTUFBTSxDQUFDLEdBQUcsY0FBd0I7UUFDckMsTUFBTSxHQUFHLEdBQVcsSUFBSSxDQUFDLElBQUksQ0FBQyxHQUFHLGNBQWMsQ0FBQyxDQUFDO1FBQ2pELElBQUksQ0FBQyxHQUFHLEdBQUcsR0FBRyxDQUFDO1FBRWYsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDO1lBQ3ZCLElBQUksQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLE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KTtcclxuICAgICAgICAgICAgbGV0IHN0ZGVycjogc3RyaW5nID0gXCJcIjtcclxuICAgICAgICAgICAgbGV0IHN0ZG91dDogc3RyaW5nID0gXCJcIjtcclxuXHJcbiAgICAgICAgICAgIHNwYXduZWQuc3RkZXJyLm9uKFwiZGF0YVwiLCAoZGF0YTogc3RyaW5nIHwgQnVmZmVyKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBkYXRhID0gdGhpcy5zYW5pdGl6ZXIuc2FuaXRpemUoZGF0YSk7XHJcbiAgICAgICAgICAgICAgICBpZiAoIWRhdGEpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMubG9nZ2VyLm9uRXhlY3V0ZUVycm9yKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5sb2dnZXIub25FeGVjdXRlRXJyb3IoeyBjb21tYW5kLCBkYXRhLCBzdGRlcnIsIHN0ZG91dCB9KTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBzdGRlcnIgKz0gZGF0YTtcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICBzcGF3bmVkLnN0ZG91dC5vbihcImRhdGFcIiwgKGRhdGE6IHN0cmluZyB8IEJ1ZmZlcikgPT4ge1xyXG4gICAgICAgICAgICAgICAgZGF0YSA9IHRoaXMuc2FuaXRpemVyLnNhbml0aXplKGRhdGEpO1xyXG4gICAgICAgICAgICAgICAgaWYgKCFkYXRhKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIGlmICh0aGlzLmxvZ2dlci5vbkV4ZWN1dGVPdXQpIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmxvZ2dlci5vbkV4ZWN1dGVPdXQoeyBjb21tYW5kLCBkYXRhLCBzdGRlcnIsIHN0ZG91dCB9KTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBzdGRvdXQgKz0gZGF0YTtcclxuICAgICAgICAgICAgfSk7XHJcblxyXG4gICAgICAgICAgICBzcGF3bmVkLm9uKFwiY2xvc2VcIiwgKGNvZGU6IG51bWJlcikgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMubG9nZ2VyLm9uRXhlY3V0ZUVuZCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMubG9nZ2VyLm9uRXhlY3V0ZUVuZCh7IGNvbW1hbmQsIGNvZGUsIHN0ZGVyciwgc3Rkb3V0IH0pO1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIHJlc29sdmUoeyBjb2RlLCBzdGRlcnIsIHN0ZG91dCB9KTtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcbn1cclxuIl19 |
@@ -38,14 +38,17 @@ "use strict"; | ||
"lodash@", | ||
"notsup not compatible with your operating system or architecture: fsevents@", | ||
"marked@", | ||
"minimatch@", | ||
"not compatible with your operating system or architecture: fsevents@", | ||
"not compatible", | ||
"notsup not compatible", | ||
"notsup Not compatible", | ||
"Not compatible", | ||
"npm", | ||
"prefer global", | ||
"optional", | ||
"Cloning into", | ||
"Skipping failed optional dependency", | ||
"Cloning into", | ||
"WARN" | ||
]; | ||
exports.Sanitizer = Sanitizer; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaGVsbC9zYW5pdGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOztHQUVHO0FBQ0g7SUFzQkk7Ozs7O09BS0c7SUFDSSxRQUFRLENBQUMsSUFBcUI7UUFDakMsSUFBSSxHQUFHLElBQUksQ0FBQyxRQUFRLEVBQUUsQ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6ZShkYXRhOiBzdHJpbmcgfCBCdWZmZXIpOiBzdHJpbmcge1xyXG4gICAgICAgIGRhdGEgPSBkYXRhLnRvU3RyaW5nKCkudHJpbSgpO1xyXG5cclxuICAgICAgICBmb3IgKGNvbnN0IHByZWZpeCBvZiBTYW5pdGl6ZXIuaWdub3JlZFByZWZpeGVzKSB7XHJcbiAgICAgICAgICAgIGlmICh0aGlzLmhhc1ByZWZpeChkYXRhLCBwcmVmaXgpKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gXCJcIjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgcmV0dXJuIGRhdGE7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBAcGFyYW0gZGF0YSBJbmNvbWluZyBkYXRhIHN0cmluZy5cclxuICAgICAqIEBwYXJhbSBwcmVmaXggICBQcmVmaXggdG8gY2hlY2sgZm9yIG9uIHRoZSBkYXRhIHN0cmluZy5cclxuICAgICAqIEByZXR1cm5zIFdoZXRoZXIgZGF0YSBzdGFydHMgd2l0aCB0aGUgcHJlZml4LlxyXG4gICAgICovXHJcbiAgICBwcml2YXRlIGhhc1ByZWZpeChkYXRhOiBzdHJpbmcsIHByZWZpeDogc3RyaW5nKTogYm9vbGVhbiB7XHJcbiAgICAgICAgY29uc3QgaW5kZXg6IG51bWJlciA9IGRhdGEuaW5kZXhPZihwcmVmaXgpO1xyXG4gICAgICAgIHJldHVybiBpbmRleCA+PSAwICYmIGluZGV4IDw9IDM7XHJcbiAgICB9XHJcbn1cclxuIl19 |
{ | ||
"name": "shenanigans-manager", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Manages large-scale operations on FullScreenShenanigans project.", | ||
@@ -26,13 +26,20 @@ "bin": { | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"moment": "^2.17.1" | ||
"color": "^1.0.3", | ||
"minimist": "^1.2.0", | ||
"moment": "^2.17.1", | ||
"mustache": "^2.3.0", | ||
"mz": "^2.6.0" | ||
}, | ||
"devDependencies": { | ||
"@types/colors": "^1.1.1", | ||
"@types/mustache": "^0.8.29", | ||
"@types/mz": "0.0.30", | ||
"@types/node": "^7.0.4", | ||
"del": "^2.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-sourcemaps": "^2.4.0", | ||
"gulp-tslint": "^7.0.1", | ||
"gulp-typescript": "^3.1.4", | ||
"merge2": "^1.0.3", | ||
"mustache": "^2.3.0", | ||
"run-sequence": "^1.2.2", | ||
@@ -39,0 +46,0 @@ "tslint": "^4.4.2", |
@@ -12,23 +12,13 @@ import * as minimist from "minimist"; | ||
/** | ||
* Parsed args from the CLI. | ||
*/ | ||
interface IParsedArgs extends minimist.ParsedArgs { | ||
/** | ||
* Command to be run. | ||
*/ | ||
command: string; | ||
} | ||
const startTime: moment.Moment = moment(); | ||
const args: IParsedArgs & ICommandArgs = { | ||
const argv: minimist.ParsedArgs = minimist(process.argv.slice(2)); | ||
const commandName: string = argv._[0] || "help"; | ||
const args: ICommandArgs = { | ||
commandName: commandName, | ||
directory: process.cwd(), | ||
...minimist(process.argv.slice(2)) as IParsedArgs & Partial<ICommandArgs> | ||
...argv | ||
}; | ||
if (!args.command) { | ||
throw new Error("Requires --command."); | ||
} | ||
(async (): Promise<void> => { | ||
@@ -43,3 +33,3 @@ const runner: Runner = new Runner( | ||
args, | ||
command: args.command, | ||
commandName, | ||
logger: new ConsoleLogger(), | ||
@@ -50,7 +40,5 @@ userSettings: settings | ||
if (!result) { | ||
console.error(`Could not find command '${args.command}'...`); | ||
console.error(`Could not find command '${commandName}'...`); | ||
return; | ||
} | ||
console.log("Success?"); | ||
} catch (error) { | ||
@@ -60,5 +48,7 @@ console.error(error.stack || error.message); | ||
const endTime: moment.Moment = moment(); | ||
const duration: moment.Duration = moment.duration(endTime.diff(startTime)); | ||
console.log(`\nshenanigans-manager took ${duration.humanize()}.`); | ||
if (commandName !== "help") { | ||
const endTime: moment.Moment = moment(); | ||
const duration: moment.Duration = moment.duration(endTime.diff(startTime)); | ||
console.log(`\nshenanigans-manager took ${duration.humanize()}.`); | ||
} | ||
})(); |
import * as fs from "fs"; | ||
import { Command, ICommandArgs } from "../command"; | ||
import { CreateAllRepositories } from "./createAllRepositories"; | ||
import { CloneAllRepositories } from "./cloneAllRepositories"; | ||
import { LinkAllRepositories } from "./linkAllRepositories"; | ||
@@ -23,7 +23,6 @@ import { RunGulpInAll } from "./runGulpInAll"; | ||
await this.subroutine( | ||
CreateAllRepositories as any, | ||
CloneAllRepositories as any, | ||
{ | ||
...this.args, | ||
install: true, | ||
link: true | ||
install: true | ||
}); | ||
@@ -30,0 +29,0 @@ |
import { Command, ICommandArgs } from "../command"; | ||
import { CreateRepository } from "./createRepository"; | ||
import { CloneRepository } from "./cloneRepository"; | ||
import { DoesRepositoryExist } from "./doesRepositoryExist"; | ||
@@ -31,5 +31,5 @@ | ||
if (!(await this.subroutine(DoesRepositoryExist, this.args))) { | ||
await this.subroutine(CreateRepository, this.args); | ||
await this.subroutine(CloneRepository, this.args); | ||
} | ||
} | ||
} |
@@ -28,4 +28,4 @@ import { Command, ICommandArgs } from "../command"; | ||
await new Shell(this.logger, this.args.directory, this.args.repository) | ||
.execute("npm install gulp-shenanigans@latest"); | ||
.execute("npm install gulp-shenanigans@latest --silent"); | ||
} | ||
} |
@@ -76,2 +76,7 @@ /** | ||
/** | ||
* Logs general information. | ||
*/ | ||
log: typeof console.log; | ||
/** | ||
* Logs that executing a command has started. | ||
@@ -78,0 +83,0 @@ * |
@@ -1,2 +0,2 @@ | ||
import "colors"; | ||
import "color"; | ||
@@ -14,2 +14,9 @@ import { | ||
/** | ||
* Logs general information. | ||
*/ | ||
public log(message?: any, ...args: any[]): void { | ||
console.log(message, ...args); | ||
} | ||
/** | ||
* Logs that executing a command has started. | ||
@@ -16,0 +23,0 @@ * |
/** | ||
* Transforms dashed-case names to cases. | ||
* Transforms names between cases. | ||
*/ | ||
@@ -23,3 +23,3 @@ export interface INameTransformer { | ||
/** | ||
* Transforms dashed-case names to cases. | ||
* Transforms names between cases. | ||
*/ | ||
@@ -57,2 +57,25 @@ export class NameTransformer implements INameTransformer { | ||
} | ||
/** | ||
* Transforms a camelCase name to dashed-case | ||
*/ | ||
public toDashedCase(name: string): string { | ||
let output: string = ""; | ||
let lastAdded: number = 0; | ||
for (let i: number = 0; i < name.length; i += 1) { | ||
if (name[i].toUpperCase() === name[i]) { | ||
output += name.substring(lastAdded, i).toLowerCase() + "-"; | ||
lastAdded = i; | ||
} | ||
} | ||
output += name.substring(lastAdded).toLowerCase(); | ||
if (output[output.length - 1] === "-") { | ||
output = output.substring(0, output.length - 1); | ||
} | ||
return output; | ||
} | ||
} |
@@ -18,3 +18,3 @@ import { ICommandClass } from "./command"; | ||
*/ | ||
command: string; | ||
commandName: string; | ||
@@ -57,3 +57,3 @@ /** | ||
public async run(settings: IRunSettings): Promise<boolean> { | ||
const command: ICommandClass<any, any> | undefined = this.commandSearcher.search(settings.command); | ||
const command: ICommandClass<any, any> | undefined = this.commandSearcher.search(settings.commandName); | ||
if (!command) { | ||
@@ -60,0 +60,0 @@ return false; |
@@ -56,6 +56,6 @@ import { ChildProcess, exec } from "child_process"; | ||
if (pathComponents.length === 0) { | ||
pathComponents = ["."]; | ||
this.cwd = "."; | ||
} else { | ||
this.setCwd(...pathComponents); | ||
} | ||
this.setCwd(...pathComponents); | ||
} | ||
@@ -62,0 +62,0 @@ |
@@ -12,12 +12,13 @@ /** | ||
"lodash@", | ||
"notsup not compatible with your operating system or architecture: fsevents@", | ||
"marked@", | ||
"minimatch@", | ||
"not compatible with your operating system or architecture: fsevents@", | ||
"not compatible", | ||
"notsup not compatible", | ||
"notsup Not compatible", | ||
"Not compatible", | ||
"npm", | ||
"prefer global", | ||
"optional", | ||
"Cloning into", | ||
"Skipping failed optional dependency", | ||
"Cloning into", | ||
"WARN" | ||
@@ -24,0 +25,0 @@ ]; |
@@ -12,2 +12,3 @@ { | ||
"outDir": "lib", | ||
"sourceMap": true, | ||
"strictNullChecks": true, | ||
@@ -14,0 +15,0 @@ "target": "es6" |
169051
84
3259
5
14
5
+ Addedcolor@^1.0.3
+ Addedminimist@^1.2.0
+ Addedmustache@^2.3.0
+ Addedmz@^2.6.0
+ Addedany-promise@1.3.0(transitive)
+ Addedcolor@1.0.3(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmustache@2.3.2(transitive)
+ Addedmz@2.7.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
+ Addedthenify@3.3.1(transitive)
+ Addedthenify-all@1.6.0(transitive)
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)