npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fnet/rollup-plugin-delete

v0.1.2

Published

The **@fnet/rollup-plugin-delete** project is a plugin for Rollup, a popular module bundler used in JavaScript projects. This plugin is used to delete files and directories in your project as a part of the Rollup build process.

Downloads

96

Readme

@fnet/rollup-plugin-delete

The @fnet/rollup-plugin-delete project is a plugin for Rollup, a popular module bundler used in JavaScript projects. This plugin is used to delete files and directories in your project as a part of the Rollup build process.

The plugin operates in a way that is consistent with the lifecycle hooks of Rollup, executing the deletion process before or after certain phases of your Rollup build. You can configure it based on your project requirements. It provides developers with the flexibility to control the point at which their specified files/folders should be deleted during the build process. It essentially contributes to maintaining the cleanliness of your build directory, thus preserving an optimal project structure.

The way it works is quite straightforward. The user specifies the lifecycle hook at which they want the deletion process to trigger along with the set of files or folders (targets) they want to delete. If the 'verbose' or 'dryRun' mode is enabled, the plugin will log the details of the deletion operation.

Key features of this plugin include:

  • Ability to specify a custom rollup lifecycle hook on which the deletion operation should be performed.
  • Support for 'runOnce', which stops the plugin from deleting the targets more than once for each Rollup run.
  • Allows setting targets to be a list of files, folders, or patterns to delete.
  • Option to print a detailed report of which files and folders were deleted (verbose mode).
  • Ability to perform a dry run to see which files would be deleted without actually removing them.

In summary, @fnet/rollup-plugin-delete assists you in managing your project's file system more efficiently, by tailoring the deletion process according to your project's requirement, thus providing a cleaner and more concise environment.