ts-starter
v0.5.0
Published
Initiate a TypeScript working folder.
Downloads
9
Maintainers
Readme
ts-starter
A command line tool for starting a TypeScript working folder
Installation
npm install -g ts-starter
Usage
Type tss new-folder-name
into the console
and a new folder with the name new-folder-name
will be the new working folder for TypeScript
What have been done
- create a new working folder with the name of
new-folder-name
- run the command of
git init
that makes the foler a git repository and create a.gitignore
file which ignores thenode_modules
and thedist
folder - run the command of
npm init -y
to creating thepackages.json
file - run the command of
tsc --init
with creating thetsconfig.json
file - edit the
tsconfig.json
file that change thetarget
toes2015
andoutDir
todist
of thecompilerOptions
and add theexclude
property with['node_modules']
- create a subfolder named
src
under the new working folder - create another subfolder named
dist
under the new working folder - run the command of
typings init
to createtypings.json
file - run the command of
typing install dt~node -SG
to install the typings for node - run the command of
tslint init
which creates atslint.json
file - get the
tslint.json
file from another Github repository