TypeScript seed project. Use it to scaffold a TS project with all the tooling need to properly (opinated) set up a project.
- Clone from github
- Remove origin to seed project
- Change the license, metadata, etc. and start building.
git clone https://github.com/metadevpro/ts-project-seed <yourProjectName>
cd <yourProjectName>
git remote remove origin
npm (or yarn) installScripts provided:
Linting using tslint.
npm run lintClear the dist/ folder.
npm run cleanTranspile TS code to JS in dist/ folder. Maps included.
npm run buildContinous build:
npm run build:wConcat and minify all JS files in dist/ folder to one output (default dist/all.min.js).
npm run uglifyTests framework used are: mocha & chai.
TDD mode to run it concurrently with your editions:
npm run test:tddCI mode to run it only one:
npm testTesting with coverage:
nyc npm test
nyc report -r text lcov html
coverage/index.htmlTDD mode to run it concurrently with your editions:
npm run test:tddCI mode to run it only one:
npm run test/srcPlace your TS code under this folder. Test also following the naming convention*.spec.tsnext to file to be unit tested./distOutput folder for transpiled project output./coverageOutput folder for coverage reports.
ts-nodeNode tool to compile TS code on the fly.mochaTesting framework.chaiAssertion framework.rimrafSafe cross-platform rmdir for clean step.eslintJS/TS linter.prettierfor clean and consistent style-code.typescript, of course.
This project seed will be updated to keep the dependences up to date.
This project seed is licensed as Public Domain. Therefore, do whatever you want including changing the license for your needs in your project. More specifically, it was licensed as CC0 (Creative Commons 0) to further improve the freedom of a Public Domain Licence in context where it is not applicable.
Contact: Pedro J. Molina | github: pjmolina | twitter: pmolinam
(c) 2017-2023. Metadev S.L. https://metadev.pro twitter: metad3v