raipiot infra 启动动画模块,用于在启动项目时,命令行打印品牌动画,支持 Vite 插件。
pnpm add -D @raipiot-infra/bootstrap-animation
// vite.config.ts
import { BootstrapAnimation } from '@raipiot-infra/bootstrap-animation'
export default defineConfig({
plugins: [BootstrapAnimation()]
})
// next.config.js
const { bootstrapLog } = require('@raipiot-infra/bootstrap-animation')
bootstrapLog()
// metro.config.js
const { bootstrapLog } = require('@raipiot-infra/bootstrap-animation')
bootstrapLog()
// vite.config.ts
import { BootstrapAnimation } from '@raipiot-infra/bootstrap-animation'
export default defineConfig({
plugins: [
BootstrapAnimation({
author: ''
})
]
})