devel0 / skeleton-ts

skeleton for typescript debuggable

Repository from Github https://github.comdevel0/skeleton-tsRepository from Github https://github.comdevel0/skeleton-ts

skeleton-ts

skeleton for typescript library + vscode debuggable example

quickstart

git clone https://github.com/devel0/skeleton-ts.git YOURDIR
cd YOURDIR
yarn install
code .
  • hit F5 to start

publishing library

  • choose package name changing "name" variable in package.json ( if want to publish on npm checks availability with npm view PKGNAME )
  • to publish locally use provided script local-publish then from another prj install using yalc add PKGNAME
  • to publish on public repository
    • tune variables ( only for the first time )
      • in package.json set "private":false, version, author and license
      • replace README.md with your own
    • run prepatch-and-publish ( for bugfixes ) or minor-and-publish ( for new features )

testing

  • manually test yarn test
  • automatically test when code changes through jest vscode extension code --install-extension orta.vscode-jest ( see in the toolbar lower left )
  • show coverage gutters on source files code --install-extension ryanluker.vscode-coverage-gutters ( click on watch )
  • to debug test from vscode CTRL+SHIFT+D and select "Debug Jest Tests" from DEBUG AND RUN select

About

skeleton for typescript debuggable

License:MIT License


Languages

Language:TypeScript 41.5%Language:Shell 35.6%Language:JavaScript 22.9%