A simple node.js project starter for typescript using babel, jest and ts-jest.
Simply download, run npm i
and start adding code in ./src
.
Alternatively, do a shallow clone and remove .git
:
git clone --depth=1 --branch=master git@github.com:lucascaro/ts-node-starter.git your-project-name
cd your-project-name
rm -rf .git
npm i
Or use degit:
npx degit lucascaro/ts-node-starter your-project-name
cd your-project-name
npm i
npm run build
Compiles the project using babel. Javascript files will be in ./dist
.
npm run watch
Listens and recompiles the project on src changes.
npm start
Runs the main script.
npm link
ts-node-starter-cli
Creates a symlink so you can run the project as a cli tool. Change the default binary name in package.json
.
Tests are in src
inside ./__tests__/
directories.
npm test
Runs all unit tests.