0.2.2 ā€¢ Published 2 months ago

unplugin-todos v0.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

unplugin-todos

NPM version

šŸ“‹ A universal bundler plugin for generate a task schedule from code comments, powered by unplugin.

Features

šŸŒ“ Friendly todo list with light / dark mode.

šŸ“ Dynamic generation from code comments.

šŸ· Support tag filters.

šŸ–Šļø Enable to change the comment tags on ui.

šŸ“¦ Support common bundlers.

screenshot

Installation

# npm
npm i -D unplugin-todos

Usage

// vite.config.ts
import Todos from 'unplugin-todos'

export default defineConfig({
  plugins: [Todos.vite()],
})

// rollup.config.js
import Todos from 'unplugin-todos'

export default {
  plugins: [Todos.rollup()],
}

// esbuild.config.js
import { build } from 'esbuild'

build({
  plugins: [require('unplugin-todos').esbuild()],
})

// webpack.config.js
module.exports = {
  /* ... */
  plugins: [require('unplugin-todos').webpack()],
}

Playground

See playground

Options

options.dev

  • Type: boolean
  • Default: true

options.includes

  • Type: string[]
  • Default: []

License

MIT License Ā© 2024-PRESENT Tamago