1.0.3 • Published 3 years ago

kingsmall2 v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

生成文件和目录结构的小工具

template:page

<template>
	<view class="content"></view>
</template>
<script>
	export default {
		data() {
			return {
				title:''
			}
		},
		onLoad(data) {},
		methods: {}
	}
</script>
<style lang="scss"></style>

git:template

gitstore
wukongbaoxiantrue

pages

pathtitletemplate
pages/index1/index购物车wukongbaoxian#master?README.md
pages/index2/index分类kingsmall2-mask.vue
pages/index3/index首页page
pages/my/index我的

运行环境

  • windows
  • node@v1.0 以上
  • git@v1.7.0 以上 需要windows命令行

安装教程

npm install kingsmall2

使用说明

  1. npm run create
  2. 输入一个markdown文件路径
  3. 生成的文件在dist里面
以上功能全都使用 markdown 语法编写构建文档
支持以下类型:

1. 代码块   创建模板

	```template:page
	   \______/ \__/
	     标识  模板名称
	   
		//内容
		<div></div>
	```
	
2. 表格  索引git模板源 或者 创建文件   *以下表头不存在会视为普通文档
    
	都使用这种表格  |-|-|-|
	
	
	git模板: 暂时只支持http
	
	  地址  记住密码
      /﹉\  /﹉﹉\  
	| git | store |
	|-|-|
	| [kingsmall2](https://gitee.com/kingsmall2/vue-ui-component.git) | true |
	  \__________/\________________________________________________/    \__/
	     别名                 git仓库地址                               记住密码
		 
	| https://gitee.com/kingsmall2/vue-ui-component.git |
	  \_______________________________________________/
	                不要别名也可以
				 
	
	创建文件:
	
	  目录    标题      模板            
	  /﹉\   /﹉﹉\   /﹉﹉﹉\
	| path | title | template |
	|-|-|-|
	| pages/index/index | 首页 | page |
	                             \__/
							对应上面模板名称
							
	| pages/index2/index | 分类2 | phone-form-item.vue |
		                           \________________/
		代码块没有的模板名称默认会在 https://gitee.com/kingsmall2/vue-ui-component.git 去寻找
									   
		                               指定其它git的文件为模板
	| pages/index3/index | 购物车 | kingsmall2#master?README.en.md |
	                               \________/ \____/  \_________/
	                                 git别名   分支       文件
	| pages/index3/index | 购物车 | https://gitee.com/kingsmall2/vue-ui-component.git#master?README.en.md |
	                               \_______________________________________________/ \____/  \_________/
	                                          没有别名使用和git一样的地址                分支       文件
										 
	path,git不能为空  其它的不填可以不写
1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago