---
title: "Discussion on \"Setting up a vanilla Typescript project the right way\" | Hashnode"
description: "Discussion on \"Setting up a vanilla Typescript project the right way\". solution to an undiscovered problem"
url: "https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Setting up a vanilla Typescript project the right way](https://tsegsxaviers.hashnode.dev/setting-up-a-vanilla-typescript-project-the-right-way?utm_source=hashnode&utm_medium=feed)

solution to an undiscovered problem

Aug 23, 2021 · 8 min read · tsegsxaviers.hashnode.dev  
Updated Aug 26, 2021  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#programming-languages](https://hashnode.com/tag/programming-languages)
-   [#setup](https://hashnode.com/tag/setup)
-   [#programming](https://hashnode.com/tag/programming)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Joseph Tsegen](https://hashnode.com/@xavier577)

@xavier577 · Lagos, Nigeria

  
[View profile](https://hashnode.com/@xavier577)

I read, I code, I blog

Tech enthusiast | Full Stack Developer | Software Engineer. Learning about web development and general programming. Looking to learning new things and meeting new people.

## Responses 11

Markdown supported · ⌘↵ to post

[heesong](https://hashnode.com/@pinea)

[Oct 25, 2023](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6538a723b0f75b67cacf1ed2)

I love it!

[Shansa Akbar](https://hashnode.com/@ShansaAkbar)

[Nov 7, 2022](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/636975e888bdfdd38cba7271)

On which port we can run this alert and code as 4200 and 3000 is not working for this.

[Carlos Rodriguez](https://hashnode.com/@carlitorweb)

[Aug 30, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/612ced852858872661b9df98)

I one of that guy who is using typescript outside of the React or others common environment.

Your article save me. After a couple of days trying to make Gulp do exactly this, I arrive to here to find out Webpack is what I needed. The problem of Gulp was , even with the same tsconfig you have here, he compile the import statement into a "define" in the final .js bundle file. Then, the browser start to complaint because do not know what is "define".

Anyway, this simple Webpack work like charm in the first run. Thank you for sharing it!

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 31, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/612ced852858872661b9df98#reply-612e058d4e9d8114f8ade05a)

Thanks for the feedback I am glad my article was helpful.

[Benjamin James](https://hashnode.com/@shapater)

[Aug 28, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/612a1fd7fd0bf8636d76b92f)

Hellow Im Here To Promote My Site Plz Visit My Site Ejoy Thanks [Dollar Leather Jackets](https://dollarjackets.com/)

[Benjamin James](https://hashnode.com/@shapater)

[Aug 28, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/612a1f9c2858872661b9944a)

Hellow Frieends Plz Give Me Your Positive Response On My Website And I Hope Visit And Enjoy Our Website [mba dissertation writing](https://www.academicinside.co.uk/expertise/dissertation-help/mba-dissertations/)

[Benjamin James](https://hashnode.com/@shapater)

[Aug 28, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/612a1f502858872661b99439)

I found a webiste that virtually contains everything i nnedded. I was browsing on my computer one day and i came to about a website called sheepskinplanet I was curious about what they got to offer so i started exploring their products and to my surprise i found authentic rugs made up of pure Australian sheep skin. They caught my eye in an instance and i ordred up a stack of pelts for my home and my office. Now i am so delighted with their product that i couldn't stop myself from praising their quality and products. I am happy and satisfied customer and i would suggest you to follow in my foot prints and order up. I will leave you with the link. [Medical Sheepskin](https://sheepskinplanet.com/)

[Nasira Raesha](https://hashnode.com/@nasiraraesha)

[Aug 25, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/61258beb663d427e19ffb45c)

This article really helped me in studying

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 25, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/61258beb663d427e19ffb45c#reply-61260c3cb115357df05f59b6)

wow I am glad I could help 🤗

[Vijay Thirugnanam](https://hashnode.com/@vijayst)

[Aug 24, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6124cecf663d427e19ffa0f4)

I created a boilerplate for [TypeScript with rollup](https://vijayt.com/post/boilerplate-for-publishing-components-with-a-storybook/). It has some additional features like unit testing, storybook, etc.

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 24, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6124cecf663d427e19ffa0f4#reply-612500e5b115357df05f40c1)

thanks for your response I'll check this out

[Arbaaz](https://hashnode.com/@arbaazio)

[Aug 24, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6124b013663d427e19ff9a23)

Try [tsdx](https://tsdx.io/)

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 24, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6124b013663d427e19ff9a23#reply-612500b1663d427e19ffa6bf)

wow thanks I had no idea this was a thing

[Joshua](https://hashnode.com/@joshua-akinleye)

[Aug 23, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6123bafe663d427e19ff8537)

WOW!!!! awesome blog, typescript master, you really good at setting up such project

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 23, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/6123bafe663d427e19ff8537#reply-61240e99b115357df05f2974)

Thanks very much bro, I am still far from being a typescript master thou 😅 but I get there to some degree of course.

[Eslam Ahmed](https://hashnode.com/@Eslam-Ahmed)

[Aug 23, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/61238206b115357df05f184d)

**That's Great article** 👏👏

I have already bookmarked it for my next project and shred it to Twitter. One thing I was curious about while I was reading, some options in tscofig.json was new to me.

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 23, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/61238206b115357df05f184d#reply-61239515663d427e19ff7fc3)

Thank you very much for your feedback. instead of creating the tsconfig.json manually you can generate it with `tsc --init` in the src directory and then edit the part you need. it will contain comments which will explain what each option does.

[Joseph Tsegen](https://hashnode.com/@xavier577)

[Aug 23, 2021](https://hashnode.com/posts/setting-up-a-vanilla-typescript-project-the-right-way/6122f543a5d08237f40e2ce8/comment/61238206b115357df05f184d#reply-6123958f663d427e19ff7ff6)

I am curious do you think devs actually use typescript in this manner with plain html and css?
