Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/yaoxfly/common

A common library and common configuration developed based on the monorepo + pnpm architecture
https://github.com/yaoxfly/common

Last synced: 6 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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

## Function
### @yaoxfly/eslint-config
Custom eslint common configuration
### [@yaoxfly/verify-commit](https://github.com/yaoxfly/common/blob/main/packages/verify-commit/README.md)
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

```js
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:

```js
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

```js
npm link
```

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

```js
npm uninstall -g [Package names]
```

### Start up
start alone

```js
pnpm --filter [Package names] dev
```

start multiple

```js
pnpm --parallel [scripts command]

//For example:
pnpm --parallel dev
```