mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-24 11:05:17 +08:00
chore: update readme (#325)
This commit is contained in:
parent
4f68443ac0
commit
a900e375f2
11
README.md
11
README.md
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user