create-vuepress-theme-hope 2.0.0-beta.28 → 2.0.0-beta.30

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.
Files changed (138) hide show
  1. package/{readme.md → README.md} +0 -0
  2. package/lib/index.js +3 -0
  3. package/lib/index.js.map +1 -0
  4. package/package.json +10 -4
  5. package/src/checkVersion.ts +42 -0
  6. package/src/{node/copy.ts → copy.ts} +1 -1
  7. package/src/{node/deepAssign.ts → deepAssign.ts} +0 -0
  8. package/src/{node/hasYarn.ts → hasYarn.ts} +0 -0
  9. package/src/{node/i18n.ts → i18n.ts} +9 -0
  10. package/src/{node/index.ts → index.ts} +29 -17
  11. package/src/{node/registry.ts → registry.ts} +0 -0
  12. package/template/en-US/.vuepress/themeConfig.ts +19 -2
  13. package/template/i18n/.vuepress/themeConfig.ts +19 -2
  14. package/template/zh-CN/.vuepress/.cache/default-development/0.pack +0 -0
  15. package/template/zh-CN/.vuepress/.cache/default-development/1.pack +0 -0
  16. package/template/zh-CN/.vuepress/.cache/default-development/10.pack +0 -0
  17. package/template/zh-CN/.vuepress/.cache/default-development/11.pack +0 -0
  18. package/template/zh-CN/.vuepress/.cache/default-development/12.pack +0 -0
  19. package/template/zh-CN/.vuepress/.cache/default-development/13.pack +0 -0
  20. package/template/zh-CN/.vuepress/.cache/default-development/14.pack +0 -0
  21. package/template/zh-CN/.vuepress/.cache/default-development/15.pack +0 -0
  22. package/template/zh-CN/.vuepress/.cache/default-development/16.pack +0 -0
  23. package/template/zh-CN/.vuepress/.cache/default-development/17.pack +0 -0
  24. package/template/zh-CN/.vuepress/.cache/default-development/2.pack +0 -0
  25. package/template/zh-CN/.vuepress/.cache/default-development/3.pack +0 -0
  26. package/template/zh-CN/.vuepress/.cache/default-development/4.pack +0 -0
  27. package/template/zh-CN/.vuepress/.cache/default-development/5.pack +0 -0
  28. package/template/zh-CN/.vuepress/.cache/default-development/6.pack +0 -0
  29. package/template/zh-CN/.vuepress/.cache/default-development/7.pack +0 -0
  30. package/template/zh-CN/.vuepress/.cache/default-development/8.pack +0 -0
  31. package/template/zh-CN/.vuepress/.cache/default-development/9.pack +0 -0
  32. package/template/zh-CN/.vuepress/.cache/default-development/index.pack +0 -0
  33. package/template/zh-CN/.vuepress/.cache/default-development/index.pack.old +0 -0
  34. package/template/zh-CN/.vuepress/.temp/blog/category.js +14 -0
  35. package/template/zh-CN/.vuepress/.temp/blog/type.js +14 -0
  36. package/template/zh-CN/.vuepress/.temp/internal/clientAppEnhances.js +23 -0
  37. package/template/zh-CN/.vuepress/.temp/internal/clientAppRootComponents.js +7 -0
  38. package/template/zh-CN/.vuepress/.temp/internal/clientAppSetups.js +15 -0
  39. package/template/zh-CN/.vuepress/.temp/internal/layoutComponents.js +8 -0
  40. package/template/zh-CN/.vuepress/.temp/internal/pagesComponents.js +80 -0
  41. package/template/zh-CN/.vuepress/.temp/internal/pagesData.js +78 -0
  42. package/template/zh-CN/.vuepress/.temp/internal/pagesRoutes.js +67 -0
  43. package/template/zh-CN/.vuepress/.temp/internal/siteData.js +35 -0
  44. package/template/zh-CN/.vuepress/.temp/internal/themeData.js +305 -0
  45. package/template/zh-CN/.vuepress/.temp/pages/404.html.js +61 -0
  46. package/template/zh-CN/.vuepress/.temp/pages/404.html.vue +1 -0
  47. package/template/zh-CN/.vuepress/.temp/pages/article/index.html.js +73 -0
  48. package/template/zh-CN/.vuepress/.temp/pages/article/index.html.vue +1 -0
  49. package/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.js +74 -0
  50. package/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.vue +1 -0
  51. package/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.js +74 -0
  52. package/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.vue +1 -0
  53. package/template/zh-CN/.vuepress/.temp/pages/category/index.html.js +73 -0
  54. package/template/zh-CN/.vuepress/.temp/pages/category/index.html.vue +1 -0
  55. package/template/zh-CN/.vuepress/.temp/pages/category//344/275/277/347/224/250/346/214/207/345/215/227/index.html.js +74 -0
  56. package/template/zh-CN/.vuepress/.temp/pages/category//344/275/277/347/224/250/346/214/207/345/215/227/index.html.vue +1 -0
  57. package/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.js +73 -0
  58. package/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.vue +1 -0
  59. package/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.js +110 -0
  60. package/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.vue +17 -0
  61. package/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.js +91 -0
  62. package/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.vue +5 -0
  63. package/template/zh-CN/.vuepress/.temp/pages/guide/index.html.js +87 -0
  64. package/template/zh-CN/.vuepress/.temp/pages/guide/index.html.vue +16 -0
  65. package/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.js +203 -0
  66. package/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.vue +201 -0
  67. package/template/zh-CN/.vuepress/.temp/pages/guide/page.html.js +144 -0
  68. package/template/zh-CN/.vuepress/.temp/pages/guide/page.html.vue +43 -0
  69. package/template/zh-CN/.vuepress/.temp/pages/home.html.js +200 -0
  70. package/template/zh-CN/.vuepress/.temp/pages/home.html.vue +4 -0
  71. package/template/zh-CN/.vuepress/.temp/pages/index.html.js +124 -0
  72. package/template/zh-CN/.vuepress/.temp/pages/index.html.vue +4 -0
  73. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.js +121 -0
  74. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.vue +6 -0
  75. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.js +122 -0
  76. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.vue +6 -0
  77. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.js +122 -0
  78. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.vue +6 -0
  79. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.js +122 -0
  80. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.vue +6 -0
  81. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.js +122 -0
  82. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.vue +6 -0
  83. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.js +123 -0
  84. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.vue +6 -0
  85. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.js +122 -0
  86. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.vue +6 -0
  87. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.js +122 -0
  88. package/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.vue +6 -0
  89. package/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.js +122 -0
  90. package/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.vue +6 -0
  91. package/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.js +122 -0
  92. package/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.vue +6 -0
  93. package/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.js +123 -0
  94. package/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.vue +6 -0
  95. package/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.js +122 -0
  96. package/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.vue +6 -0
  97. package/template/zh-CN/.vuepress/.temp/pages/slide.html.js +80 -0
  98. package/template/zh-CN/.vuepress/.temp/pages/slide.html.vue +2 -0
  99. package/template/zh-CN/.vuepress/.temp/pages/slides/index.html.js +73 -0
  100. package/template/zh-CN/.vuepress/.temp/pages/slides/index.html.vue +1 -0
  101. package/template/zh-CN/.vuepress/.temp/pages/star/index.html.js +73 -0
  102. package/template/zh-CN/.vuepress/.temp/pages/star/index.html.vue +1 -0
  103. package/template/zh-CN/.vuepress/.temp/pages/tag/index.html.js +73 -0
  104. package/template/zh-CN/.vuepress/.temp/pages/tag/index.html.vue +1 -0
  105. package/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.js +74 -0
  106. package/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.vue +1 -0
  107. package/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.js +74 -0
  108. package/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.vue +1 -0
  109. package/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.js +74 -0
  110. package/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.vue +1 -0
  111. package/template/zh-CN/.vuepress/.temp/pages/tag//344/275/277/347/224/250/346/214/207/345/215/227/index.html.js +74 -0
  112. package/template/zh-CN/.vuepress/.temp/pages/tag//344/275/277/347/224/250/346/214/207/345/215/227/index.html.vue +1 -0
  113. package/template/zh-CN/.vuepress/.temp/pages/tag//346/226/207/347/253/240/345/212/240/345/257/206/index.html.js +74 -0
  114. package/template/zh-CN/.vuepress/.temp/pages/tag//346/226/207/347/253/240/345/212/240/345/257/206/index.html.vue +1 -0
  115. package/template/zh-CN/.vuepress/.temp/pages/tag//347/246/201/347/224/250/index.html.js +74 -0
  116. package/template/zh-CN/.vuepress/.temp/pages/tag//347/246/201/347/224/250/index.html.vue +1 -0
  117. package/template/zh-CN/.vuepress/.temp/pages/tag//351/241/265/351/235/242/351/205/215/347/275/256/index.html.js +74 -0
  118. package/template/zh-CN/.vuepress/.temp/pages/tag//351/241/265/351/235/242/351/205/215/347/275/256/index.html.vue +1 -0
  119. package/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.js +73 -0
  120. package/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.vue +1 -0
  121. package/template/zh-CN/.vuepress/.temp/sass-palette/hope-config.scss +6 -0
  122. package/template/zh-CN/.vuepress/.temp/sass-palette/hope-inject.scss +32 -0
  123. package/template/zh-CN/.vuepress/.temp/sass-palette/hope-palette.scss +4 -0
  124. package/template/zh-CN/.vuepress/.temp/sass-palette/hope-style.scss +1 -0
  125. package/template/zh-CN/.vuepress/.temp/sass-palette/load-hope.js +1 -0
  126. package/template/zh-CN/.vuepress/.temp/theme-hope/sidebar.js +1 -0
  127. package/template/zh-CN/.vuepress/.temp/theme-hope/socialMedia.js +1 -0
  128. package/template/zh-CN/.vuepress/.temp/theme-hope/theme-color.scss +1 -0
  129. package/template/zh-CN/.vuepress/themeConfig.ts +19 -2
  130. package/workflows/en-US/deploy-docs.yml +42 -0
  131. package/workflows/zh-CN/deploy-docs.yml +42 -0
  132. package/CHANGELOG.md +0 -212
  133. package/lib/node/index.js +0 -3
  134. package/lib/node/index.js.map +0 -1
  135. package/rollup.config.js +0 -15
  136. package/src/node/checkVersion.ts +0 -31
  137. package/tsconfig.build.json +0 -10
  138. package/tsconfig.json +0 -8
File without changes
package/lib/index.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ "use strict";var e=require("fs"),s=require("path"),r=require("cac"),t=require("inquirer"),a=require("execa"),n=require("https");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(a);const c=(e,...s)=>{if(0===s.length)return e;const r=s.shift()||{};return Object.keys(r).forEach((s=>{"object"!=typeof e[s]||Array.isArray(e[s])||"object"!=typeof r[s]||Array.isArray(r[s])?"object"==typeof r[s]?Array.isArray(r[s])?e[s]=[...r[s]]:e[s]={...r[s]}:e[s]=r[s]:c(e[s],r[s])})),c(e,...s)},l=s=>{try{e.readdirSync(s)}catch(r){e.mkdirSync(s,{recursive:!0})}},p=(r,t)=>{const a=s.dirname(t);l(a);const n=e.createReadStream(r),o=e.createWriteStream(t);n.pipe(o)},d=(s,r)=>{l(r);e.readdirSync(s,{withFileTypes:!0}).forEach((e=>{e.isFile()?p(`${s}/${e.name}`,`${r}/${e.name}`):e.isDirectory()&&d(`${s}/${e.name}`,`${r}/${e.name}`)}))},u=(s,r)=>{e.statSync(s).isDirectory()?d(s,r):e.statSync(s).isFile()&&p(s,r)},g=async(e,s)=>{for(let r=1;r<=3;r++){const t=await new Promise(((r,t)=>{n.get(`${"npm"===s?"https://registry.npmjs.org":"https://registry.yarnpkg.com"}/-/package/${e}/dist-tags`,(e=>{if(200===e.statusCode){let s="";e.on("data",(e=>s+=e)),e.on("end",(()=>{r(JSON.parse(s).next)}))}else t()})).on("error",(()=>{t()}))})).catch((()=>{console.log(`Get ${e} version failed, [${r}/3]`)}));if(t)return t}throw new Error(`Get ${e} version failed!`)},m={"zh-CN":{getVersion:"获取依赖的最新版本...",createPackage:"生成 package.json...",updatePackage:"更新 package.json...",template:"生成模板...",wait:"这可能需要数分钟,请耐心等待.\n我们无法正确输出子进程的进度条,所以进程可能会看似未响应",install:"安装依赖...",success:"模板已成功生成!",devServerAsk:"是否想要现在启动 Demo 查看?",devServer:"启动开发服务器...\n启动成功后,请在浏览器输入给出的开发服务器地址(默认为 'localhost:8080')",hint:'提示: 请使用 "yarn run docs:dev" 命令启动开发服务器',nameMessage:"设置应用名称",nameError:"应用名称应只包含小写字母、数字和连接线 (-)",versionMessage:"设置应用版本号",versionError:"此版本无效,版本号应为 'x.x.x'",dirError:"[dir] 是一个参数,你应该替换为自己想使用的文件夹名称,如 'src', 'docs' 等!",descriptionMessage:"设置应用描述",licenseMessage:"设置协议",i18nMessage:"项目需要用到多语言么?",workflowMessage:"是否需要一个自动部署文档到 GitHub Pages 的工作流?"},"en-US":{getVersion:"Getting lastest version of deps...",createPackage:"Generating package.json...",updatePackage:"Updating package.json...",template:"Generating Template...",wait:"This may take a few minutes, please be patient.\nWe can not correctly output progress bar from child process, so the process may look stuck.",install:"Installing Deps...",success:"Successful Generated!",devServerAsk:"Would you like to preview template now?",devServer:"Staring dev server...\nAfter the dev server starts running, please visit the given server link ('localhost:8080' by default)",hint:'Hint: You should execute "yarn run docs:dev" to start dev server.',nameMessage:"Your project name",nameError:"package name should only contain lowercase characters, numbers and dash",versionMessage:"Your project version",versionError:"This version is not a valid one. Version should be like 'x.x.x'",dirError:"[dir] is an arguement, you should replace it with folder name you want to use! E.g.: 'src', 'docs'",descriptionMessage:"Your project description",licenseMessage:"Your project lincense",i18nMessage:"Does the project need mutiple languages?",workflowMessage:"Do you need a GitHub workflow to deploy docs on GitHub pages?"}},y=async()=>{const{language:e}=await t.prompt([{name:"language",type:"list",message:"Select a language to display",choices:["en-US","zh-CN"]}]);return{lang:e,message:m[e]}},v=async(e,s)=>{const r=(e=>a.sync(e?"yarn":"npm",["config","get","registry"]).stdout)(s);if("en-US"===e||"https://registry.npmmirror.com/"===r)return r;const{registry:n}=await t.prompt([{name:"registry",type:"list",message:"选择你想使用的源",choices:["国内镜像源","当前源"]}]);return"国内镜像源"===n?"https://registry.npmmirror.com/":r},h=r.cac("vuepress-theme-hope"),f=(()=>{try{return a.sync("yarn --version",{stdio:"ignore"}),!0}catch(e){return!1}})()?"yarn":"npm";h.command("[dir]","Generate a new vuepress-theme-hope project").action((async r=>{if(!r)return h.outputHelp();const{lang:a,message:n}=await y();if("[dir]"===r)return console.log(n.dirError);const o=s.resolve(process.cwd(),r),l=s.resolve(process.cwd(),"package.json"),p={"docs:build":`vuepress build ${r}`,"docs:clean-dev":`vuepress dev ${r} --clean-cache`,"docs:dev":`vuepress dev ${r}`};console.log(n.getVersion);const d={vuepress:`^${await g("vuepress",f)}`,"vuepress-theme-hope":`^${await g("vuepress-theme-hope",f)}`};if(e.existsSync(o)||e.mkdirSync(o),e.existsSync(l)){console.log(n.updatePackage);const s=JSON.parse(e.readFileSync(l,{encoding:"utf-8"}));c(s,{scripts:p,devDependencies:d}),e.writeFileSync(l,`${JSON.stringify(s,null,2)}\n`,{encoding:"utf-8"})}else{console.log(n.createPackage);const s={...await t.prompt([{name:"name",type:"input",message:n.nameMessage,default:"vuepress-theme-hope-template",validate:e=>!!/^(?:@[a-z0-9-*~][a-z0-9-*._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/u.exec(e)||n.nameError},{name:"version",type:"input",message:n.versionMessage,default:"2.0.0",validate:e=>!!/^[0-9]+\.[0-9]+\.(?:[0=9]+|[0-9]+-[a-z]+\.[0-9])$/u.exec(e)||n.versionError},{name:"description",type:"input",message:n.descriptionMessage,default:"A project of vuepress-theme-hope"},{name:"license",type:"input",message:n.licenseMessage,default:"MIT"}]),scripts:p,devDependencies:d};e.writeFileSync(l,`${JSON.stringify(s,null,2)}\n`,{encoding:"utf-8"})}const{i18n:m,workflow:w}=await t.prompt([{name:"i18n",type:"confirm",message:n.i18nMessage},{name:"workflow",type:"confirm",message:n.workflowMessage,default:!0}]);console.log(n.template);const k=m?"i18n":a;u(s.resolve(__dirname,"../template",k),s.resolve(process.cwd(),r)),w&&u(s.resolve(__dirname,"../workflows",a),s.resolve(process.cwd(),".github/workflows"));const S=await v(a,f);console.log(n.install),console.warn(n.wait),i.default.sync(f,["install","--registry",S],{stdout:"inherit"}),console.log(n.success);const{choise:$}=await t.prompt([{name:"choise",type:"confirm",message:n.devServerAsk,default:!0}]);$?(console.log(n.devServer),await i.default(f,["run","docs:dev"],{stdout:"inherit"})):console.log(n.hint)})),h.help((()=>[{title:"yarn create vuepress-theme-hope <dir> / npm init vuepress-theme-hope <dir>",body:"Create a vuepress-theme-hope template in <dir>"}])),h.parse();
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/deepAssign.ts","../src/copy.ts","../src/checkVersion.ts","../src/i18n.ts","../src/registry.ts","../src/index.ts","../src/hasYarn.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":["deepAssign","originObject","assignObjects","length","assignObject","shift","Object","keys","forEach","property","Array","isArray","ensureDirExistSync","dirPath","readdirSync","err","mkdirSync","recursive","copyFile","srcFile","targetFile","targetDir","dirname","rs","createReadStream","ws","createWriteStream","pipe","copyDir","srcDir","withFileTypes","file","isFile","name","isDirectory","copy","src","target","statSync","checkForNextVersion","async","packageName","bin","times","version","Promise","resolve","reject","get","res","statusCode","body","on","data","JSON","parse","next","catch","console","log","Error","i18n","getVersion","createPackage","updatePackage","template","wait","install","success","devServerAsk","devServer","hint","nameMessage","nameError","versionMessage","versionError","dirError","descriptionMessage","licenseMessage","i18nMessage","workflowMessage","getLanguage","language","prompt","type","message","choices","lang","getRegistry","userRegistry","sync","stdout","getUserRegistry","registry","cli","cac","stdio","e","detectYarn","command","action","dir","outputHelp","targetFolder","process","cwd","packageJsonPath","scripts","devDependencies","vuepress","existsSync","packageContent","readFileSync","encoding","writeFileSync","stringify","default","validate","input","exec","workflow","templateFolder","__dirname","warn","execa","choise","help","title"],"mappings":";mNAIO,MAAMA,EAAa,CAKxBC,KACGC,KAEH,GAA6B,IAAzBA,EAAcC,OAAc,OAAOF,EAGvC,MAAMG,EAAgBF,EAAcG,SAA0B,GAyB9D,OAvBAC,OAAOC,KAAKH,GAAcI,SAASC,IAEG,iBAA3BR,EAAaQ,IACnBC,MAAMC,QAAQV,EAAaQ,KACM,iBAA3BL,EAAaK,IACnBC,MAAMC,QAAQP,EAAaK,IAGa,iBAA3BL,EAAaK,GACvBC,MAAMC,QAAQP,EAAaK,IAC5BR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGlBR,EAA4BQ,GAAY,IACnCL,EAAaK,IAGpBR,EAA4BQ,GAAYL,EACvCK,GAZFT,EAAWC,EAAaQ,GAAWL,EAAaK,OAgB7CT,EAAWC,KAAiBC,IC/B/BU,EAAsBC,IAC1B,IACEC,EAAWA,YAACD,GACZ,MAAOE,GACPC,EAAAA,UAAUH,EAAS,CAAEI,WAAW,MAI9BC,EAAW,CAACC,EAAiBC,KACjC,MAAMC,EAAYC,UAAQF,GAE1BR,EAAmBS,GAEnB,MAAME,EAAKC,mBAAiBL,GACtBM,EAAKC,oBAAkBN,GAE7BG,EAAGI,KAAKF,IAGJG,EAAU,CAACC,EAAgBR,KAC/BT,EAAmBS,GAELP,EAAAA,YAAYe,EAAQ,CAAEC,eAAe,IAE7CtB,SAASuB,IACTA,EAAKC,SACPd,EAAS,GAA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AGrBmB,GACFrF,EACEW,EAAOA,QAAC4E,UAAW,eAAgBnC,GACnCzC,EAAOA,QAAC0D,QAAQC,MAAO,sBAG3B,MAAMZ,QAAiBL,EAAYD,EAAM7C,GAEzCgB,QAAQC,IAAI0B,EAAQlB,SACpBT,QAAQiE,KAAKtC,EAAQnB,MAErB0D,EAAK,QAAClC,KAAKhD,EAAK,CAAC,UAAW,aAAcmD,GAAW,CACnDF,OAAQ,YAGVjC,QAAQC,IAAI0B,EAAQjB,SAEpB,MAAMyD,OAAEA,SAAiB1C,SAA4B,CACnD,CACElD,KAAM,SACNmD,KAAM,UACNC,QAASA,EAAQhB,aACjB+C,SAAS,KAITS,GACFnE,QAAQC,IAAI0B,EAAQf,iBAEdsD,EAAK,QAAClF,EAAK,CAAC,MAAO,YAAa,CACpCiD,OAAQ,aAELjC,QAAQC,IAAI0B,EAAQd,SAG/BuB,EAAIgC,MAAK,IAAM,CACb,CACEC,MACE,6EACF5E,KAAM,qDAIV2C,EAAIvC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vuepress-theme-hope",
3
- "version": "2.0.0-beta.28",
3
+ "version": "2.0.0-beta.30",
4
4
  "description": "Create vuepress-theme-hope demo project helper",
5
5
  "keywords": [
6
6
  "create",
@@ -23,8 +23,14 @@
23
23
  "url": "https://mrhope.site"
24
24
  },
25
25
  "bin": {
26
- "create-vuepress-theme-hope": "./lib/node/index.js"
26
+ "create-vuepress-theme-hope": "./lib/index.js"
27
27
  },
28
+ "files": [
29
+ "lib",
30
+ "src",
31
+ "template",
32
+ "workflows"
33
+ ],
28
34
  "scripts": {
29
35
  "build": "rollup -c",
30
36
  "clean": "rimraf ./lib ./*.tsbuildinfo",
@@ -32,10 +38,10 @@
32
38
  "dev:ts": "tsc -b tsconfig.build.json --watch"
33
39
  },
34
40
  "dependencies": {
35
- "@types/inquirer": "^8.2.0",
41
+ "@types/inquirer": "^8.2.1",
36
42
  "cac": "^6.7.12",
37
43
  "execa": "^5.1.1",
38
44
  "inquirer": "^8.2.2"
39
45
  },
40
- "gitHead": "39158cae6891ce7ad24078a0a3426233861626b0"
46
+ "gitHead": "a32409b482434bb6abeee4dc426c90c4437243e8"
41
47
  }
@@ -0,0 +1,42 @@
1
+ import { get } from "https";
2
+
3
+ export const checkForNextVersion = async (
4
+ packageName: string,
5
+ bin: "npm" | "yarn"
6
+ ): Promise<string> => {
7
+ const getVersionInfo = (): Promise<string> =>
8
+ new Promise((resolve, reject) => {
9
+ get(
10
+ `${
11
+ bin === "npm"
12
+ ? "https://registry.npmjs.org"
13
+ : "https://registry.yarnpkg.com"
14
+ }/-/package/${packageName}/dist-tags`,
15
+ (res) => {
16
+ if (res.statusCode === 200) {
17
+ let body = "";
18
+
19
+ res.on("data", (data) => (body += data));
20
+ res.on("end", () => {
21
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
22
+ resolve(JSON.parse(body).next as string);
23
+ });
24
+ } else {
25
+ reject();
26
+ }
27
+ }
28
+ ).on("error", () => {
29
+ reject();
30
+ });
31
+ });
32
+
33
+ for (let times = 1; times <= 3; times++) {
34
+ const version = await getVersionInfo().catch(() => {
35
+ console.log(`Get ${packageName} version failed, [${times}/3]`);
36
+ });
37
+
38
+ if (version) return version;
39
+ }
40
+
41
+ throw new Error(`Get ${packageName} version failed!`);
42
+ };
@@ -11,7 +11,7 @@ const ensureDirExistSync = (dirPath: string): void => {
11
11
  try {
12
12
  readdirSync(dirPath);
13
13
  } catch (err) {
14
- mkdirSync(dirPath);
14
+ mkdirSync(dirPath, { recursive: true });
15
15
  }
16
16
  };
17
17
 
File without changes
File without changes
@@ -17,9 +17,11 @@ export interface CreateI18n {
17
17
  nameError: string;
18
18
  versionMessage: string;
19
19
  versionError: string;
20
+ dirError: string;
20
21
  descriptionMessage: string;
21
22
  licenseMessage: string;
22
23
  i18nMessage: string;
24
+ workflowMessage: string;
23
25
  }
24
26
 
25
27
  export const i18n: Record<Lang, CreateI18n> = {
@@ -40,9 +42,12 @@ export const i18n: Record<Lang, CreateI18n> = {
40
42
  nameError: "应用名称应只包含小写字母、数字和连接线 (-)",
41
43
  versionMessage: "设置应用版本号",
42
44
  versionError: "此版本无效,版本号应为 'x.x.x'",
45
+ dirError:
46
+ "[dir] 是一个参数,你应该替换为自己想使用的文件夹名称,如 'src', 'docs' 等!",
43
47
  descriptionMessage: "设置应用描述",
44
48
  licenseMessage: "设置协议",
45
49
  i18nMessage: "项目需要用到多语言么?",
50
+ workflowMessage: "是否需要一个自动部署文档到 GitHub Pages 的工作流?",
46
51
  },
47
52
  // eslint-disable-next-line @typescript-eslint/naming-convention
48
53
  "en-US": {
@@ -63,9 +68,13 @@ export const i18n: Record<Lang, CreateI18n> = {
63
68
  versionMessage: "Your project version",
64
69
  versionError:
65
70
  "This version is not a valid one. Version should be like 'x.x.x'",
71
+ dirError:
72
+ "[dir] is an arguement, you should replace it with folder name you want to use! E.g.: 'src', 'docs'",
66
73
  descriptionMessage: "Your project description",
67
74
  licenseMessage: "Your project lincense",
68
75
  i18nMessage: "Does the project need mutiple languages?",
76
+ workflowMessage:
77
+ "Do you need a GitHub workflow to deploy docs on GitHub pages?",
69
78
  },
70
79
  };
71
80
 
@@ -21,6 +21,8 @@ cli
21
21
 
22
22
  const { lang, message } = await getLanguage();
23
23
 
24
+ if (dir === "[dir]") return console.log(message.dirError);
25
+
24
26
  const targetFolder = resolve(process.cwd(), dir);
25
27
  const packageJsonPath = resolve(process.cwd(), "package.json");
26
28
  const scripts = {
@@ -34,8 +36,8 @@ cli
34
36
 
35
37
  console.log(message.getVersion);
36
38
 
37
- const vuepressVersion = await checkForNextVersion("vuepress");
38
- const themeVersion = await checkForNextVersion("vuepress-theme-hope");
39
+ const vuepressVersion = await checkForNextVersion("vuepress", bin);
40
+ const themeVersion = await checkForNextVersion("vuepress-theme-hope", bin);
39
41
 
40
42
  const devDependencies = {
41
43
  vuepress: `^${vuepressVersion}`,
@@ -115,49 +117,59 @@ cli
115
117
  );
116
118
  }
117
119
 
118
- interface I18nAnswer {
119
- i18n: "Yes" | "No";
120
- }
121
-
122
- const { i18n } = await prompt<I18nAnswer>([
120
+ const { i18n, workflow } = await prompt<{
121
+ i18n: boolean;
122
+ workflow: boolean;
123
+ }>([
123
124
  {
124
125
  name: "i18n",
125
- type: "list",
126
+ type: "confirm",
126
127
  message: message.i18nMessage,
127
- choices: ["Yes", "No"],
128
+ },
129
+ {
130
+ name: "workflow",
131
+ type: "confirm",
132
+ message: message.workflowMessage,
133
+ default: true,
128
134
  },
129
135
  ]);
130
136
 
131
137
  console.log(message.template);
132
138
 
133
- const templateFolder = i18n === "Yes" ? "i18n" : lang;
139
+ const templateFolder = i18n ? "i18n" : lang;
134
140
 
135
141
  copy(
136
- resolve(__dirname, "../../template", templateFolder),
142
+ resolve(__dirname, "../template", templateFolder),
137
143
  resolve(process.cwd(), dir)
138
144
  );
139
145
 
140
- console.log(message.install);
141
- console.warn(message.wait);
146
+ if (workflow)
147
+ copy(
148
+ resolve(__dirname, "../workflows", lang),
149
+ resolve(process.cwd(), ".github/workflows")
150
+ );
142
151
 
143
152
  const registry = await getRegistry(lang, bin);
144
153
 
154
+ console.log(message.install);
155
+ console.warn(message.wait);
156
+
145
157
  execa.sync(bin, ["install", "--registry", registry], {
146
158
  stdout: "inherit",
147
159
  });
148
160
 
149
161
  console.log(message.success);
150
162
 
151
- const { choise } = await prompt<{ choise: "Yes" | "No" }>([
163
+ const { choise } = await prompt<{ choise: boolean }>([
152
164
  {
153
165
  name: "choise",
154
- type: "list",
166
+ type: "confirm",
155
167
  message: message.devServerAsk,
156
- choices: ["Yes", "No"],
168
+ default: true,
157
169
  },
158
170
  ]);
159
171
 
160
- if (choise === "Yes") {
172
+ if (choise) {
161
173
  console.log(message.devServer);
162
174
 
163
175
  await execa(bin, ["run", "docs:dev"], {
File without changes
@@ -14,7 +14,7 @@ export default defineThemeConfig({
14
14
 
15
15
  logo: "/logo.svg",
16
16
 
17
- repo: "https://github.com/vuepress-theme-hope/vuepress-theme-hope",
17
+ repo: "vuepress-theme-hope/vuepress-theme-hope",
18
18
 
19
19
  docsDir: "demo/src",
20
20
 
@@ -77,13 +77,30 @@ export default defineThemeConfig({
77
77
  autoExcerpt: true,
78
78
  },
79
79
 
80
- // you can also use Waline
80
+ // If you don't need comment feature, you can remove following option
81
+ // The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
82
+ // To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
81
83
  comment: {
84
+ /**
85
+ * Using giscus
86
+ */
82
87
  type: "giscus",
83
88
  repo: "vuepress-theme-hope/giscus-discussions",
84
89
  repoId: "R_kgDOG_Pt2A",
85
90
  category: "Announcements",
86
91
  categoryId: "DIC_kwDOG_Pt2M4COD69",
92
+
93
+ /**
94
+ * Using twikoo
95
+ */
96
+ // type: "twikoo",
97
+ // envId: "https://twikoo.ccknbc.vercel.app",
98
+
99
+ /**
100
+ * Using Waline
101
+ */
102
+ // type: "waline",
103
+ // serverURL: "https://vuepress-theme-hope-comment.vercel.app",
87
104
  },
88
105
 
89
106
  mdEnhance: {
@@ -14,7 +14,7 @@ export default defineThemeConfig({
14
14
 
15
15
  logo: "/logo.svg",
16
16
 
17
- repo: "https://github.com/vuepress-theme-hope/vuepress-theme-hope",
17
+ repo: "vuepress-theme-hope/vuepress-theme-hope",
18
18
 
19
19
  docsDir: "demo/src",
20
20
 
@@ -105,13 +105,30 @@ export default defineThemeConfig({
105
105
  autoExcerpt: true,
106
106
  },
107
107
 
108
- // you can also use Waline
108
+ // If you don't need comment feature, you can remove following option
109
+ // The following config is for demo ONLY, if you need comment feature, please generate and use your own config, see comment plugin documentation for details.
110
+ // To avoid disturbing the theme developer and consuming his resources, please DO NOT use the following config directly in your production environment!!!!!
109
111
  comment: {
112
+ /**
113
+ * Using giscus
114
+ */
110
115
  type: "giscus",
111
116
  repo: "vuepress-theme-hope/giscus-discussions",
112
117
  repoId: "R_kgDOG_Pt2A",
113
118
  category: "Announcements",
114
119
  categoryId: "DIC_kwDOG_Pt2M4COD69",
120
+
121
+ /**
122
+ * Using twikoo
123
+ */
124
+ // type: "twikoo",
125
+ // envId: "https://twikoo.ccknbc.vercel.app",
126
+
127
+ /**
128
+ * Using Waline
129
+ */
130
+ // type: "waline",
131
+ // serverURL: "https://vuepress-theme-hope-comment.vercel.app",
115
132
  },
116
133
 
117
134
  mdEnhance: {
@@ -0,0 +1,14 @@
1
+ export const categoryMap = {"category":{"/":{"path":"/category/","map":{"使用指南":{"path":"/category/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/","keys":["v-4eaf9f84","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28"]},"CategoryA":{"path":"/category/categorya/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]},"CategoryB":{"path":"/category/categoryb/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce"]}}}},"tag":{"/":{"path":"/tag/","map":{"禁用":{"path":"/tag/%E7%A6%81%E7%94%A8/","keys":["v-4c863446"]},"文章加密":{"path":"/tag/%E6%96%87%E7%AB%A0%E5%8A%A0%E5%AF%86/","keys":["v-bf720700"]},"markdown":{"path":"/tag/markdown/","keys":["v-0978b044"]},"页面配置":{"path":"/tag/%E9%A1%B5%E9%9D%A2%E9%85%8D%E7%BD%AE/","keys":["v-4eaf9f84"]},"使用指南":{"path":"/tag/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/","keys":["v-4eaf9f84"]},"tag A":{"path":"/tag/tag-a/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]},"tag B":{"path":"/tag/tag-b/","keys":["v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]}}}}}
2
+
3
+ if (import.meta.webpackHot) {
4
+ import.meta.webpackHot.accept()
5
+ if (__VUE_HMR_RUNTIME__.updateBlogCategory) {
6
+ __VUE_HMR_RUNTIME__.updateBlogCategory(categoryMap)
7
+ }
8
+ }
9
+
10
+ if (import.meta.hot) {
11
+ import.meta.hot.accept(({ categoryMap }) => {
12
+ __VUE_HMR_RUNTIME__.updateBlogCategory(categoryMap)
13
+ })
14
+ }
@@ -0,0 +1,14 @@
1
+ export const typeMap = {"article":{"/":{"path":"/article/","keys":["v-4eaf9f84","v-0e503981","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28","v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690"]}},"encrypted":{"/":{"path":"/encrypted/","keys":["v-bf720700"]}},"slide":{"/":{"path":"/slides/","keys":["v-0e503981"]}},"star":{"/":{"path":"/star/","keys":["v-4eaf9f84","v-5deafbd7","v-0c0c61ab","v-0538ff2f"]}},"timeline":{"/":{"path":"/timeline/","keys":["v-0e503981","v-4c863446","v-bf720700","v-0978b044","v-fffb8e28","v-5deafbd7","v-5c362338","v-5a814a99","v-7beb5be1","v-0f7612e9","v-0dc13a4a","v-0c0c61ab","v-0a57890c","v-08a2b06d","v-06edd7ce","v-0538ff2f","v-03842690","v-4eaf9f84"]}}}
2
+
3
+ if (import.meta.webpackHot) {
4
+ import.meta.webpackHot.accept()
5
+ if (__VUE_HMR_RUNTIME__.updateBlogType) {
6
+ __VUE_HMR_RUNTIME__.updateBlogType(typeMap)
7
+ }
8
+ }
9
+
10
+ if (import.meta.hot) {
11
+ import.meta.hot.accept(({ typeMap }) => {
12
+ __VUE_HMR_RUNTIME__.updateBlogType(typeMap)
13
+ })
14
+ }
@@ -0,0 +1,23 @@
1
+ import clientAppEnhance0 from 'C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/sass-palette/load-hope.js'
2
+ import clientAppEnhance1 from 'C:/projects/vuepress-theme-hope/packages/components/lib/client/appEnhance.js'
3
+ import clientAppEnhance2 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-external-link-icon/lib/client/clientAppEnhance.js'
4
+ import clientAppEnhance3 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-theme-data/lib/client/clientAppEnhance.js'
5
+ import clientAppEnhance4 from 'C:/projects/vuepress-theme-hope/packages/comment2/lib/client/appEnhance.js'
6
+ import clientAppEnhance5 from 'C:/projects/vuepress-theme-hope/packages/md-enhance/lib/client/appEnhance.js'
7
+ import clientAppEnhance6 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/appEnhance.js'
8
+ import clientAppEnhance7 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/navbar/appEnhance.js'
9
+ import clientAppEnhance8 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/sidebar/appEnhance.js'
10
+ import clientAppEnhance9 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/appEnhance.js'
11
+
12
+ export const clientAppEnhances = [
13
+ clientAppEnhance0,
14
+ clientAppEnhance1,
15
+ clientAppEnhance2,
16
+ clientAppEnhance3,
17
+ clientAppEnhance4,
18
+ clientAppEnhance5,
19
+ clientAppEnhance6,
20
+ clientAppEnhance7,
21
+ clientAppEnhance8,
22
+ clientAppEnhance9,
23
+ ]
@@ -0,0 +1,7 @@
1
+ import clientAppRootComponent0 from 'C:/projects/vuepress-theme-hope/packages/components/lib/client/root-components/BackToTop.js'
2
+ import clientAppRootComponent1 from 'C:/projects/vuepress-theme-hope/packages/photo-swipe/lib/client/root-components/ImageViewer.js'
3
+
4
+ export const clientAppRootComponents = [
5
+ clientAppRootComponent0,
6
+ clientAppRootComponent1,
7
+ ]
@@ -0,0 +1,15 @@
1
+ import clientAppSetup0 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-active-header-links/lib/client/clientAppSetup.js'
2
+ import clientAppSetup1 from 'C:/projects/vuepress-theme-hope/node_modules/@vuepress/plugin-nprogress/lib/client/clientAppSetup.js'
3
+ import clientAppSetup2 from 'C:/projects/vuepress-theme-hope/packages/copy-code2/lib/client/appSetup.js'
4
+ import clientAppSetup3 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/appSetup.js'
5
+ import clientAppSetup4 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/outlook/appSetup.js'
6
+ import clientAppSetup5 from 'C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/sidebar/appSetup.js'
7
+
8
+ export const clientAppSetups = [
9
+ clientAppSetup0,
10
+ clientAppSetup1,
11
+ clientAppSetup2,
12
+ clientAppSetup3,
13
+ clientAppSetup4,
14
+ clientAppSetup5,
15
+ ]
@@ -0,0 +1,8 @@
1
+ import { defineAsyncComponent } from 'vue'
2
+
3
+ export const layoutComponents = {
4
+ "404": defineAsyncComponent(() => import(/* webpackChunkName: "layout-404" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/layouts/404.js")),
5
+ "Layout": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Layout" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/layouts/Layout.js")),
6
+ "Slide": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Slide" */"vuepress-plugin-md-enhance/lib/client/SlidePage.js")),
7
+ "Blog": defineAsyncComponent(() => import(/* webpackChunkName: "layout-Blog" */"C:/projects/vuepress-theme-hope/packages/theme/lib/client/module/blog/layouts/Blog.js")),
8
+ }
@@ -0,0 +1,80 @@
1
+ import { defineAsyncComponent } from 'vue'
2
+
3
+ export const pagesComponents = {
4
+ // path: /home.html
5
+ "v-79fdd481": defineAsyncComponent(() => import(/* webpackChunkName: "v-79fdd481" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/home.html.vue")),
6
+ // path: /
7
+ "v-8daa1a0e": defineAsyncComponent(() => import(/* webpackChunkName: "v-8daa1a0e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/index.html.vue")),
8
+ // path: /slide.html
9
+ "v-0e503981": defineAsyncComponent(() => import(/* webpackChunkName: "v-0e503981" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/slide.html.vue")),
10
+ // path: /guide/disable.html
11
+ "v-4c863446": defineAsyncComponent(() => import(/* webpackChunkName: "v-4c863446" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/disable.html.vue")),
12
+ // path: /guide/encrypt.html
13
+ "v-bf720700": defineAsyncComponent(() => import(/* webpackChunkName: "v-bf720700" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/encrypt.html.vue")),
14
+ // path: /guide/markdown.html
15
+ "v-0978b044": defineAsyncComponent(() => import(/* webpackChunkName: "v-0978b044" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/markdown.html.vue")),
16
+ // path: /guide/page.html
17
+ "v-4eaf9f84": defineAsyncComponent(() => import(/* webpackChunkName: "v-4eaf9f84" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/page.html.vue")),
18
+ // path: /guide/
19
+ "v-fffb8e28": defineAsyncComponent(() => import(/* webpackChunkName: "v-fffb8e28" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/guide/index.html.vue")),
20
+ // path: /posts/article10.html
21
+ "v-5a814a99": defineAsyncComponent(() => import(/* webpackChunkName: "v-5a814a99" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article10.html.vue")),
22
+ // path: /posts/article11.html
23
+ "v-5c362338": defineAsyncComponent(() => import(/* webpackChunkName: "v-5c362338" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article11.html.vue")),
24
+ // path: /posts/article12.html
25
+ "v-5deafbd7": defineAsyncComponent(() => import(/* webpackChunkName: "v-5deafbd7" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article12.html.vue")),
26
+ // path: /posts/article9.html
27
+ "v-7beb5be1": defineAsyncComponent(() => import(/* webpackChunkName: "v-7beb5be1" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article9.html.vue")),
28
+ // path: /posts/article/article1.html
29
+ "v-03842690": defineAsyncComponent(() => import(/* webpackChunkName: "v-03842690" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article1.html.vue")),
30
+ // path: /posts/article/article2.html
31
+ "v-0538ff2f": defineAsyncComponent(() => import(/* webpackChunkName: "v-0538ff2f" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article2.html.vue")),
32
+ // path: /posts/article/article3.html
33
+ "v-06edd7ce": defineAsyncComponent(() => import(/* webpackChunkName: "v-06edd7ce" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article3.html.vue")),
34
+ // path: /posts/article/article4.html
35
+ "v-08a2b06d": defineAsyncComponent(() => import(/* webpackChunkName: "v-08a2b06d" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article4.html.vue")),
36
+ // path: /posts/article/article5.html
37
+ "v-0a57890c": defineAsyncComponent(() => import(/* webpackChunkName: "v-0a57890c" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article5.html.vue")),
38
+ // path: /posts/article/article6.html
39
+ "v-0c0c61ab": defineAsyncComponent(() => import(/* webpackChunkName: "v-0c0c61ab" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article6.html.vue")),
40
+ // path: /posts/article/article7.html
41
+ "v-0dc13a4a": defineAsyncComponent(() => import(/* webpackChunkName: "v-0dc13a4a" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article7.html.vue")),
42
+ // path: /posts/article/article8.html
43
+ "v-0f7612e9": defineAsyncComponent(() => import(/* webpackChunkName: "v-0f7612e9" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/posts/article/article8.html.vue")),
44
+ // path: /404.html
45
+ "v-3706649a": defineAsyncComponent(() => import(/* webpackChunkName: "v-3706649a" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/404.html.vue")),
46
+ // path: /category/
47
+ "v-5bc93818": defineAsyncComponent(() => import(/* webpackChunkName: "v-5bc93818" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/index.html.vue")),
48
+ // path: /tag/
49
+ "v-744d024e": defineAsyncComponent(() => import(/* webpackChunkName: "v-744d024e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/index.html.vue")),
50
+ // path: /article/
51
+ "v-e52c881c": defineAsyncComponent(() => import(/* webpackChunkName: "v-e52c881c" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/article/index.html.vue")),
52
+ // path: /encrypted/
53
+ "v-75ed4ea4": defineAsyncComponent(() => import(/* webpackChunkName: "v-75ed4ea4" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/encrypted/index.html.vue")),
54
+ // path: /slides/
55
+ "v-2897d318": defineAsyncComponent(() => import(/* webpackChunkName: "v-2897d318" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/slides/index.html.vue")),
56
+ // path: /star/
57
+ "v-154dc4c4": defineAsyncComponent(() => import(/* webpackChunkName: "v-154dc4c4" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/star/index.html.vue")),
58
+ // path: /timeline/
59
+ "v-01560935": defineAsyncComponent(() => import(/* webpackChunkName: "v-01560935" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/timeline/index.html.vue")),
60
+ // path: /category/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/
61
+ "v-03d57386": defineAsyncComponent(() => import(/* webpackChunkName: "v-03d57386" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/使用指南/index.html.vue")),
62
+ // path: /tag/%E7%A6%81%E7%94%A8/
63
+ "v-83e1f92e": defineAsyncComponent(() => import(/* webpackChunkName: "v-83e1f92e" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/禁用/index.html.vue")),
64
+ // path: /category/categorya/
65
+ "v-3e5b7b84": defineAsyncComponent(() => import(/* webpackChunkName: "v-3e5b7b84" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/categorya/index.html.vue")),
66
+ // path: /tag/%E6%96%87%E7%AB%A0%E5%8A%A0%E5%AF%86/
67
+ "v-1e447d61": defineAsyncComponent(() => import(/* webpackChunkName: "v-1e447d61" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/文章加密/index.html.vue")),
68
+ // path: /category/categoryb/
69
+ "v-3e5b7ba3": defineAsyncComponent(() => import(/* webpackChunkName: "v-3e5b7ba3" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/category/categoryb/index.html.vue")),
70
+ // path: /tag/markdown/
71
+ "v-484552dc": defineAsyncComponent(() => import(/* webpackChunkName: "v-484552dc" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/markdown/index.html.vue")),
72
+ // path: /tag/%E9%A1%B5%E9%9D%A2%E9%85%8D%E7%BD%AE/
73
+ "v-a378ad66": defineAsyncComponent(() => import(/* webpackChunkName: "v-a378ad66" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/页面配置/index.html.vue")),
74
+ // path: /tag/%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/
75
+ "v-7b167472": defineAsyncComponent(() => import(/* webpackChunkName: "v-7b167472" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/使用指南/index.html.vue")),
76
+ // path: /tag/tag-a/
77
+ "v-06bbb262": defineAsyncComponent(() => import(/* webpackChunkName: "v-06bbb262" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/tag-a/index.html.vue")),
78
+ // path: /tag/tag-b/
79
+ "v-06bbb224": defineAsyncComponent(() => import(/* webpackChunkName: "v-06bbb224" */"C:/projects/vuepress-theme-hope/packages/create/template/zh-CN/.vuepress/.temp/pages/tag/tag-b/index.html.vue")),
80
+ }