0.1.6 • Published 8 months ago

vite-plugin-git-diff-reminder v0.1.6

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

Git Diff Reminder

Adds a simple reminder on the vite development console to remind the developers to push code when a certain number of lines of code gets changed.

Usage:

import gitDiffReminder from 'vite-plugin-git-diff-reminder';

// Use default config values (see below on what the default values are)
export default defineConfig(() => {
  return {
    plugins: [gitDiffReminder()]
  }
})

// Config values you can modify
export default defineConfig(() => {
  return {
    plugins: [
      gitDiffReminder({
        // All config values here are their corresponding default values.
        // You may override them if needed or leave them empty.
        ignoredPaths: ['.svelte-kit/'],
        command: 'git --no-pager diff',
        threshold: 50,
        customInfo: 'All good to go. You have less than {threshold} [{totalLinesChanged}] lines of unstaged changes.',
        customWarn: "⛔⛔⛔ You have {totalLinesChanged} lines of unstaged changes. I think it's time to commit! ⛔⛔⛔",
      }) /**...your other plugins here*/,
    ],
    //...the rest of your vite config
  };
});

Demo:

demo

0.1.6

8 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.1

9 months ago