yarn 使用
[TOC]

Introduction

yarn 之余 JavaScript,等价于 maven 之于 Java。yarn 和 react 都是 Facebook 推出的工具。
Yarn is a package manager that doubles down as project manager. Whether you work on one-shot projects or large monorepos, as a hobbyist or an enterprise user, we've got you covered.
install yarn: npm install --global yarn

cli

yarn --version

yarn start

start the development server

yarn build

bundle the app into static files for production

yarn test

start the test runner

yarn eject

暴露所有的 webpack 配置文件(不可逆)。
remove this tool and copies build dependencies, configuration files and scripts into the app directory.

repos

uuid

npm install uuid
Last modified 12d ago