Skip to content
/ templates1 Public template
forked from mekefly/templates

各种类型的template将通过分支的方式添加进来

Notifications You must be signed in to change notification settings

wormery/templates1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templates

各种类型的template将通过分支的方式添加进来

Includes

  • ex TypeScript
  • templates

Get started

1. 全局安装这个脚本|Install

pnpm install @mekefly/templates -g

2. 执行|Run

mekefly-templates fetch <this-branch-name> <project-path-you-want>

3. 做你爱做的事|Start your work

API

  • mekefly-templates
    • fetch
      • <你需要的模板名(分支名|branch)|Template name you need>
        • <项目的路径|projectRoot>
      • 可选参数|Optional parameters:
        • --project-name(-N) 项目的名字,将会替换package.json
        • --template-name(-T) 模板名,优先级低与上面的模板名
        • --path(-P) 项目的路径,可以是相对路径也可以是绝对路径

ForExample

mekefly-templates fetch main ./ --project-name=xxx

mekefly-templates fetch xxx --project-name=xxx -T main

mekefly-templates fetch --project-name=xxx -T main -P R:\path

mekefly-templates fetch --project-name=xxx -T main --path=R:\path

pull requests 建议

像下方的,你的模板package.json中的__packageName__将会被替换为用户设定的名称

package.json

{
 "name": "__packageName__",
 "shortName": "__packageName__",
 "version": "0.0.0-bate.0",
  "main": "index.js",
  "types": "dist/index.d.ts",
  "module": "dist/__packageName__.esm.js",
  "unpkg": "dist/__packageName__.iife.js",
  "jsdelivr": "dist/__packageName__.iife.js",
}

About

各种类型的template将通过分支的方式添加进来

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%