1.0.1 • Published 4 years ago
typescript-module-empty-template v1.0.1
typescript-module-empty-template
Bootstrap template for typescript module projects with a full CI/CD set.
(This template was created with another template: typescript-webpack-empty-template)
Purpose of this
This is mainly for myself but it may bring some usefulness to others that want to avoid the whole headache of setting up a typescript project with formatting, and linting tools. (Basically the full simplified CI/CD setup.)
I suggest using this in combination with np.
What is included
- typescript (of course)
- prettier
- eslint
- jest
- dead simple travis config
- example
index.tswith its corresponding.test.tsfile
npm run scripts
format- runs
prettier(a tool used to format your code)
- runs
lint- runs
eslint
- runs
jesttest- runs
jest. Be sure to include at least one.test.tsto prevent it from failing
- runs
build- deletes everything in
lib/*and runstsc - same thing as
buildbut uses thetsconfig.prod.jsonfile instead. Runstestbefore building
- deletes everything in
test- combination of
prettier --check,build,jesttest, andlint
- combination of
Where is everything (aka. how to get started)
src/index.tsis the module entry point
Parting words
Hope you find this to be a great time saver. Please open an issue if there's anything that is missing and essential to development.
1.0.1
4 years ago