Skip to content

Commit

Permalink
发布博客,时间:2024/09/18 14:43:53
Browse files Browse the repository at this point in the history
  • Loading branch information
whp98 committed Sep 18, 2024
1 parent 00f70a6 commit 251f9b9
Show file tree
Hide file tree
Showing 15 changed files with 186 additions and 59 deletions.
File renamed without changes.
3 changes: 0 additions & 3 deletions docs/DEV-TIPS/index.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/DEV-TIPS/npm-config-china.md

This file was deleted.

5 changes: 5 additions & 0 deletions docs/Web开发/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Web开发
- [npm设置查看镜像](./npm设置查看镜像.md)
- [nrm前端镜像管理](./nrm前端镜像管理.md)
- [yrm前端镜像管理](./yrm前端镜像管理.md)
- [npm安装yarn](./npm安装yarn设置镜像.md)
- [npm安装pnpm](./npm安装pnpm设置镜像.md)
- [pnpm-缺少各种loader思路](./pnpm-缺少各种loader思路.md)
- [yarn报错registry.nlark.com连不上](./yarn报错registry.nlark.com连不上.md)
- [npm发布软件包](./npm发布软件包.md)
Expand Down
35 changes: 35 additions & 0 deletions docs/Web开发/npm安装pnpm设置镜像.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# npm安装pnpm

## 参考官网

https://pnpm.io/installation#using-npm

版本兼容性

pnpm7 >= node14

pnpm8 >= node16

pnpm9 >= node18

## 安装pnpm

```bash
pnpm install -g pnpm@8
which pnpm
```

## 查看和设置镜像

查询下载源
```bash
pnpm get registry
```
设置为国内镜像
```bash
pnpm config set registry https://registry.npmmirror.com
```
设置为官方镜像
```bash
pnpm config set registry https://registry.npmjs.org/
```
28 changes: 28 additions & 0 deletions docs/Web开发/npm安装yarn设置镜像.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# npm安装yarn

## 参考官网

https://classic.yarnpkg.com/en/docs/install#debian-stable


## 安装pnpm

```bash
npm install -g yarn
which yarn
```

## 查看和设置镜像

查询下载源
```bash
yarn config get registry
```
设置为国内镜像
```bash
yarn config set registry https://registry.npmmirror.com
```
设置为官方镜像
```bash
yarn config set registry https://registry.yarnpkg.com
```
14 changes: 14 additions & 0 deletions docs/Web开发/npm设置查看镜像.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# npm设置查看镜像

## 查询下载源
```shell
npm get registry
```
## 设置为国内镜像
```shell
npm config set registry https://registry.npmmirror.com
```
## 设置为官方镜像
```shell
npm config set registry https://registry.npmjs.org/
```
17 changes: 17 additions & 0 deletions docs/Web开发/nrm前端镜像管理.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# nrm前端镜像管理

使用nrm自由切换镜像
```shell
npm install -g nrm
```
## 镜像列表

```shell
nrm ls
```

## 切换镜像

```shell
nrm use taobao
```
17 changes: 17 additions & 0 deletions docs/Web开发/yrm前端镜像管理.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yrm前端镜像管理

使用yrm自由切换镜像
```shell
npm install -g yrm
```
## 镜像列表

```shell
yrm ls
```

## 切换镜像

```shell
yrm use taobao
```
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# 目录
- [开发工具技巧](./开发工具技巧/)
- [Web开发](./Web开发/)
- [服务器](./服务器/服务器.md)
- [赞助和推广](./赞助和推广/)
- [兴趣](./兴趣/)
- [容器](./容器/)
- [python相关](./python相关/)
- [LLM相关](./LLM相关/)
- [Linux系统](./Linux系统/)
- [开发工具技巧](./开发工具技巧/)
- [Java语言相关](./Java语言相关/)
- [Git版本管理](./Git版本管理/)
- [Web开发](./Web开发/)
- [安卓](./安卓/)
- [生活记录](./生活记录/)
- [社会认知](./社会认知/)
Expand All @@ -21,7 +21,6 @@
- [Nginx](./Nginx/)
- [NodeJS学习](./NodeJS学习/)
- [Windows系统](./Windows系统/)
- [DEV-TIPS](./DEV-TIPS/)
- [About](./public/public.md)
- [代码质量](./代码质量/)
- [英语](./英语/)
Expand Down
3 changes: 3 additions & 0 deletions docs/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//vite.config.js
import { defineConfig } from "vite";
import { splitVendorChunkPlugin } from 'vite'


export default defineConfig({
base: "./",
Expand All @@ -9,6 +11,7 @@ export default defineConfig({
disableHostCheck: true,
},
plugins: [
splitVendorChunkPlugin()
],
assetsInclude: ['**/*.PNG','**/*.JPG']
});
1 change: 1 addition & 0 deletions docs/开发工具技巧/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# 开发工具技巧
- [常用中国镜像站点](./常用中国镜像站点.md)
- [IDEA关闭jdk下载和jdk更新检查](./IDEA关闭jdk下载和jdk更新检查.md)
- [IDEA如何管理前后端并注册为方便启停服务](./IDEA如何管理前后端并注册为方便启停服务.md)
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
# China-mirror 中国镜像

## AliYun mirror

https://developer.aliyun.com/mirror/

## NetEase

https://mirrors.163.com/

## tencent

https://mirrors.tencent.com/

## bytedance

https://mirrorvolc.volces.com/


## huawei cloud

https://mirrors.huaweicloud.com/home


## tsinghua
https://mirrors.tuna.tsinghua.edu.cn/

## ustc
http://mirrors.ustc.edu.cn/

## bjtu
https://mirror.bjtu.edu.cn/

## zju
http://mirrors.zju.edu.cn/

## neusoft
http://mirrors.neusoft.edu.cn/
# 常用中国镜像站点

## AliYun mirror

https://developer.aliyun.com/mirror/

## NetEase

https://mirrors.163.com/

## tencent

https://mirrors.tencent.com/

## bytedance

https://mirrorvolc.volces.com/


## huawei cloud

https://mirrors.huaweicloud.com/home


## tsinghua
https://mirrors.tuna.tsinghua.edu.cn/

## ustc
http://mirrors.ustc.edu.cn/

## bjtu
https://mirror.bjtu.edu.cn/

## zju
http://mirrors.zju.edu.cn/

## neusoft
http://mirrors.neusoft.edu.cn/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"markdown-it": "13.0.1",
"moment": "2.29.4",
"vite": "4.4.9",
"vite-plugin-chunk-split": "^0.5.0",
"vitepress": "1.3.4",
"vue": "3.3.4"
},
Expand Down
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 251f9b9

Please sign in to comment.