GithubHelp home page GithubHelp logo

doc22940 / plugins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rollup/plugins

1.0 1.0 0.0 1.9 MB

๐Ÿฃ The one-stop shop for official Rollup plugins

License: MIT License

JavaScript 72.71% TypeScript 23.70% WebAssembly 3.54% CSS 0.02% RPC 0.01% CoffeeScript 0.02%

plugins's Introduction

tests cover libera manifesto

Rollup Plugins

๐Ÿฃ The one-stop shop for official Rollup plugins

This repository houses plugins that Rollup considers critical to every day use of Rollup, plugins which the organization has adopted maintenance of, and plugins that the project recommends to its users.

Plugins Found Here

alias Define and resolve aliases for bundle dependencies
auto-install Automatically install dependencies that are imported by a bundle.
beep System beeps on errors and warnings
buble Compile ES2015 with buble
commonjs Convert CommonJS modules to ES6
data-uri Import modules from Data URIs
dsv Convert .csv and .tsv files into JavaScript modules with d3-dsv
html Creates HTML files to serve Rollup bundles
image Import JPG, PNG, GIF, SVG, and WebP files
inject Scan modules for global variables and injects import statements where necessary
json Convert .json files to ES6 modules
legacy Add export declarations to legacy non-module scripts
multi-entry Use multiple entry points for a bundle
node-resolve Locate and bundle third-party dependencies in node_modules
replace Replace strings in files while bundling
run Run your bundles in Node once they're built
strip Remove debugger statements and functions like assert.equal and console.log from your code
sucrase Compile TypeScript, Flow, JSX, etc with Sucrase
typescript Integration between Rollup and Typescript
url Import files as data-URIs or ES Modules
virtual Load virtual modules from memory
wasm Import WebAssembly code with Rollup
yaml Convert YAML files to ES6 modules

Other Packages Found Here

pluginutils A set of utility functions commonly used by Rollup plugins

Contributing

This repository is a monorepo which leverages pnpm for dependency management.

To begin, please install pnpm:

$ npm install pnpm -g

Working with Plugin Packages

All plugin packages are kept in the /packages directory.

Adding dependencies:

$ pnpm add <package> --filter ./packages/<name>

Where <package> is the name of the NPM package you wish to add for a plugin package, and <name> is the proper name of the plugin. e.g. @rollup/plugin-beep.

Publishing:

$ pnpm run publish -- <name> [flags]

Where <name> is the portion of the plugin package name following @rollup/plugin-. (e.g. beep)

The publish script performs the following actions:

  • Gathers commits from the last release tag
  • Determines the next appropriate version bump (major, minor, or patch)
  • Updates package.json
  • Generates a new ChangeLog entry
  • Updates CHANGELOG.md for the target plugin
  • Commits package.json and CHANGELOG.md, with a commit message is in the form chore(release): <name>-v<version>
  • Publishes to NPM
  • Tags the release in the form <name>-v<version> (e.g. beep-v0.1.0)
  • Pushes the commit and tag to Github
Flags

The following flags are available to modify the publish process:

  • --dry tells the script to perform a dry-run, skipping any file modifications, NPM, or Git Actions. Results from version determination and new ChangeLog additions are displayed.
  • --major, --minor, --patch can be used to force a particular type of semver bump.
  • --no-push will instruct the script not to push changes and tags to Git.
  • --no-tag will instruct the script not to tag the release.

Running Tests:

To run tests on all packages which have changes:

$ pnpm run test

To run tests on a specific package:

$ pnpm run test --filter ./packages/<name>

Linting:

To lint all packages which have changes:

$ pnpm run lint

To lint a specific package:

$ pnpm run lint --filter ./packages/<name>

Note: Scripts in the repository will run the root test and lint script on those packages which have changes. This is also how the CI pipelines function. To run either on a package outside of that pipeline, use pnpm run <script> -- @rollup/plugin-<name>.

Adding Plugins

While we don't have an official procedure for adding third-party plugins to this repository, we are absolutely open to the idea. If you'd like to speak about your project being a part of this repo, please reach out to @RollupJS on Twitter.

Meta

CONTRIBUTING

LICENSE (Mozilla Public License)

plugins's People

Contributors

acionyx avatar andarist avatar bennypowers avatar btd avatar conduitry avatar cprecioso avatar curran avatar darthtrevino avatar dylanklohr avatar foray1010 avatar fredkschott avatar jacksteamdev avatar kocal avatar larsdenbakker avatar larsrh avatar lukashechenberger avatar lukastaegert avatar matthewp avatar newbornfrontender avatar notwoods avatar olance avatar pnevares avatar posva avatar rich-harris avatar shellscape avatar shrirambalaji avatar trysound avatar vladimyr avatar wesleygrimes avatar zanona avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.