Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yaoxfly/common
- Owner: yaoxfly
- License: mit
- Created: 2023-05-24T03:16:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-12T10:30:29.000Z (over 1 year ago)
- Last Synced: 2024-12-22T13:04:27.404Z (15 days ago)
- Language: TypeScript
- Homepage:
- Size: 3.75 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 debuggingAfter 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
```