Skip to content
On this page

Starter Template

Templates created through the Preset CLI are obtained through the Git repository.

About classification of sources

Templates are classified into three sources: official maintenance, open source community, and local configuration.

SourceDescriptionColorView
Official MaintenanceMaintained by the official Awesome Starter team.Yellowofficial.json
Open Source CommunityExcellent templates found from open source communities like GitHub.Whitecommunity.json
Local ConfigurationA config file that you store locally on your computer.CyanLocal Configuration

Rules for adding templates

The configuration file is in JSON format, so please follow the correct JSON syntax and add it to the array in the template file.

Each template currently specifies the following format:

json
{
  "tech": "vue",
  "name": "vue3-ts-vite",
  "desc": "A template for Vue 3.0 with TypeScript, base on Vite.",
  "repo": "https://github.com/awesome-starter/vue3-ts-vite-starter"
}

JSON field description:

FieldTypeDescription
techstringTechnology stack, please check here for legal tech stack names.
namestringName of the template, please omit words like template or starter, just write the base name.
descstringDescription of the template, one sentence to understand the characteristics of this template.
repostringTemplate repository URL, supports https and git@ starting addresses, see the following Template URL description
mirrorstringOptional, the URL of the mirror warehouse, fill in the same format as the repo field, see the description of Proxy Download for usage

TIP

Since the purpose of Awesome Starter is to provide excellent project templates, it only accepts repository collections of the Starter Template class. If you plan to make PR contributions to community.json, please pay attention to this.

For the beauty of the list, currently the template name can display up to 20 characters, and the template description can display up to 80 characters. Exceeding the number of characters will end with ellipsis.

Template URL description

Template URLs are supported in two formats: HTTPS and SSH.

HTTPS

By default, HTTPS is used to configure for public repositories:

  • If you use the master branch, just copy the access address of the repository in the browser directly
  • If it is a non-master branch such as main or develop, you need to concatenate # + branch name
bash
# Use `master` as the master branch
https://github.com/awesome-starter/vue3-ts-vite-starter

# Use `main` or other non-master branches
# (the difference is the # sign with branch name at the end)
https://github.com/awesome-starter/vue3-ts-vite-starter#main

TIP

So, both the official template and the community template need to be configured this way, since they both have to be public repositories.

SSH

If you configure your SSH Key correctly, you can download the template via SSH, which will pull the code in the form of git clone.

bash
# Copy the SSH download URL in the repository
git@github.com: awesome-starter/create-preset.git

You can visit Connecting to GitHub with SSH to learn how to configure SSH Key.

TIP

The provision of this method is mainly used to manage private repositories in the local configuration.

Sort priority

Currently, it will be sorted according to the priority of "Local Configuration" > "Official Maintenance" > "Open Source Community", and "Local Configuration" will be placed at the top of the list, which is convenient for your daily use.

TIP

Since v0.10.0, the order of community templates is no longer fixed, and the order will be randomly generated each time, in order to allow different templates to have enough opportunities to be exposed at the top.

If there are some community templates that you commonly use, please add them to the local configuration for easy search, so that they can be fixed at the top of the list.

Manage local templates

See: Manage local templates in your local configuration .

Released under the MIT License.