Bootstrap a Project
Run the create
command to bootstrap your local and remote repos.
Interactive Setup (Default)
hats create my-cool-lib
Instant Setup
The -y
flag instructs HaTs to skip prompts and scaffold your project according to the HaTs configs on your machine.
hats create -y my-cool-lib
Usage Notes
Target Directory
Execute hats create
from the directory that you want to be the parent directory of your TypeScript project, e.g:
cd ~/programming/typescript-projectshats create my-cool-lib
The HaTs CLI scaffolds a new folder that contains your TypeScript project inside your current directory. It does not turn your current directory into the project (similar to the way that commands such as npm init
behave for instance).