a CLI tool for my z-starter
JS starter-template project
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
.
Intended for use as a global npm script.
npm install --global z-starter-cli
Right now, this should be run from a freshly git init
ted blank project.
~/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 .
See the contributing guide