Skip to content

Boilerplate for creating a SPA tool page that can be integrated in Apache ECharts website.

License

Notifications You must be signed in to change notification settings

pissang/echarts-www-spa-boilerplate

Repository files navigation

Apache ECharts WWW SPA Boilerplate

Boilerplate for creating a SPA tool page that can be integrated in Apache ECharts website.

Dependencies

  • TypeScript
  • Vue 3
  • Element Plus
  • Vite

Structure

  • index.html Entry HTML that for development preview usage
  • _body.html Body HTML that will be final integrated when deploying
  • src Source folder.
  • dist Distribution folder. It will be copied when deploying.

Recommanded Environment

  • 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.

Use

Get boilerplate

degit pissang/echarts-www-spa-boilerplate yourProjectName

Install

npm i

Start dev

npm run dev

Release

npm run release

Create a Page in echarts-www

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.

Global Variables from echarts-www

  • ECHARTS_WEBSITE_LANGUAGE

Language of page. Can be 'zh' or 'en'

About

Boilerplate for creating a SPA tool page that can be integrated in Apache ECharts website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published