Utility to bootstrap TypeScript projects.
- clone this repo to somewhere useful -
git clone [email protected]:harrim91/ts-init.git ~/.ts-init
- create a symbolic link between the script and somewhere in your PATH -
ln -s ~/.ts-init/init.sh /usr/local/bin/ts-init
- create a typescript project -
ts-init --name my-project
ts-init
takes the following options:
--name
- the name of your project. required.--use-git
-true
orfalse
- whether to initialize a git repository in your project. default istrue
.--git-email
- ifts-init
creates a git repository for you in your new project, by default it will use your global git email. You can override it with this option.--package-manager
- package manager to use -yarn
ornpm
. default isnpm
.--template
- use a template. Default value isstandard
. Other options areexpress
.
- remove the symbolic link between the script and somewhere in your PATH -
unlink /usr/local/bin/ts-init
- remove the directory from somewhere useful
rm -rf ~/.ts-init
A blank "Hello World" template.
Bootstraps a minimal Express.js app. Includes a production-ready Dockerfile, and local setup utilizing Docker Compose.