Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yarnpkg/pnp-sample-app

A playground to preview and experiment with Yarn Plug'n'Play
https://github.com/yarnpkg/pnp-sample-app

Last synced: 5 days ago
JSON representation

A playground to preview and experiment with Yarn Plug'n'Play

Awesome Lists containing this project

README

        

# Plug'n'play sample app

This app showcase a wide range of popular packages, and show that Plug'n'play has no issue working with them. Feel free to open PRs to add more, even if they would make little sense in a classic application!

## Usage

Running `yarn install` in the root directory will automatically use the Plug'n'Play-enabled build checked inside the repository. To try out the project without Plug'n'Play enabled, just run `YARN_PLUGNPLAY_OVERRIDE=0 yarn install` instead.

## Plugins

A few plugins are needed for various build tools to properly understand how to resolve files. Those are the ones we use:

- [jest-pnp-resolver](https://github.com/arcanis/jest-pnp-resolver)
- [rollup-plugin-pnp-resolve](https://github.com/arcanis/rollup-plugin-pnp-resolve)
- [pnp-webpack-plugin](https://github.com/arcanis/pnp-webpack-plugin)

## Packages

The packages currently configured are:

- Babel
- ESLint
- Gulp
- Http-server
- Jest
- Prettier
- React
- Uglifyjs
- Webpack
- Webpack-dev-server

## Known Issues

- ESLint doesn't work w/ eslint-plugin-import because of https://github.com/babel/babel-eslint/issues/680