1.0.0 • Published 2 years ago

kiloview-cli v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

kiloview-cli

安装

npm install @gausszhou/kiloview-cli -g 

创建项目

kiloview-cli create 

导入导出配置

kiloview-cli import -i config.json
kiloview-cli export -o config.back.json
kiloview-cli clean

配置文件的格式

{
  "template": {
    "vue2": [
      {
        "name": "vue2-webpack-template",
        "url": "http://github.com/gausszhou/vue2-webpack-template.git"
      }
    ],
    "vue3": [
      {
        "name": "vue3-webpack-template",
        "url": "http://github.com/gausszhou/vue3-webpack-template.git"
      },
      {
        "name": "vue3-ts-vite-template",
        "url": "http://github.com/gausszhou/vue3-ts-vite-template.git"
      }
    ],
    "vuepress":[
      {
        "name":"vuepress-template",
        "url": "http://github.com/gausszhou/vuepress-template.git"
      },
      {
        "name":"vuepress-next-template",
        "url": "http://github.com/gausszhou/vuepress-next-template.git"
      }
    ],
    "vitepress":[
      {
        "name":"vitepress-template",
        "url": "http://github.com/gausszhou/vitepress-template.git"
      }
    ]
  }
}

语言包处理

# 合并多个json
kiloview-cli lang-merge -i lang -o merge
# 分解json到多个
kiloview-cli lang-split -i merge -o lang
lang 
  - zh
    - a.json
    - b.json
  - en
    - a.json
    - b.json
merge
  - zh.json
  - en.json

ShowDoc

合并showdoc导出的Markdown压缩包

# 解压压缩包,然后在有prefix_readme.md执行
kiloview-cli docs-merge
1.0.0

2 years ago