create-egregore 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/setup.js +6 -1
- package/package.json +1 -1
package/lib/setup.js
CHANGED
|
@@ -20,7 +20,7 @@ function run(cmd, opts = {}) {
|
|
|
20
20
|
* @param {string} targetDir - where to install (default: cwd)
|
|
21
21
|
*/
|
|
22
22
|
async function install(data, ui, targetDir) {
|
|
23
|
-
const { fork_url, memory_url, github_token, org_name, github_org, slug, api_key, repos = [] } = data;
|
|
23
|
+
const { fork_url, memory_url, github_token, org_name, github_org, slug, api_key, repos = [], telegram_group_link } = data;
|
|
24
24
|
const base = targetDir || process.cwd();
|
|
25
25
|
|
|
26
26
|
const dirSlug = (github_org || slug || "egregore").toLowerCase();
|
|
@@ -107,6 +107,11 @@ async function install(data, ui, targetDir) {
|
|
|
107
107
|
for (const repoName of clonedRepos) {
|
|
108
108
|
ui.info(` ${ui.cyan(`./${repoName}/`)} — Managed repo`);
|
|
109
109
|
}
|
|
110
|
+
if (telegram_group_link) {
|
|
111
|
+
console.log("");
|
|
112
|
+
ui.info(`Join the Telegram group for notifications:`);
|
|
113
|
+
ui.info(` ${ui.cyan(telegram_group_link)}`);
|
|
114
|
+
}
|
|
110
115
|
console.log("");
|
|
111
116
|
ui.info(`Next: open a ${ui.bold("new terminal")} and type ${ui.bold(alias.aliasName)} to start.`);
|
|
112
117
|
console.log("");
|