Giter Site home page Giter Site logo

prigara / berry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yarnpkg/berry

0.0 1.0 0.0 206.69 MB

๐Ÿ“ฆ๐Ÿˆ The active development trunk for Yarn 2 โš’

Home Page: https://next.yarnpkg.com

License: Other

JavaScript 29.48% TypeScript 69.22% Shell 0.84% C 0.06% Prolog 0.25% CSS 0.03% Dockerfile 0.10% Batchfile 0.01% PowerShell 0.01%

berry's Introduction

Yarn

Fast, reliable, and secure dependency management.

GitHub Actions status Discord Chat Stable Release Prerelease


Yarn is a modern package manager split into various packages. Its novel architecture allows to do things currently impossible with existing solutions:

  • Yarn supports plugins; adding a plugin is as simple as adding it into your repository
  • Yarn supports Node by default but isn't limited to it - plugins can add support for other languages
  • Yarn supports workspaces natively, and its CLI takes advantage of that
  • Yarn uses a portable shell to execute package scripts, guaranteeing they work the same way on Windows and Linux
  • Yarn is first and foremost a Node API that can be used programmatically (via @yarnpkg/core)
  • Yarn is written in TypeScript, and fully typechecked

Install

Consult the dedicated page for more details.

Documentation

The documentation is being reworked to contain an updated content and a refreshed design, and the most up-to-date version can be found on the repository GitHub pages: next.yarnpkg.com

Current status

On top of our classic integration tests, we also run Yarn every day against the latest versions of the toolchains used by our community - just in case, really. Everything should be green!

Toolchain E2E Tests Tooling E2E Tests
Create-React-App ESLint
Gatsby Husky
Next.js Prettier
Jest
Mocha
TypeScript
Webpack

Build your own bundle

Clone this repository, then run the following commands:

yarn build:cli

How it works

After building the CLI your global yarn will immediately start to reflect your local changes. This is because Yarn will pick up the yarnPath settings in this repository's .yarnrc.yml, which is configured to use the newly built CLI if available.

Works out of the box!

Note that no other command is needed! Given that our dependencies are checked-in within the repository (within the .yarn/cache directory), you don't even need to run yarn install. Everything just works right after cloning the project, and is guaranteed to continue to work ten years from now ๐Ÿ™‚

Yarn plugins

Default plugins

Those plugins typically come bundled with Yarn. You don't need to do anything special to use them.

Contrib plugins

Although developed on the same repository as Yarn itself, those plugins are optional and need to be explicitly installed through yarn plugin import @yarnpkg/<plugin-name>.

Third-party plugins

Plugins can be developed by third-party entities. To use them within your applications, just specify the full plugin URL when calling yarn plugin import. Note that plugins aren't fetched from the npm registry at this time - they must be distributed as a single JavaScript file.

Creating a new plugin

To create your own plugin, please refer to the documentation.

Generic packages

The following packages are generic and can be used in a variety of purposes (including to implement other package managers, but not only):

Yarn packages

The following packages are meant to be used by Yarn itself, and probably won't be useful to other applications:

berry's People

Contributors

0xflotus avatar andrewl33 avatar arcanis avatar bgotink avatar deini avatar embraser01 avatar eps1lon avatar globolobo avatar homburg avatar jdlehman avatar larixer avatar lirantal avatar lroling8350 avatar mollyiv avatar olingern avatar orzfly avatar prigara avatar sandinmyjoints avatar sebastianplace avatar sverweij avatar swrobel avatar teoxoy avatar tiansijie avatar timer avatar tkamenoko avatar tladd avatar valerybugakov avatar willgriffiths avatar yarnbot avatar zachasme 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.