chore: update readme (#325)

This commit is contained in:
zazzaz 2020-09-18 16:15:30 +08:00 committed by GitHub
parent 4f68443ac0
commit a900e375f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

View File

@ -20,13 +20,18 @@ $ yarn bootstrap
```
the project will install all dependencies and run `lerna bootstrap` to initialize the project
## Storybook preview
## Website preview
With command
```bash
$ yarn storybook
$ yarn website-dev
```
the project will launch `@storybook` client for you to preview all existing component
the project will launch website for you to preview all existing component
You can also use this command to start a blank page to debug
```bash
$ yarn website-dev:play
//source file: ./website/play/index.vue
```
## Component migration process
1. Convert the item in https://github.com/element-plus/element-plus/projects/1 to an issue
2. Assign yourself to the issue

View File

@ -14,7 +14,7 @@
"lint": "eslint ./packages --ext .vue,.js,.ts",
"website-build": "webpack --config ./website/webpack.config.js",
"website-dev": "webpack-dev-server --config ./website/webpack.config.js",
"website-dev:play": "PLAY_ENV=true yarn website-dev"
"website-dev:play": "cross-env PLAY_ENV=true yarn website-dev"
},
"peerDependencies": {
"vue": "^3.0.0-rc.9"

View File

@ -10,7 +10,7 @@ function template(str: string, option) {
})
}
export const t = (path:string, option): string => {
export const t = (path:string, option?): string => {
let value
const array = path.split('.')
let current = lang