tscaffold
v0.1.0
Published
TypeScript Project Scaffold
Readme
TS-Scaffold
An empty TypeScript repository with the basics
Installation
git clone https://github.com/seikho/ts-scaffold my-project
cd my-project
npm installConfigure
- Update the package.json, change the following properties:
namedescriptionscripts.test(optional)repository.urlkeywords(optional)authorbugs.urlhomepage- Update the git remote "origin"
git remote set origin [new location]- E.g.:
git remote set origin [email protected]:my-name/my-repo.git - or
git remote set origin https://github.com/my-name/my-repo.git - Remove or change this
readme.md!!
Type defintions
For adding type definitions, I have included tsd.json.
I recommend the tool tsd
Install it globally using npm install -g tsd. See the above link for instructions.
Building/Compiling
In VSCode: (As defined in .settings/tasks.json)Ctrl+Shift+B
On the command line:npm run build
Removing the commit history
The simplest way is to delete the .git/ folder and re-initialise the repository:
rm -rf .git/
git init
git add --all
git commit -m "Initial commit"
git remote add origin https://github.com/my-username/my-repo.git
git push origin masterNote well:
This project uses a module called ts-globber to populate tsconfig.json prior to compiling.
This will probably be made redundant in a future TypeScript version.
