Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/create-indiekit/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createRequire } from "node:module";
import { styleText } from "node:util";

import create from "base-create";
import chalk from "chalk";
import prompts from "prompts";

import { getFiles } from "./lib/files.js";
Expand All @@ -18,12 +18,12 @@ const nodeVersion = ">=24";
*/
export async function init() {
const { log } = console;
const bugsUrl = chalk.cyan(bugs.url);
const nameVersion = chalk.white(`(${name} v${version})`);
const bugsUrl = styleText("cyan", bugs.url);
const nameVersion = styleText("white", `(${name} v${version})`);

log(`\n${chalk.bold("Welcome to Indiekit!")} ${nameVersion}`);
log(`\n${styleText("bold", "Welcome to Indiekit!")} ${nameVersion}`);
log(`If you encounter a problem, visit ${bugsUrl} to file a new issue.\n`);
log(`${chalk.green(">")} ${chalk.white("Gathering details…")}`);
log(`${styleText("green", ">")} ${styleText("white", "Gathering details…")}`);

// Ask setup questions
const setup = await prompts(setupPrompts);
Expand Down
7 changes: 5 additions & 2 deletions packages/create-indiekit/lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import chalk from "chalk";
import { styleText } from "node:util";

import prompts from "prompts";

/**
Expand All @@ -11,7 +12,9 @@ export const addPluginConfig = async (pluginName, config) => {
const plugin = await getPlugin(pluginName);
const { info } = console;

info(`${chalk.green(">")} ${chalk.white(`Configuring ${plugin.name}…`)}`);
info(
`${styleText("green", "v")} ${styleText("white", `Configuring ${plugin.name}…`)}`,
);

// Add plug-in to list of installed plug-ins
config.plugins.push(pluginName);
Expand Down
1 change: 0 additions & 1 deletion packages/create-indiekit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@indiekit/syndicator-mastodon": "^1.0.0-beta.27",
"@indiekit/util": "^1.0.0-beta.25",
"base-create": "^3.0.8",
"chalk": "^5.6.2",
"prompts": "^2.4.2",
"yaml": "^2.8.3"
},
Expand Down
Loading