Git Product home page Git Product logo

create-fresh-cli's Introduction

create-fresh-cli

使用方式

npm init fresh@latest
yarn create fresh@latest
pnpm create fresh@latest

在交互模式下 cli 会问你几个问题, 然后为你创建一个新项目,但你也可以通过几个标记跳过交互模式

要跳过交互模式,可以使用 --yes 标志 例如 创建一个名称为 my-project 的 react 项目,不需要包含.vscode 文件,使用 pnpm 作为包管理器

pnpm create fresh@latest -- --name my-project --kit react --flavor application --yes --vscode false --pm pnpm

模板列表

Name Description Repository
react react 项目模板 https://github.com/wojiangkuanglong/react-fresh-starter
vue vue 项目模板
node node 项目模板
npm npm 模板

cli 参数

参数 描述 默认
--name 项目名称 undefined
--kit 项目模板类型 react、vue、node、npm undefined
--flavor 项目类型 application、 library false
--yes 是否跳过交互模式 false
--git 是否初始化 git 仓库 true
--vscode 是否包含 .vscode 文件 true
--pm 包管理器 npm、yarn、pnpm npm

如何开发

pnpm install
pnpm run dev

该命令将在观察模式下运行 cli,因此您可以进行更改并在 cli 中看到这些更改

node ./lib/cli.mjs

相关技术

目录结构

create-fresh-cli's People

Contributors

wojiangkuanglong avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.