Skip to content

Commit 2390264

Browse files
feat: add .npmrc for project-level npm configuration and update installation instructions in README and quick-start guide
1 parent e6c876e commit 2390264

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Project-level npm configuration
2+
# Keep this minimal to avoid changing install behavior unexpectedly.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,21 @@ yarn add tml-ui
2727
pnpm add tml-ui
2828
```
2929

30+
### 使用自建源安装
31+
32+
本项目会发布到自建源:`https://gaq0noe1.cn-nb1.rainapp.top/`
33+
34+
```bash
35+
# npm
36+
npm install tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
37+
38+
# yarn
39+
yarn add tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
40+
41+
# pnpm
42+
pnpm add tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
43+
```
44+
3045
## 🔨 使用
3146

3247
### 完整引入

docs/guide/quick-start.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,38 @@
44

55
## 安装
66

7+
::: tip 使用自建源安装
8+
本项目会发布到自建源:`https://gaq0noe1.cn-nb1.rainapp.top/`
9+
10+
如果你的环境需要从自建源安装,可以在安装命令中指定 `--registry`
11+
:::
12+
713
::: code-group
814

915
```bash [npm]
1016
npm install tml-ui
1117
```
1218

19+
```bash [npm(自建源)]
20+
npm install tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
21+
```
22+
1323
```bash [yarn]
1424
yarn add tml-ui
1525
```
1626

27+
```bash [yarn(自建源)]
28+
yarn add tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
29+
```
30+
1731
```bash [pnpm]
1832
pnpm add tml-ui
1933
```
2034

35+
```bash [pnpm(自建源)]
36+
pnpm add tml-ui --registry=https://gaq0noe1.cn-nb1.rainapp.top/
37+
```
38+
2139
:::
2240

2341
## 完整引入

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)