Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/24jieqi/fe-config

💪🏻 24jieqi 团队开发规范
https://github.com/24jieqi/fe-config

eslint-config prettier pretty

Last synced: about 1 month ago
JSON representation

💪🏻 24jieqi 团队开发规范

Awesome Lists containing this project

README

        

24jieqi FE config


24jieqi 团队前端编码配置

[![lerna](https://img.shields.io/badge/maintained%20with-lerna-cc00ff.svg)](https://lerna.js.org/)

## 使用方式

### 安装依赖

```bash
yarn bootstrap
```

### 清除各个库的 node_modules

```bash
yarn clean
```

### 新增库

```bash
## @fruits-chain/eslint-config-preset 即 NPM 的模块名称
lerna create @fruits-chain/eslint-config-preset

## 接下来一路回车就好,会生成初始化模板文件
```

### 添加依赖

```bash
## 对某个库添加第三方依赖
## 似乎只能安装一个一个添加
## @fruits-chain/eslint-config-preset 即 packages 文件夹内某个 package.json 的 name 值
## --dev devDependencies
## --peer peerDependencies
## 更多阅读 -> https://github.com/lerna/lerna/tree/main/commands/add
lerna add father-build --scope=@fruits-chain/eslint-config-preset --dev
```