@abcnews/anmtr 中文文档教程
Anmtr 是一家成熟的动画工作室。 您可以使用它将图像放在舞台上,并在标准化的 0 - 1 时间轴上为它们的某些属性设置动画。
这个 repo 包括两件事:
- A svelte-kit app which, when run, is an animation builder, and
- A package that provides utils to help write a frontend runtime for the animations produced.
Development
git clone https://github.com/abcnews/anmtr.git
cd anmtr
npm i
npm run dev
Deployment
这是目前以一种复杂的方式,使用 CI 在这个 repo 的 一个分支 上部署到 Vercel。
Packaging
由于 与 typescript 相关的问题,打包目前有点复杂。 第一步是运行打包程序。
但是假设你有一个干净的 git 索引并且你在主分支上,你应该能够发布一个新版本:
npm run release
Anmtr is an amature animation studio. You can use it to put images on a stage and animate some of their properties over anormalised 0 - 1 timeline.
This repo includes two things:
- A svelte-kit app which, when run, is an animation builder, and
- A package that provides utils to help write a frontend runtime for the animations produced.
Development
git clone https://github.com/abcnews/anmtr.git
cd anmtr
npm i
npm run dev
Deployment
This is currenly, in a complicated way, deployed to Vercel using CI on a fork of this repo.
Packaging
Packaging is currently a little complicated due to an issue related to typescript. The first step is to run the packager.
But assuming you've got a clean git index and you're on the main branch, you should be able to release a new version with:
npm run release
更多