Skip to content

kushwahashiv/node-ts-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ts-module

Seed create a npm module/library in Node.js, TypeScript

Getting starting

git clone git@github.com:kushwahashiv/node-ts-module.git {my-folder}
cd {my-folder}
rm -rf .git
git init
npm install

npm test -- -w

# Enjoy!

Files to update

  • package.json (name, author, repository ...)
  • Readme.md

npm scripts available

  • build: compiles the app into lib folder
  • lint: runs tslint for src and tests folders
  • test: runs mocha test without any compilation needed (uses ts-node)
  • tsc: proxy to the locally installed typescript package

tsconfig Files

  • tsconfig.json: configuration file for build

Running test

# optional pass a reporter or any other mocha options.
npm test -- --reporter list

Resources

License

MIT

About

create your own node module and publish

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published