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: 3 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-01T03:42:56.000Z (3 months ago)
- Last Synced: 2024-04-01T04:38:56.031Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 309 KB
- Stars: 14
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- 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,ts,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)