This is a very simple demo. It just shows importing isomorphic-git and using it to print the list of branches on a repo.
git clone https://github.com/isomorphic-git/examples
cd typescript-node
npm install
npm run build
npm startObviously you can copy and paste this as a starter, but it was pretty straightforward to create:
mkdir typescript-node
cd typescript-node
npm init -y
npm install -D typescript @types/node
npm install isomorphic-git
./node_modules/.bin/tsc --initThen I...
- changed the
compilerOptions.outDirproperty and added anincludeproperty totsconfig.json - added the
buildandstartscripts topackage.json - wrote
src/index.ts