0.15.1 • Published 2 months ago

@sxzz/create v0.15.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@sxzz/create npm

Command-line for creating projects from templates.

Install

npm i -g @sxzz/create

# Or use [p]npx
npx @sxzz/create

Usage

Create a project

create [path]
# e.g: create hello-world

Edit configuration

# edit the configuration via VSCode, Vim, or Zed.
create edit

Use remote configuration

create from <url>
# e.g: create from https://raw.githubusercontent.com/sxzz/create/main/example.yaml

# or for short
create from <owner>/<repo>/<branch>/<path>
# e.g: create from sxzz/create/main/example.yaml

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

URL format: repo[/subpath][#ref]. See examples.

Run create config to modify config.

cwd: /Users/your-name/projects # optional, defaults to process.cwd()

git:
  init: true # optional, defaults to true
  add: false

templates:
  - 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

License

MIT License © 2022-PRESENT 三咲智子

0.14.5

3 months ago

0.14.6

3 months ago

0.15.0

2 months ago

0.15.1

2 months ago

0.14.4

4 months ago

0.14.2

4 months ago

0.14.3

4 months ago

0.13.0

5 months ago

0.14.0

5 months ago

0.14.1

5 months ago

0.12.0

7 months ago

0.11.0

10 months ago

0.10.0

10 months ago

0.9.0

11 months ago

0.8.1

1 year ago

0.8.0

1 year ago

0.9.2

11 months ago

0.9.1

11 months ago

0.7.0

1 year ago

0.6.0

2 years ago

0.3.0

3 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.5.2

3 years ago

0.4.3

3 years ago

0.5.1

3 years ago

0.4.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.2.0-beta.1

3 years ago

0.2.0-beta.0

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago