GithubHelp home page GithubHelp logo

jmegs / tpl Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 250 KB

Quickly start up new projects from examples on Github.

Home Page: https://www.npmjs.com/package/@jmegs/tpl

JavaScript 100.00%
scaffold cli starter-template node javascript

tpl's Introduction

TPL

Quickly start up new projects from examples on Github. gif of tpl in action

Installing

install tpl globally so you can access it on the command line

npm install -g @jmegs/tpl
# or yarn global add @jmegs/tpl

What it does

tpl will shallow clone a repository and re-initialize git, so you have a clean start to your project, without any of the authors commits to worry about.

It basically wraps this squence of commands so you don't have to remember them.

git clone --depth 1 <repo> <directory> && cd <directory> && rm -rf .git && git init && git add -all && git commit -m 'initial commit'

Usage

tpl accepts two arguments

  1. the repo you want a copy of
  2. the directory you want to put it in (optional)

the repo can either be a full github link or the shorthand <user>/<repo>

# make a fresh copy of static-starter in my-new-site
tpl jmegs/static-starter my-new-site
# make a fresh copy of react-website-starter in a directory of the same name
tpl https://github.com/broccolini/react-website-starter.git

Made With

ShellJS Log Meow Chalk

tpl's People

Contributors

jmegs avatar

Watchers

 avatar

tpl's Issues

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.