Last active
November 2, 2021 14:59
-
-
Save imCorfitz/4b49dd497d55dcf93373d313bb963db7 to your computer and use it in GitHub Desktop.
Create a custom create-next-project function to facilitate creating next.js apps using https://github.com/jpedroschmitz/typescript-nextjs-starter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $HOME/.functions | |
function create-next-project() { | |
NAME=${1:-too-lazy-to-come-up-with-a-project-name} | |
npx create-next-app $NAME -e https://github.com/jpedroschmitz/typescript-nextjs-starter | |
} | |
# In order to have these functions available in your terminal at all times | |
# make sure to add following command to your .bashrc or .zshrc file: | |
# source $HOME/.functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment