Skip to content

Commit 0b84a78

Browse files
committed
feat(create-rstack): support --no-git
1 parent 4b1fadc commit 0b84a78

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

packages/create-rstack/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ npx create-rstack --dir my-project --template app-vanilla-ts
1717

1818
# Using abbreviations
1919
npx create-rstack -d my-project -t app-vanilla-ts
20+
21+
# Skip Git initialization
22+
npx create-rstack --dir my-project --template app-vanilla-ts --no-git
2023
```
2124

2225
## Templates

packages/create-rstack/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,6 @@ await create({
135135
'doc-i18n',
136136
],
137137
builtinTools: [],
138+
git: !process.argv.includes('--no-git'),
138139
getTemplateName,
139140
});

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ catalog:
2222
'@rspress/plugin-client-redirects': '^2.0.19'
2323
'@rspress/plugin-sitemap': '^2.0.19'
2424
'@rstack-dev/doc-ui': '1.14.7'
25-
'@rstackjs/create-toolkit': '2.1.5'
25+
'@rstackjs/create-toolkit': '2.2.0'
2626
'@rstackjs/load-config': ^0.1.2
2727
'@rstackjs/test-utils': ^0.2.0
2828
'@rstest/adapter-rsbuild': '~0.11.5'

0 commit comments

Comments
 (0)