中文 | English
@emooa/logger
Is a simple logger for use with Nodejs, designed as a simple and versatile logging library that supports multiple transports. Read More.
yarn add @emooa/logger
@emooa/ui
Is an enterprise-class UI design language and React UI library. Read More.
yarn add @emooa/logger
@emooa/icon
includes a large number of iconfont
icons and supports dynamically customized icon libraries.
yarn add @emooa/icon
@emooa/http
is a network request library based on secondary encapsulation of Axios, which provides unified error pop-up window processing and works in browsers. It combines back-end interface services to provide error alerts for the return body, and supports customized return status codes, internationalization, and prompt content.
yarn add @emooa/http
lerna create new_name
Install dependencies for all packages
// Root directory
yarn run exec
// Root directory
yarn run build
// Root directory
yarn run test
npm login
// Root directory
npm run publish
yarn start
yarn run docs:build
-
Why is the installation dependency
yarn run exec
, instead ofyarn
directly?The
lerna exec -- yarn
command is used to execute theyarn
command in each package in theLerna
repository to install dependencies.Specifically,
lerna exec
is a command provided byLerna
to execute a specified command on each package in the repository.--
is the flag used to separate thelerna exec
command from the command to be executed (yarn install
).By running
lerna exec -- yarn
,Lerna
will iterate through each package in the repository and executeyarn
in each package's directory to ensure that their dependencies are installed correctly.For convenience, I wrote it into the
package.json scripts
configuration.