Boilerplate for creating a SPA tool page that can be integrated in Apache ECharts website.
- TypeScript
- Vue 3
- Element Plus
- Vite
index.htmlEntry HTML that for development preview usage_body.htmlBody HTML that will be final integrated when deployingsrcSource folder.distDistribution 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 yourProjectNameInstall
npm iStart dev
npm run devRelease
npm run releasecd 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'