环境准备
首先看一下笔者的系统环境,这里由于之前一篇文章中笔者建议使用Linux,而有一些评论说笔者没用过Linux,这里手头正好有一台Ubuntu22系统就用来折腾一下吧:
$ node -v
v16.14.0
$ cat /proc/version
Ubuntu 11.4.0-1ubuntu1~22.04
下面我们就需要准备仓库了,首先我们新建一个文件夹用来存放克隆的仓库:
$ mkdir echarts-deploy && cd echarts-deploy
然后克隆众多的Echarts仓库,有些仓库文件比较大,受限于不同的网络环境,可能会有失败的情况,需要多次尝试。
git clone https://github.com/apache/echarts-website.git
git clone https://github.com/apache/echarts-www.git
git clone https://github.com/apache/echarts-examples.git
git clone https://github.com/apache/echarts-doc.git
git clone https://github.com/apache/echarts-theme-builder
git clone https://github.com/apache/echarts-handbook.git
最后我们看到的目录结构就是这样的:
|- echarts-deploy
|- echarts-website
|- echarts-www
|- echarts-examples
|- echarts-doc
|- echarts-theme-builder
|-