Boilerplate for creating a SPA tool page that can be integrated in Apache ECharts website.
- TypeScript
- Vue 3
- Element Plus
- Vite
index.html
Entry HTML that for development preview usage_body.html
Body HTML that will be final integrated when deployingsrc
Source folder.dist
Distribution folder. It will be copied when deploying.
- VSCode + Volar
Vetur need to be disabled in this workspace because it's not support setup feature yet. You can replace the code using setup feature if you don't like it.
Get boilerplate
degit pissang/echarts-www-spa-boilerplate yourProjectName
Install
npm i
Start dev
npm run dev
Release
npm run release
cd echarts-www
npm run create:page
- Project Name: Name of this project. It will be used to locate the project folder.
- Page Name: Page name of this tool. Page URL will be
https://echarts.apache.org/zh/${pageName}/index.html
. - Page Title: Title of this page tool.
- Page Chinese Title: Chinese title of this page tool.
ECHARTS_WEBSITE_LANGUAGE
Language of page. Can be 'zh' or 'en'