DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

5 2

How do you prefer to create a new project?

  • From scratch?
  • Bootstrapping?
  • Clone a Git or Git template? (I would recommend to add --depth=1 or use degit.)

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
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (7)

Collapse
 
andrewbaisden profile image
Andrew Baisden β€’

I prefer to do it from scratch as its much cleaner.

Collapse
 
souksyp profile image
Souk Syp. β€’

That's what I do. How do you do to stay focus from start to finish ?

Collapse
 
andrewbaisden profile image
Andrew Baisden β€’

I listen to music while I am programming.

Thread Thread
 
souksyp profile image
Souk Syp. β€’

And other ideas that popped up along the way?

Thread Thread
 
andrewbaisden profile image
Andrew Baisden β€’

Well yes music is stimulating it is not a distraction for me.

Collapse
 
pontakornth profile image
Pontakorn Paesaeng β€’

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.

Collapse
 
mzaini30 profile image
Zen β€’

I create npm package for my bootstrap project. So, I download my template with:

npm init svelte-zen
Enter fullscreen mode Exit fullscreen mode

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay