AI prompts
base on š£ The one-stop shop for official Rollup plugins [cover]: https://codecov.io/gh/rollup/plugins/branch/master/graph/badge.svg
[cover-url]: https://codecov.io/gh/rollup/plugins
[discord]: https://img.shields.io/discord/466787075518365708?color=778cd1&label=chat
[discord-url]: https://is.gd/rollup_chat
[tests]: https://img.shields.io/circleci/project/github/rollup/plugins.svg
[tests-url]: https://circleci.com/gh/rollup/plugins
[![tests][tests]][tests-url]
[![cover][cover]][cover-url]
[![discord][discord]][discord-url]
[![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)
# 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](packages/alias) | Define and resolve aliases for bundle dependencies |
| [auto-install](packages/auto-install) | Automatically install dependencies that are imported by a bundle |
| [babel](packages/babel) | Compile your files with Babel |
| [beep](packages/beep) | System beeps on errors and warnings |
| [buble](packages/buble) | Compile ES2015 with buble |
| [commonjs](packages/commonjs) | Convert CommonJS modules to ES6 |
| [data-uri](packages/data-uri) | Import modules from Data URIs |
| [dsv](packages/dsv) | Convert .csv and .tsv files into JavaScript modules with d3-dsv |
| [dynamic-import-vars](packages/dynamic-import-vars) | Resolving dynamic imports that contain variables. |
| [eslint](packages/eslint) | Verify entry point and all imported files with ESLint |
| [esm-shim](packages/esm-shim) | Replace cjs syntax for esm output bundles |
| [graphql](packages/graphql) | Convert .gql/.graphql files to ES6 modules |
| [html](packages/html) | Create HTML files to serve Rollup bundles |
| [image](packages/image) | Import JPG, PNG, GIF, SVG, and WebP files |
| [inject](packages/inject) | Scan modules for global variables and injects `import` statements where necessary |
| [json](packages/json) | Convert .json files to ES6 modules |
| [legacy](packages/legacy) | Add `export` declarations to legacy non-module scripts |
| [multi-entry](packages/multi-entry) | Use multiple entry points for a bundle |
| [node-resolve](packages/node-resolve) | Locate and bundle third-party dependencies in node_modules |
| [replace](packages/replace) | Replace strings in files while bundling |
| [run](packages/run) | Run your bundles in Node once they're built |
| [strip](packages/strip) | Remove debugger statements and functions like assert.equal and console.log from your code |
| [sucrase](packages/sucrase) | Compile TypeScript, Flow, JSX, etc with Sucrase |
| [swc](packages/swc) | Transpile TypeScript/JavaScript with the speedy-web-compiler |
| [terser](packages/terser) | Generate a minified output bundle with terser |
| [typescript](packages/typescript) | Integration between Rollup and Typescript |
| [url](packages/url) | Import files as data-URIs or ES Modules |
| [virtual](packages/virtual) | Load virtual modules from memory |
| [wasm](packages/wasm) | Import WebAssembly code with Rollup |
| [yaml](packages/yaml) | Convert YAML files to ES6 modules |
| | |
## Other Packages Found Here
| | |
| ----------------------------------- | ---------------------------------------------------------- |
| [pluginutils](packages/pluginutils) | A set of utility functions commonly used by Rollup plugins |
| | |
## Contributing
This repository is a [monorepo](https://en.wikipedia.org/wiki/Monorepo) which leverages [pnpm](https://pnpm.io/) for dependency management.
To begin, please install `pnpm`:
```console
$ npm install pnpm -g
```
### Working with Plugin Packages
All plugin packages are kept in the `/packages` directory.
#### Adding dependencies:
```console
$ pnpm --filter ./packages/<name> add <package>
```
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:
```console
$ pnpm 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:
```console
$ pnpm test
```
To run tests on a specific package:
```console
$ pnpm --filter ./packages/<name> test
```
Linting:
To lint all packages which have changes:
```console
$ pnpm lint
```
To lint a specific package:
```console
$ pnpm --filter ./packages/<name> lint
```
_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 <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](https://twitter.com/RollupJS) on Twitter.
## Meta
[CONTRIBUTING](./.github/CONTRIBUTING.md)
[LICENSE (MIT)](./LICENSE)
", Assign "at most 3 tags" to the expected json: {"id":"7247","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"