建议使用 nvm 和 pnpm, 以及设置好国内镜像源。
生成静态网站到目录 static/,使用 11ty 来制作:
npm run gen
// or
npm run gen:watch
启动本地服务器:
npm run serve
静态网站部分动态内容使用基于 lit element 构建的 Web Components 来实现:
- Guide Steps Element:https://phab-xyz.github.io/guide-steps-element/
在本地安装 serverless 框架,请了解相关配置:
npm install -g serverless
一键部署:
sls deploy