Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sxzz/create
Command-line for creating projects from templates.
https://github.com/sxzz/create
Last synced: about 2 months ago
JSON representation
Command-line for creating projects from templates.
- Host: GitHub
- URL: https://github.com/sxzz/create
- Owner: sxzz
- License: mit
- Created: 2022-09-05T09:47:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T03:55:55.000Z (about 2 months ago)
- Last Synced: 2024-07-29T05:03:05.144Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 277 KB
- Stars: 16
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - create - A command-line tool for creating a new project. (Developer Experience (DX))
README
# @sxzz/create [![npm](https://img.shields.io/npm/v/@sxzz/create.svg)](https://npmjs.com/package/@sxzz/create)
Command-line for creating projects from templates.
## Install
```bash
npm i -g @sxzz/create
```## Usage
```bash
create [path]
# e.g: create hello-world
```## Configuration
Most formats of configuration are supported.
The configuration file is located in `$HOME/.config/create.config.[js,mjs,ts,mts,json,yml,yaml]`[TypeScript Schema](https://github.com/sxzz/create/blob/main/src/types.ts)
URL format: `repo[/subpath][#ref]`. See [examples](https://github.com/unjs/giget#examples).
Run `create config` to modify config.
```yaml
git:
init: true # optional, defaults to truetemplates:
- name: Library # must be unique
# color: '#008800' # optional
children:
- name: TypeScript
color: '#3178c6'
url: sxzz/node-lib-starter # remote URL or local path
- name: Web App
url: xxxxx
git:
init: false # overwrite global config
```## Sponsors
## Credits
- [kecrily/create](https://github.com/kecrily/create) π
## License
[MIT](./LICENSE) License Β© 2022-PRESENT [δΈε²ζΊε](https://github.com/sxzz)