@docubook/create 1.4.7 → 1.4.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/create.js +6 -6
- package/package.json +1 -1
package/create.js
CHANGED
|
@@ -43,7 +43,7 @@ function updatePostcssConfig(projectPath) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
program
|
|
46
|
-
.version("1.4.
|
|
46
|
+
.version("1.4.8")
|
|
47
47
|
.description("CLI to create a new Docubook project")
|
|
48
48
|
.argument("[project-directory]", "Directory to create the new Docubook project")
|
|
49
49
|
.action(async (projectDirectory) => {
|
|
@@ -63,7 +63,7 @@ program
|
|
|
63
63
|
const emitter = degit(repo);
|
|
64
64
|
const projectPath = path.resolve(process.cwd(), projectDirectory);
|
|
65
65
|
|
|
66
|
-
const spinner = ora(`Cloning ${chalk.
|
|
66
|
+
const spinner = ora(`Cloning ${chalk.green("starter")}...`).start();
|
|
67
67
|
try {
|
|
68
68
|
await emitter.clone(projectPath);
|
|
69
69
|
spinner.succeed(`Docubook project successfully created in ${projectPath}!`);
|
|
@@ -95,15 +95,15 @@ program
|
|
|
95
95
|
console.log(chalk.green(`\nDocubook version: ${packageJson.version}\n`));
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
console.log(chalk.
|
|
98
|
+
console.log(chalk.green("\nNext steps:"));
|
|
99
99
|
console.log(`1. Navigate to your project directory:`);
|
|
100
|
-
console.log(` ${chalk.
|
|
100
|
+
console.log(` ${chalk.green(`cd ${projectDirectory}`)}`);
|
|
101
101
|
console.log(`2. Start the development server:`);
|
|
102
102
|
|
|
103
103
|
if (checkBunInstalled()) {
|
|
104
|
-
console.log(` ${chalk.
|
|
104
|
+
console.log(` ${chalk.green("bun run dev")}`);
|
|
105
105
|
} else {
|
|
106
|
-
console.log(` ${chalk.
|
|
106
|
+
console.log(` ${chalk.green("npm run dev")}`);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
process.exit(0);
|