Skip to content

Commit

Permalink
feat: add replaces and commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Oct 8, 2022
1 parent b6edfaf commit 83f58a5
Show file tree
Hide file tree
Showing 7 changed files with 329 additions and 74 deletions.
15 changes: 6 additions & 9 deletions README.md
Expand Up @@ -18,14 +18,15 @@ create
## Configuration

Most formats of configuration are supported.
The configuration file is located in `$HOME/.config/create.config.[js,json,yml]`
The configuration file is located in `$HOME/.config/create.config.[js,ts,json,yml,yaml]`

[TypeScript Schema](https://github.com/sxzz/create/blob/main/src/config.ts#L12)
[TypeScript Schema](https://github.com/sxzz/create/blob/main/src/types.ts)

Run `create config` to modify config.

```yaml
gitInit: true # optional, defaults to true
git:
init: true # optional, defaults to true

templates:
- name: Library # must be unique
Expand All @@ -36,14 +37,10 @@ templates:
url: 'git@github.com:sxzz/node-lib-starter.git' # remote URL or local path
- name: Web App
url: xxxxx
gitInit: false # overwrite global config
git:
init: false # overwrite global config
```

## TODO

- modify name in `package.json` and `README.md`
- update deps

## Sponsors

<p align="center">
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -29,14 +29,17 @@
"prepublishOnly": "pnpm run build"
},
"dependencies": {
"@antfu/utils": "^0.5.2",
"chalk": "^5.0.1",
"commander": "^9.4.0",
"consola": "^2.15.3",
"degit": "^2.8.4",
"enquirer": "^2.3.6",
"escape-string-regexp": "^5.0.0",
"execa": "^6.1.0",
"find-up": "^6.3.0",
"js-yaml": "^4.1.0",
"replace-in-file": "^6.3.5",
"unconfig": "^0.3.6"
},
"devDependencies": {
Expand Down

0 comments on commit 83f58a5

Please sign in to comment.