Local Development
Bootstrap project
With command
shell
pnpm ithe project will install all dependencies.
Website preview
With command
shell
pnpm docs:devthe project will launch website for you to preview all existing component.
Local development
- With command
shell
pnpm devwill start the local development environment.
- Add your component into
play/src/App.vue
vue
<template>
<ComponentYouAreDeveloping />
</template>
<script setup lang="ts">
// make sure this component is registered in @element-plus/components
</script>Modify App.vue file per your needs to get things work.
The following commands are also useful during development
Generate component template
With command
shell
pnpm gen <component-name>
# eg.
pnpm gen awesome
pnpm gen awesome-buttonwill generate a component template in packages/components/awesome and packages/components/awesome-button directory.
Sync locale files
With command
shell
pnpm locale:syncwill sync the new fields from the en.ts locale file to other locale files and add the comment // to be translated.