https://github.com/mwumli/book-refactoring2
《重构 改善既有代码的设计第二版》中文版
https://github.com/mwumli/book-refactoring2
Last synced: 2 months ago
JSON representation
《重构 改善既有代码的设计第二版》中文版
- Host: GitHub
- URL: https://github.com/mwumli/book-refactoring2
- Owner: MwumLi
- Created: 2021-01-10T15:51:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T16:21:44.000Z (over 1 year ago)
- Last Synced: 2025-03-30T16:13:40.289Z (2 months ago)
- Language: CSS
- Homepage: https://book-refactoring2.ifmicro.com/
- Size: 42 MB
- Stars: 286
- Watchers: 1
- Forks: 68
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# book-refactoring2

《重构 改善既有代码的设计第二版》中文版
## 资源获取
* 在线阅读:
* 电子书: [pdf](https://book-refactoring2.ifmicro.com/ebook/refactoring2.pdf), [epub](https://book-refactoring2.ifmicro.com/ebook/refactoring2.pdf), [mobi](https://book-refactoring2.ifmicro.com/ebook/refactoring2.pdf)
## 构建自己的站点/电子书### 准备
1. 请保证 **构建环境** 章节的要求
2. 克隆并安装依赖``` bash
$ git clone https://github.com/MwumLi/book-refactoring2.git
$ npm i
```
### 静态站点> 运行下面命令前, 请保证 **构建环境** 章节的要求, 并先使用 `npm install` 去初始化依赖
执行下面命令:
``` bash
$ npm run build
```构建后的结果放在 `_book/` 目录下, 你可以用来静态部署
### 电子书执行下面命令, 你将得到 `mobi`, `epub` 以及 `pdf` 三种电子书:
``` bash
$ npm run ebook
```> 注意: 构建电子书之前需要安装 [calibre](http://www.calibre-ebook.com/download), 这是 gitbook 构建电子书的必须软件。
## 构建环境
* Node.js ^10.x - ^11.x LTS 版本
* gitbook ^3.x: 因为要支持中文搜索## 贡献
本文还有很多文案不准确或源码格式乱的问题, 如有发现欢迎可以[提 pr](https://github.com/MwumLi/book-refactoring2/pulls) 进行贡献
## 感谢本书源码来自 [NxeedGoto/Refactoring2-zh](https://github.com/NxeedGoto/Refactoring2-zh.git), 由于为了构建电子书籍, 所以改造成了 gitbook 格式。