Yet another TypeScript starter.
- TypeScript compilation.
- TSLint configuration.
- Jasmine tests in
*.spec.ts
files. - Remapped code coverge.
- Travic CI configuration.
- Clone this repo.
- Copy the files to your project.
- Run
yarn --pure-lockfile
to install dependencies. - Replace
typescript-boilerplate
with your project name in all files (and rename files). - Add your code and write tests.
- Ship it! (
npm publish
)
yarn run lint [--fix]
: run tslint and optionally apply an autofixesyarn run build
: clean, lint, build, and testyarn run build --watch
: clean, build and watchyarn run build [--no-clean] [--no-lint] [--no-test]
: build skipping the given stepsyarn run test
: run unit and e2e testsyarn run test --unit
: run unit testsyarn run test --e2e
: run e2e tests
First, run git remote add boilerplate https://github.com/kevinbuhmann/typescript-boilerplate.git
.
You only need to do this once.
Now you can cherry-pick commits from this repo to your project.
- Run
git fetch boilerplate
to fetch boilerplate commits. - Run
git cherry-pick SHA --no-commit
. - Fix any conflicts and run your build and tests.
- Run
git commit
and update the commit message. Addkevinbuhmann/typescript-boilerplate@SHA
to the commit message.
You can run git log --grep "kevinbuhmann/typescript-boilerplate"
to keep track of which commits
from this project you have integrated into your project.