Skip to content
/ common Public

A common library and common configuration developed based on the monorepo + pnpm architecture

License

Notifications You must be signed in to change notification settings

yaoxfly/common

Repository files navigation

common

A common library and common configuration developed based on the monorepo + pnpm architecture.

Function

@yaoxfly/eslint-config

Custom eslint common configuration

Say goodbye to cumbersome configurations, an npx command automatically downloads husky, lint-staged, commitlint, commitizen, cz-customizable, etc., and completes the relevant configurations.

Adding plugins to the main warehouse

pnpm add -Dw [Plugin Name]

Specify dependencies for individual installation of a certain package

pnpm provides the --filter parameter, which can be used to perform certain operations on specific packages.

Therefore, if you want to install a dependency package for pkg, such as axios, you can do the following:

pnpm add axios --filter pkg

Interdependencies between modules

In monorepo, project A introduces project B,For example:

pnpm add  @yaoxfly/eslint-config  --filter  @yaoxfly/verify-commit

Node module debugging

After using the link, you can use the command to debug

npm link

If you want to test the published package, delete the npm link package globally

npm uninstall -g  [Package names]

Start up

start alone

pnpm --filter [Package names] dev

start multiple

pnpm --parallel  [scripts command]

//For example:
pnpm --parallel  dev

About

A common library and common configuration developed based on the monorepo + pnpm architecture

Resources

License

Stars

Watchers

Forks

Packages

No packages published