create-vuepress-theme-plume 1.0.0-rc.102 → 1.0.0-rc.104

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
@@ -134,7 +134,7 @@ async function createPackageJson(mode, pkg, {
134
134
  "docs:preview": `http-server ${docsDir}/.vuepress/dist`
135
135
  };
136
136
  if (mode === 1 /* create */) {
137
- pkg.scripts["vp-update"] = "vp-update";
137
+ pkg.scripts["vp-update"] = `${packageManager === "npm" ? "npx" : `${packageManager} dlx`} vp-update`;
138
138
  }
139
139
  }
140
140
  pkg.devDependencies ??= {};
@@ -149,6 +149,8 @@ async function createPackageJson(mode, pkg, {
149
149
  deps.push("vue");
150
150
  if (bundler === "webpack" && !pkg.dependencies?.["sass-loader"] && !pkg.devDependencies["sass-loader"])
151
151
  deps.push("sass-loader");
152
+ if (!pkg.dependencies?.["sass-embedded"] && !pkg.devDependencies["sass-embedded"])
153
+ deps.push("sass-embedded");
152
154
  const dv = await getDependenciesVersion(deps);
153
155
  for (const [d, v] of Object.entries(dv))
154
156
  pkg.devDependencies[d] = `^${v}`;
@@ -529,5 +531,5 @@ var cli = cac("create-vuepress-theme-plume");
529
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));
530
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));
531
533
  cli.help();
532
- cli.version("1.0.0-rc.101");
534
+ cli.version("1.0.0-rc.103");
533
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.102",
4
+ "version": "1.0.0-rc.104",
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",
@@ -1,12 +1,12 @@
1
1
  import { defineClientConfig } from 'vuepress/client'
2
- import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
3
- import CustomComponent from './theme/components/Custom.vue'
2
+ // import RepoCard from 'vuepress-theme-plume/features/RepoCard.vue'
3
+ // import CustomComponent from './theme/components/Custom.vue'
4
4
 
5
- import './theme/styles/custom.css'
5
+ // import './theme/styles/custom.css'
6
6
 
7
7
  export default defineClientConfig({
8
8
  enhance({ app }) {
9
- app.component('RepoCard', RepoCard)
10
- app.component('CustomComponent', CustomComponent)
9
+ // app.component('RepoCard', RepoCard)
10
+ // app.component('CustomComponent', CustomComponent)
11
11
  },
12
12
  })
@@ -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;