Skip to content

Commit 00b0e28

Browse files
committed
feat: update server-standard-ts template with conditional plugin support
1 parent 906dfda commit 00b0e28

25 files changed

+106
-27
lines changed

.changeset/purple-plums-nail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-mcp-kit': patch
3+
---
4+
5+
feat: update server-standard-ts template with conditional plugin support

packages/create-mcp-kit/template/server-standard-ts/.prettierrc.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#if (includes plugins 'style')}}
12
{
23
"tabWidth": 2,
34
"printWidth": 120,
@@ -9,3 +10,4 @@
910
"jsxBracketSameLine": false,
1011
"arrowParens": "avoid"
1112
}
13+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/_github/workflows/build.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#if (includes plugins 'github-action')}}
12
name: build
23

34
on:
@@ -35,3 +36,4 @@ jobs:
3536

3637
- name: Coveralls
3738
uses: coverallsapp/github-action@v2
39+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/_github/workflows/npm-publish.yml.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#if (includes plugins 'github-action')}}
12
name: npm-publish
23

34
on:
@@ -37,3 +38,4 @@ jobs:
3738
run: npm publish --provenance --access public
3839
env:
3940
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
41+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/_husky/commit-msg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{#if (includes plugins 'commitlint')}}
2+
npx --no-install commitlint --edit $1
3+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/_husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{#if (includes plugins 'style')}}
2+
npx lint-staged
3+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/changelog-option.js renamed to packages/create-mcp-kit/template/server-standard-ts/changelog-option.js.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#if (includes plugins 'changelog')}}
12
import compareFunc from 'compare-func'
23

34
export default {
@@ -85,3 +86,4 @@ export default {
8586
notesSort: compareFunc,
8687
},
8788
}
89+
{{/if}}

packages/create-mcp-kit/template/server-standard-ts/commitlint.config.js renamed to packages/create-mcp-kit/template/server-standard-ts/commitlint.config.js.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{#if (includes plugins 'commitlint')}}
12
export default {
23
extends: ['@commitlint/config-conventional'],
34
rules: {
@@ -23,3 +24,4 @@ export default {
2324
'subject-case': [0],
2425
},
2526
}
27+
{{/if}}

0 commit comments

Comments
 (0)