Skip to content

Commit fa4fd45

Browse files
committed
feat: update vertion create-react-doc
1 parent 18f9d63 commit fa4fd45

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.npmrc

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
# .npmrc
2-
3-
registry=http://r.cnpmjs.org/
4-
5-
# https://github.com/sass/node-sass#binary-configuration-parameters
6-
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
7-
8-
# https://github.com/Medium/phantomjs#deciding-where-to-get-phantomjs
9-
# phantomjs_cdnurl=http://cnpmjs.org/downloads
10-
phantomjs_cdnurl=https://npm.taobao.org/dist/phantomjs
2+
registry=https://registry.npmjs.org/

.yarnrc

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
# .yarnrc
22

3-
registry "http://r.cnpmjs.org/"
4-
5-
# https://github.com/sass/node-sass#binary-configuration-parameters
6-
sass_binary_site "https://npm.taobao.org/mirrors/node-sass/"
7-
8-
# https://github.com/Medium/phantomjs#deciding-where-to-get-phantomjs
9-
# phantomjs_cdnurl "http://cnpmjs.org/downloads"
10-
phantomjs_cdnurl "https://npm.taobao.org/dist/phantomjs"
3+
registry "https://registry.npmjs.org/"

BasicSkill/fe_cloud/lerna.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ From lerna
1010

1111
> Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories becomes complicated very quickly.
1212
13-
### 方案一: lerna
13+
### Usage
1414

1515
```
1616
$ mkdir lerna-repo && cd $_
@@ -27,6 +27,21 @@ $ npx lerna init
2727
* [Mono repo 迁移实践](https://medium.com/@banyudu/mono-repo-%E8%BF%81%E7%A7%BB%E5%AE%9E%E8%B7%B5-eaf955aaf4d7)
2828
* [awesome-monorepo](https://github.com/korfuri/awesome-monorepo)
2929

30+
### Advandage
31+
32+
* Quick jump to reference file.
33+
* Instead webpack alias maybe do extra config.
34+
35+
### Q & A
36+
37+
> why should add workspaces and private props in the root?
38+
39+
The root package.json usually not have any effect, and workspaces and private props are used together.
40+
41+
### Question
42+
43+
It seems it should be named @crd/theme instead of @crd-theme.
44+
3045
### 相关资料
3146

3247
* [lerna github](https://github.com/lerna)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"commitlint": "^8.3.5",
36-
"create-react-doc": "^0.1.1",
36+
"create-react-doc": "^0.1.20",
3737
"husky": "^3.0.3",
3838
"lint-md": "^0.2.0",
3939
"lint-md-cli": "^0.1.1",

0 commit comments

Comments
 (0)