zachlysobey / z-starter-cli

A CLI to make working with my z-starter project even easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ•Ά 𝓩-Starter-CLI πŸ•Ά

Actions Status

a CLI tool for my z-starter JS starter-template project

How it works

The basic mechanics of this project are pretty simple, and just wrap some fairly basic git features in a nice to use CLI.

When z-starter-cli is invoked within a git project, it will add a new git remote repsoitory: the z-starter one. The, it will ask you to chose from the different template branches in that repo. Once a choice is made, the git history of the current branch is reset to the one specificed from z-starter.

Usage

Intended for use as a global npm script.

npm install --global z-starter-cli

Right now, this should be run from a freshly git initted blank project.

Example usage:

~/work
β–Ά mkdir my-new-cat-meme-app

~/work
β–Ά cd my-new-cat-meme-app

~/work/my-new-cat-meme-app
β–Ά git init
Initialized empty Git repository in /Users/zachlysobey/work/my-new-cat-meme-app/.git/

~/work/my-new-cat-meme-app  master βœ”
β–Ά z-starter-cli
               _             _                      _ _
  ____     ___| |_ __ _ _ __| |_ ___ _ __       ___| (_)
 |_  /____/ __| __/ _` | '__| __/ _ \ '__|____ / __| | |
  / /_____\__ \ || (_| | |  | ||  __/ | |_____| (__| | |
 /___|    |___/\__\__,_|_|   \__\___|_|        \___|_|_|

                                     v1.0.0

ensuring z-starter is loaded as a remote...
getting remotes...
adding z-starter as a remote repository...
fetching z-starter to ensure branches are up to date...
getting branches...
? What type of project do you need? (Use arrow keys)
  nodejs
  nodejs-cli
  nodejs-cli-typescript
  nodejs-library-typescript
❯ react
  react-formik
  vue
creating react project...

~/work/my-new-cat-meme-app  master βœ”                                                                             2d
β–Ά git log --oneline
463d336 (HEAD -> master, starter/react) πŸ‘· add github actions workflow
0252d39 ✨ Hello, Redux
356f114 βž• add dependency on react-redux ^7.1.1
97b595f βž• add dependency on redux-starter-kit ^0.8.1
b45427b πŸ”₯ remove some create-react-app cruft
24984ae πŸ’„ add 'prettier' pre-commit hook
6aa15e6 🎨 run prettier on existing code
8d8c143 πŸ’„ add prettier
6670daf πŸ”§ disable lockfiles with .npmrc
020258f πŸ“ add contributing guide
ab270ad πŸ“ add blank github pull-request template
6a4cacf πŸ“ add blank github issue template
1d709c7 πŸ“ update README.md
cb11e0f πŸ”§ remove 'eject' npm run-script
86e58c9 πŸŽ‰ npx create-react-app .

Contributing

See the contributing guide

About

A CLI to make working with my z-starter project even easier


Languages

Language:JavaScript 89.3%Language:TypeScript 10.7%