Skip to content

Initializing a TypeScript project is still a P.I.T.A in 2021, so here's a mind-numbingly simple bash script to initialize a bare TypeScript project with nodemon, eslint, Jest and Prettier

Notifications You must be signed in to change notification settings

kyleamazza/tsinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

tsinit

The year is 2021. Creating a TypeScript project with sensible default development tools is still a P.I.T.A. So, here's a mind-numbingly simplistic bash script to initialize a bare TypeScript project with eslint, Prettier, nodemon and Jest.

Don't like one of them? Just replace the install with the package(s) that you like, then change the cat <<EOF> ... portion of the corresponding configuration file to the default configuration of your choosing. It's just a bash script.

Prerequisites

This assumes you have Yarn 1.x. If you like npm, go ahead, change the script to use npm; your computer won't explode. If you like Yarn 2.x... bless your soul. npm comes bundled with your Node.js installation, Yarn can be downloaded via npm npm i -g yarn.

Installation...?

Just clone this project somewhere comfortable.

git clone https://github.com/kyleamazza/tsinit.git

SSH for cool people

git clone [email protected]:kyleamazza/tsinit.git

Add this script somewhere in your PATH and make it executable with sudo chmod +x /path/to/tsinit.

Usage

tsinit <your-project-name>

Run this in the directory below which you want your project to be made (this creates a new folder with <your-project-name> in that directory)

No options, no flags, no extra arguments, no help messages. All it does is run Yarn/npm to install a bunch of dev dependencies, and then copy some text into configuration files. Everything is @latest.

About

Initializing a TypeScript project is still a P.I.T.A in 2021, so here's a mind-numbingly simple bash script to initialize a bare TypeScript project with nodemon, eslint, Jest and Prettier

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages