Gitリポジトリ名の配下にアプリ名作成しない方法

Git


Warning: Undefined array key 2 in /home/god48/god48.com/public_html/wp-content/themes/luxech/functions.php on line 99

Warning: Undefined array key 4 in /home/god48/god48.com/public_html/wp-content/themes/luxech/functions.php on line 104

Warning: Undefined array key 6 in /home/god48/god48.com/public_html/wp-content/themes/luxech/functions.php on line 109

Gitリポジトリの管理を行うのであれば、そのディレクトリをそのまま使えばcreate-app時にアプリ名(ディレクトリ)を作る必要がありません。
今回はそのGitのリポジトリ名を使って、アプリ名の省略を行います。

アプリ名をつける場合

通常通りにアプリ名つける場合は、@の後に指定することができます。

npx create-next-app@latest example-app --typescript

アプリ名を省略する場合

アプリ名を省略する場合は、「.」をアプリ名の代わりにして行えば省略されるので、リポジトリ配下にアプリ内の情報を格納することができます。

npx create-next-app@latest . --typescript

GitGit

Posted by kami