Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Line | |
---|
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 | */
|
---|
9 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
10 | exports.RepositoryInitializerTask = void 0;
|
---|
11 | const options_1 = require("./options");
|
---|
12 | class 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 | }
|
---|
30 | exports.RepositoryInitializerTask = RepositoryInitializerTask;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.