UNPKG

1.09 kBJavaScriptView Raw
1"use strict";
2/**
3 * @license
4 * Copyright Google LLC All Rights Reserved.
5 *
6 * Use of this source code is governed by an MIT-style license that can be
7 * found in the LICENSE file at https://angular.io/license
8 */
9Object.defineProperty(exports, "__esModule", { value: true });
10exports.RepositoryInitializerTask = void 0;
11const options_1 = require("./options");
12class RepositoryInitializerTask {
13 constructor(workingDirectory, commitOptions) {
14 this.workingDirectory = workingDirectory;
15 this.commitOptions = commitOptions;
16 }
17 toConfiguration() {
18 return {
19 name: options_1.RepositoryInitializerName,
20 options: {
21 commit: !!this.commitOptions,
22 workingDirectory: this.workingDirectory,
23 authorName: this.commitOptions && this.commitOptions.name,
24 authorEmail: this.commitOptions && this.commitOptions.email,
25 message: this.commitOptions && this.commitOptions.message,
26 },
27 };
28 }
29}
30exports.RepositoryInitializerTask = RepositoryInitializerTask;