- From scratch?
- Bootstrapping?
- Clone a Git or Git template? (I would recommend to add
--depth=1
or usedegit
.)
If you choose "from scratch", what do you often do first thing first? What about other options?
From scratch
Actually, I often do from scratch, by
yarn init -y
yarn add typescript prettier -D
yarn tsc init
Then, check most of the eslint
'ty options in tsconfig.json
, as well as experimentalDecorators
.
Yeah, it's the very benefit of TypeScript for me, actually.
Creating .prettierrc
is even optional for me.
I also used to do npx eslint --init
, but that will also need syzer -u
.
Bootstrapping
yarn create nuxt-app $NAME
cd $NAME
npx syzer -u
yarn
Then check for broken dependencies.
I think syzer
(maybe also npm-check-updates
) is a very good package. Keeping updated will help fix security problems.
Top comments (7)
I prefer to do it from scratch as its much cleaner.
That's what I do. How do you do to stay focus from start to finish ?
I listen to music while I am programming.
And other ideas that popped up along the way?
Well yes music is stimulating it is not a distraction for me.
I usually use
yarn create
or dedicated CLI. I believe that creating project should take less time so I can focus on the project, not the configuration.I use Vite, Vue CLI, create-react-app, preact-cli to create projects.
I create npm package for my bootstrap project. So, I download my template with: