Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 团队开发规范
- Host: GitHub
- URL: https://github.com/24jieqi/fe-config
- Owner: 24jieqi
- Created: 2021-12-21T03:30:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-22T08:02:57.000Z (6 months ago)
- Last Synced: 2024-09-25T00:07:35.838Z (about 2 months ago)
- Topics: eslint-config, prettier, pretty
- Language: JavaScript
- Homepage:
- Size: 186 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.config.js
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
```