GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - FE-CodeGenius/codegenius-template-plugin: 运行 cg 生成 CodeGenius 内置模板项目

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
scripts
scripts
 
 
src
src
 
 
templates
templates
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.release-it.js
.release-it.js
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
codeg.config.mjs
codeg.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
rollup.config.mjs
rollup.config.mjs
 
 
scripts.config.json
scripts.config.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

@codegenius/template-plugin

基于 CodeGenius 内置模板快速创建新项目, 仅支持询问模式;

使用场景: 用于创建青睐 CodeGenius 模板的新的项目 (目前模板为 vitejs 内置, 主要在模拟功能, 模板后续更新后可用).

安装

npm i @codegenius/template-plugin -D
import { defineConfig } from "code-genius";
import { templateInstaller } from "@codegenius/template-plugin";

export default defineConfig({
  plugins: [
    templateInstaller(),
  ],
});

使用

询问模式

# 启动询问模式(默认)
codeg template
# 询问过程
1. 请输入项目名称
2. 请输入 package name
3. 请选择下列的有效模板
4. 请选择下列的有效变体
# 启动询问模式(带参)
codeg template -n project-salkdyfT -f vue
选项 描述
-n, --project-name <project-name> 项目名称
-f, --framework <framework> 项目框架
# 询问过程
1. 请输入项目名称 (-n 输入则仅需确认)
2. 请输入 package name
3. 请选择下列的有效模板 (-f 输入有效则跳过)
4. 请选择下列的有效变体

About

运行 cg 生成 CodeGenius 内置模板项目

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.