Skip to content

Commit 405b805

Browse files
committed
refactor: standardize imports and format configuration files
1 parent 323b544 commit 405b805

File tree

12 files changed

+43
-40
lines changed

12 files changed

+43
-40
lines changed

.changeset/solid-bobcats-refuse.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'create-mcp-kit': patch
3+
'@mcp-tool-kit/shared': patch
4+
---
5+
6+
refactor: standardize imports and format configuration files

docs/.vitepress/config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vitepress'
2-
import llmstxt from 'vitepress-plugin-llms'
32
import { groupIconMdPlugin, groupIconVitePlugin } from 'vitepress-plugin-group-icons'
3+
import llmstxt from 'vitepress-plugin-llms'
44
import pkg from '../../packages/create-mcp-kit/package.json' with { type: 'json' }
55

66
// https://vitepress.dev/reference/site-config
@@ -23,9 +23,7 @@ export default defineConfig({
2323
themeConfig: {
2424
// https://vitepress.dev/reference/default-theme-config
2525
logo: '/logo.png',
26-
socialLinks: [
27-
{ icon: 'github', link: 'https://github.com/my-mcp-hub/mcp-kit' }
28-
],
26+
socialLinks: [{ icon: 'github', link: 'https://github.com/my-mcp-hub/mcp-kit' }],
2927
nav: [
3028
{ text: 'Home', link: '/' },
3129
{ text: 'Guide', link: '/guide/what-is-mcp', activeMatch: '/guide/' },
@@ -34,7 +32,7 @@ export default defineConfig({
3432
items: [
3533
{
3634
text: 'Changelog',
37-
link: 'https://github.com/my-mcp-hub/mcp-kit/blob/main/packages/create-mcp-kit/CHANGELOG.md'
35+
link: 'https://github.com/my-mcp-hub/mcp-kit/blob/main/packages/create-mcp-kit/CHANGELOG.md',
3836
},
3937
],
4038
},

docs/.vitepress/styles/custom.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
--vp-home-hero-name-color: transparent;
33
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #58e1a7, #6b7cff);
44
--vp-home-hero-image-background-image: linear-gradient(-45deg, #58e1a7 50%, #6b7cff 50%);
5-
--vp-home-hero-image-filter: blur(44px)
5+
--vp-home-hero-image-filter: blur(44px);
66
}
77

88
@media (min-width: 640px) {
99
:root {
10-
--vp-home-hero-image-filter:blur(56px);
10+
--vp-home-hero-image-filter: blur(56px);
1111
}
1212
}
1313

1414
@media (min-width: 960px) {
1515
:root {
16-
--vp-home-hero-image-filter:blur(68px);
16+
--vp-home-hero-image-filter: blur(68px);
1717
}
1818
}
1919

docs/crawlerConfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@
2020
"global": true
2121
}
2222
},
23-
"selectors_exclude": [
24-
"aside",
25-
".page-footer",
26-
".next-and-prev-link",
27-
".table-of-contents"
28-
],
23+
"selectors_exclude": ["aside", ".page-footer", ".next-and-prev-link", ".table-of-contents"],
2924
"custom_settings": {
3025
"attributesForFaceting": ["lang", "tags"]
3126
},

docs/zh/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineAdditionalConfig, type DefaultTheme } from 'vitepress'
1+
import { type DefaultTheme, defineAdditionalConfig } from 'vitepress'
22
import pkg from '../../packages/create-mcp-kit/package.json' with { type: 'json' }
33

44
// https://vitepress.dev/reference/site-config

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import importPlugin from 'eslint-plugin-import'
22
import prettierPlugin from 'eslint-plugin-prettier'
3-
import tseslint from 'typescript-eslint'
43
import globals from 'globals'
4+
import tseslint from 'typescript-eslint'
55

66
export default [
77
...tseslint.configs.recommended,

packages/create-mcp-kit/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@
3030
"access": "public"
3131
},
3232
"license": "MIT",
33-
"files": [
34-
"dist",
35-
"template",
36-
"LICENSE",
37-
"README.md"
38-
],
33+
"files": ["dist", "template", "LICENSE", "README.md"],
3934
"repository": {
4035
"type": "git",
4136
"url": "git+https://github.com/my-mcp-hub/mcp-kit.git"

packages/create-mcp-kit/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/usr/bin/env node
2-
import { fileURLToPath } from 'url'
3-
import { dirname, join, resolve } from 'path'
2+
import { join, resolve } from 'node:path'
43
import * as clack from '@clack/prompts'
4+
import { createProject, fileExists, installDependencies, sleep } from '@mcp-tool-kit/shared'
5+
import gradient from 'gradient-string'
56
import pc from 'picocolors'
67

78
const dirname = import.meta.dirname

packages/create-mcp-kit/tests/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { tmpdir } from 'os'
2-
import { join, resolve } from 'path'
3-
import { mkdirSync, rmSync } from 'fs'
4-
import { describe, test, expect } from 'vitest'
1+
import { mkdirSync, rmSync } from 'node:fs'
2+
import { tmpdir } from 'node:os'
3+
import { join, resolve } from 'node:path'
54
import { execa } from 'execa'
5+
import { describe, expect, test } from 'vitest'
66

77
describe('test index cli', () => {
88
test('should create project', async () => {

packages/shared/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
"access": "public"
3030
},
3131
"license": "MIT",
32-
"files": [
33-
"dist",
34-
"LICENSE",
35-
"README.md"
36-
],
32+
"files": ["dist", "LICENSE", "README.md"],
3733
"repository": {
3834
"type": "git",
3935
"url": "git+https://github.com/my-mcp-hub/mcp-kit.git"

0 commit comments

Comments
 (0)