loading...

Why is `cli init folder && cd folder && git init` the norm?

patarapolw profile image Pacharapol Withayasakpunt ・1 min read

Also, most cloud providers, e.g. Netlify and Vercel, expect package.json to be at the root folder.

How do I migrate, for example, from Nuxt to Hugo?

My usual solution? I generally structure like a monorepo.

.gitignore # for macOS specific ignores
README.md
packages/
  web/
Enter fullscreen mode Exit fullscreen mode

So that I can add packages/backend/, if required.

Discussion

pic
Editor guide
 

To anti the norm, you can always do this,

$ alias pokemon='cli init folder && cd folder && git init'
Enter fullscreen mode Exit fullscreen mode

And use it as,

$ pokemon
Enter fullscreen mode Exit fullscreen mode

I am replying this comment to the post title, not to the post content. Sorry, I am annoying and bored.