This commit is contained in:
niunai 2017-01-16 01:11:00 +08:00
parent bc8e995956
commit 03256c9f71
6 changed files with 64 additions and 1 deletions

View File

@ -1,3 +1,5 @@
{
"sample": "./packages/sample/index.js"
"sample": "./packages/sample/index.js",
"test": "./packages/test/index.js",
"test2": "./packages/test2/index.js"
}

View File

@ -0,0 +1,8 @@
## 0.0.2 (2017-01-20)
* 改了bug A
* 加了功能B
## 0.0.1 (2017-01-10)
* 第一版

26
packages/test/README.md Normal file
View File

@ -0,0 +1,26 @@
# @youzan/<%= name %>
!!! 请在此处填写你的文档最简单描述 !!!
[![version][version-image]][download-url]
[![download][download-image]][download-url]
[version-image]: http://npm.qima-inc.com/badge/v/@youzan/<%= name %>.svg?style=flat-square
[download-image]: http://npm.qima-inc.com/badge/d/@youzan/<%= name %>.svg?style=flat-square
[download-url]: http://npm.qima-inc.com/package/@youzan/<%= name %>
## Demo
## Usage
## API
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
|-----------|-----------|-----------|-------------|-------------|
| className | 自定义额外类名 | string | '' | '' |
## License
[MIT](https://opensource.org/licenses/MIT)

3
packages/test/index.js Normal file
View File

@ -0,0 +1,3 @@
import SampleComponent from './src/main';
export default SampleComponent;

View File

@ -0,0 +1,10 @@
{
"name": "@youzan/your-component-name",
"version": "0.0.1",
"description": "vue component",
"main": "./lib/index.js",
"author": "who r u",
"license": "MIT",
"devDependencies": {},
"dependencies": {}
}

View File

@ -0,0 +1,14 @@
<template>
<div>Hello {{ name }}</div>
</template>
<script>
export default {
name: 'SampleComponent',
data() {
return {
name: 'World'
};
}
};
</script>