-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added "target" and "defaultBranch" answers to support the portal crea…
…tor (#818)
- Loading branch information
1 parent
0a83ec3
commit dc89fc2
Showing
44 changed files
with
412 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,7 +90,7 @@ const creatorOptions = { | |
|
||
/** Asks a series of questions on the CLI */ | ||
async function ask(): Promise<Answers> { | ||
let answers: Record<string, any> = { cli: true }; | ||
let answers: Record<string, any> = { cli: true, target: "directory" }; | ||
let migrationContext: MigrationContextBase | undefined; | ||
|
||
if (!!argv.replay) { | ||
|
@@ -306,7 +306,7 @@ async function setupProject_CLI( | |
? `https://github.com/${answers.authorGithub}/ioBroker.${answers.adapterName}` | ||
: `[email protected]:${answers.authorGithub}/ioBroker.${answers.adapterName}.git`; | ||
const gitCommandArgs = [ | ||
["init"], | ||
["init", "-b", answers.defaultBranch || "main"], | ||
["add", "."], | ||
["commit", "-m", "Initial commit"], | ||
["remote", "add", "origin", gitUrl], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"cli": true, | ||
"target": "directory", | ||
"adapterName": "test-adapter", | ||
"title": "Is used to test the creator", | ||
"startMode": "daemon", | ||
|
@@ -26,6 +28,8 @@ | |
"authorEmail": "[email protected]", | ||
"gitRemoteProtocol": "HTTPS", | ||
"dependabot": "yes", | ||
"gitCommit": "no", | ||
"defaultBranch": "main", | ||
"license": "Apache License 2.0", | ||
"creatorVersion": "1.34.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"cli": true, | ||
"target": "directory", | ||
"adapterName": "test-adapter", | ||
"title": "Is used to test the creator", | ||
"startMode": "daemon", | ||
|
@@ -26,6 +28,8 @@ | |
"authorEmail": "[email protected]", | ||
"gitRemoteProtocol": "HTTPS", | ||
"dependabot": "yes", | ||
"gitCommit": "no", | ||
"defaultBranch": "main", | ||
"license": "Apache License 2.0", | ||
"creatorVersion": "1.34.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"cli": true, | ||
"target": "directory", | ||
"adapterName": "test-adapter", | ||
"title": "Is used to test the creator", | ||
"startMode": "daemon", | ||
|
@@ -25,6 +27,8 @@ | |
"authorEmail": "[email protected]", | ||
"gitRemoteProtocol": "HTTPS", | ||
"dependabot": "yes", | ||
"gitCommit": "no", | ||
"defaultBranch": "main", | ||
"license": "MIT License", | ||
"creatorVersion": "1.34.0" | ||
} |
Oops, something went wrong.