Show confetti when build success.
- 📝 Table of Contents
- 🧐 About
- 🏁 Getting Started
- 🎈 Usage
- 🚀 Deployment
- ⛏️ Built Using
- ✍️ Authors
- 🎉 Acknowledgements
(Only support MacOS)
Show confetti when build success.
You can use it standalone as a function, or you can interactive it with build tools like webpack/vite/esbuild/rollup.
You need to install Raycast.
# If you only want to use it standalone.
pnpm add @akrc/confetti
# If you want to use it with build tools.
pnpm add unplugin-confettiIf you want to use it standalone:
import { confetti } from '@akrc/confetti';
confetti();If you want to use it with build tools, see below:
// vite.config.ts
import { vite } from 'unplugin-confetti';
export default {
plugins: [vite()],
};// rollup.config.js
import { rollup } from 'rollup';
export default {
plugins: [rollup()],
};// webpack.config.js
import { webpack } from 'unplugin-confetti';
module.exports = {
plugins: [webpack()],
};// esbuild.config.js
import { esbuild } from 'unplugin-confetti';
build({
plugins: [esbuild()],
});Or you can take a look at tests in this repo.
This repo use pnpm to manage monorepo.
git clone https://github.com/akarachen/confitte
cd confitte
pnpm install- @akarachen - Idea & Initial work
See also the list of contributors who participated in this project.
Inspired by Umijs