Coder Social home page Coder Social logo

cg's Introduction

cg

a text tool that saves you time and helps your team build new files with consistency.

Install

  1. Download from release
  2. Install by npm
npm i -g @tonyer/cg
# other package manager
yarn add -g @tonyer/cg
pnpm add -g @tonyer/cg

Quick Start

  • Add template
cd examples
# add a template to user path
cg add base
# as new name
cg add base test
  • Use Template name
# use template to generate
cg g base --name Tom --age 12
cg g test --name Job --age 44
  • Use Template path
# use template to generate
cg g --template=examples/base --params="name=Tom&age=12"
cg g --template=examples/test --params="name=Tom&age=12"

Use git

  • Add template repo
# clone template repo
cg clone https://github.com/MQpeng/cg-templates
  • fetch template repo
# pull template repo
cg pull

cg's People

Contributors

mqpeng 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.