| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
An advanced starter template for creating modern, universal build plugins that work seamlessly across Vite, Rollup, Webpack, esbuild, and other bundlers using unplugin. Built with TypeScript and featuring comprehensive tooling for testing, formatting, type-checking, and automated releases.
# Clone this template
git clone https://github.com/yeasin2002/npm-starter.git my-plugin
cd my-plugin
# Install dependencies
pnpm install
# Start development
pnpm devpnpm dev # Run tests in watch mode
pnpm typecheck # Type check without emitting
pnpm typecheck:watch # Type check in watch modepnpm build # Build for production (ESM + CJS)
pnpm clean # Clean build artifacts and cachepnpm test # Run tests once
pnpm test:coverage # Run tests with coverage report
pnpm test:watch # Run tests in watch modepnpm lint # Lint source code
pnpm lint:fix # Lint and auto-fix issues
pnpm format:check # Check code formatting
pnpm format:write # Format code with Prettierpnpm ci # Run full CI pipeline
pnpm check-exports # Verify package exports
pnpm size # Check bundle size
pnpm size:why # Analyze bundle size
pnpm audit # Security auditpnpm release # Create a new release with conventional changelogsrc/ ├── core/ # Core functionality │ └── options.ts # Plugin options and resolution ├── index.ts # Main plugin export (default) ├── api.ts # Public API functions ├── vite.ts # Vite-specific plugin ├── webpack.ts # Webpack-specific plugin ├── rollup.ts # Rollup-specific plugin └── rspack.ts # Rspack-specific plugin test/ └── *.test.ts # Vitest test files dist/ # Build output (auto-generated) ├── index.js # ESM build ├── index.cjs # CommonJS build └── index.d.ts # TypeScript declarations
Strict mode enabled with additional checks:
Update package.json with your package details:
Run pre-publish checks:
pnpm run cipnpm releaseContributions are welcome! Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
MIT © Md Kawsar Islam Yeasin
Made with ❤️ by Yeasin
| Back | FazBrowse Home | New Git URL |