Skip to content

Commit 12ab15a

Browse files
authored
Merge pull request #13 from coder-fang/develop
feat(core): object mergeObject
2 parents 35aefa7 + 0a3997a commit 12ab15a

File tree

15 files changed

+1945
-872
lines changed

15 files changed

+1945
-872
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# tsuse
1+
# tseuse
22

33
ts 一起重复造轮子!

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tsuse",
2+
"name": "tseuse",
33
"version": "1.0.0",
44
"description": "",
55
"main": "index.js",
@@ -13,18 +13,23 @@
1313
"prepare": "husky install",
1414
"coverage": "vitest run --coverage",
1515
"docs:dev": "vitepress dev packages",
16-
"docs:build": "vitepress build packages"
16+
"docs:build": "vitepress build packages",
17+
"release": "changeset publish"
1718
},
1819
"lint-staged": {
1920
"*.{vue,js,ts,jsx,tsx,json}": [
2021
"pnpm run lint",
2122
"pnpm run format"
2223
]
2324
},
25+
"publicConfig": {
26+
"registry": "https://registry.npmjs.org/"
27+
},
2428
"keywords": [],
2529
"author": "",
2630
"license": "ISC",
2731
"devDependencies": {
32+
"@changesets/cli": "^2.26.1",
2833
"@commitlint/cli": "^17.6.3",
2934
"@commitlint/config-conventional": "^17.6.3",
3035
"@types/node": "^20.1.3",

packages/.vitepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
base: '/tsuse/',
2+
base: '/tseuse/',
33
head: [['link', { rel: 'icon', href: './favicon.ico' }]],
44
};

packages/core/getDevice/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ category: UA
99
## Usage
1010

1111
```ts
12-
import { getDevice } from '@tsuse/core';
12+
import { getDevice } from '@tseuse/core';
1313

1414
const browser = getDevice();
1515

@@ -23,7 +23,7 @@ const browser = getDevice();
2323
- 浏览器(客户端)中使用 [ua 可选]
2424

2525
```
26-
import { getDevice } from "@tsuse/core"
26+
import { getDevice } from "@tseuse/core"
2727
// 未带参数
2828
const browser = getDevice()
2929
@@ -35,7 +35,7 @@ const browser = getDevice();
3535

3636
```
3737
import http from 'http'
38-
import { getDevice } from "@tsuse/core"
38+
import { getDevice } from "@tseuse/core"
3939
4040
http.createServer(function (req, res) {
4141
// get user-agent header

packages/core/getDevice/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isString } from '@tsuse/shared';
1+
import { isString } from '@tseuse/shared';
22

33
export const DEVICES = [
44
{

packages/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tsuse/core",
2+
"name": "@tseuse/core",
33
"version": "1.0.0",
44
"description": "",
55
"main": "./dist/index.js",
@@ -28,6 +28,6 @@
2828
"author": "",
2929
"license": "ISC",
3030
"dependencies": {
31-
"@tsuse/shared": "workspace:*"
31+
"@tseuse/shared": "workspace:*"
3232
}
3333
}

packages/guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
## 安装
44

55
```bash
6-
pnpm i @tsuse/core
6+
pnpm i @tseuse/core
77
```
88

99
## 简单使用
1010

1111
```ts
12-
import { getDevice } from '@tsuse/core';
12+
import { getDevice } from '@tseuse/core';
1313

1414
const browser = getDevice();
1515

packages/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
layout: home
33
sidebar: false
44

5-
title: tsuse
5+
title: tseuse
66
titleTemplate: 一个疯狂的开源前端工具库
77

88
hero:
9-
name: tsuse
9+
name: tseuse
1010
text: 一个疯狂的开源前端工具库
1111
tagline: 🎉 一个疯狂的开源前端工具库
1212
actions:
@@ -24,7 +24,7 @@ hero:
2424
link: /react
2525
- theme: alt
2626
text: View on GitHub
27-
link: https://github.com/coder-fang/tsuse
27+
link: https://github.com/coder-fang/tseuse
2828

2929
features:
3030
- title: 功能丰富

0 commit comments

Comments
 (0)