create-vuepress-theme-plume 1.0.0-rc.101 → 1.0.0-rc.103

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/index.js CHANGED
@@ -21,6 +21,7 @@ var deployOptions = [
21
21
  import path4 from "node:path";
22
22
  import process4 from "node:process";
23
23
  import { intro, outro, spinner } from "@clack/prompts";
24
+ import { sleep } from "@pengzhanbo/utils";
24
25
  import { execaCommand as execaCommand3 } from "execa";
25
26
  import colors from "picocolors";
26
27
 
@@ -148,6 +149,8 @@ async function createPackageJson(mode, pkg, {
148
149
  deps.push("vue");
149
150
  if (bundler === "webpack" && !pkg.dependencies?.["sass-loader"] && !pkg.devDependencies["sass-loader"])
150
151
  deps.push("sass-loader");
152
+ if (!pkg.dependencies?.["sass-embedded"] && !pkg.devDependencies["sass-embedded"])
153
+ deps.push("sass-embedded");
151
154
  const dv = await getDependenciesVersion(deps);
152
155
  for (const [d, v] of Object.entries(dv))
153
156
  pkg.devDependencies[d] = `^${v}`;
@@ -493,6 +496,7 @@ async function run(mode, root) {
493
496
  const progress = spinner();
494
497
  progress.start(t("spinner.start"));
495
498
  await generate(mode, data);
499
+ await sleep(200);
496
500
  const cwd = path4.join(process4.cwd(), data.root);
497
501
  if (data.git) {
498
502
  progress.message(t("spinner.git"));
@@ -527,5 +531,5 @@ var cli = cac("create-vuepress-theme-plume");
527
531
  cli.command("[root]", "create a new vuepress-theme-plume project / \u521B\u5EFA\u65B0\u7684 vuepress-theme-plume \u9879\u76EE").action((root) => run(1 /* create */, root));
528
532
  cli.command("init [root]", "Initial vuepress-theme-plume in the existing project / \u5728\u73B0\u6709\u9879\u76EE\u4E2D\u521D\u59CB\u5316 vuepress-theme-plume").action((root) => run(0 /* init */, root));
529
533
  cli.help();
530
- cli.version("1.0.0-rc.100");
534
+ cli.version("1.0.0-rc.102");
531
535
  cli.parse();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-plume",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.101",
4
+ "version": "1.0.0-rc.103",
5
5
  "description": "The cli for create vuepress-theme-plume's project",
6
6
  "author": "pengzhanbo <q942450674@outlook.com> (https://github.com/pengzhanbo/)",
7
7
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  /** 深色模式 */
30
- .dark {
30
+ [data-theme="dark"] {
31
31
  /*
32
32
  --vp-c-brand-1: #8cccd5;
33
33
  --vp-c-brand-2: #6aa1b7;
@@ -23,6 +23,7 @@ jobs:
23
23
  {{#if (equal packageManager "pnpm")}}
24
24
  - name: Setup pnpm
25
25
  uses: pnpm/action-setup@v4
26
+
26
27
  {{/if}}
27
28
  - name: Setup Node.js
28
29
  uses: actions/setup-node@v4