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 inpackage.json( if want to publish on npm checks availability withnpm view PKGNAME) - to publish locally use provided script
local-publishthen from another prj install usingyalc add PKGNAME - to publish on public repository
- tune variables ( only for the first time )
- in
package.jsonset"private":false,version,authorandlicense - replace
README.mdwith your own
- in
- run
prepatch-and-publish( for bugfixes ) orminor-and-publish( for new features )
- tune variables ( only for the first time )
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