OctoD / typescript-module-template

A typescript node.js library template

Home Page:https://github.com/OctoD/typescript-node-lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typescript library template

Your library description

πŸŽ‰ Features

Add your library features here.

πŸ“¦ This template already has (out of the box):

  • preconfigured rollup build (for amd, umd, esnext and commonjs)
  • preconfigured jest (with ts-jest) for testing your library
  • preconfigured benchmarks with benchmark.js
  • azure dev-ops configuration
  • travis-ci configuration, just add your repo to travis and you have done
  • codecov setup
  • tsconfig.json configurated for node.js libraries
  • eslint/prettier you have eslint/prettier preconfigured, your code will be linted at commit time automatically
  • github issue templates, they are already there, just configure them
  • contributing guidelines and code of conduct are already setupped
  • size-limit script, for checking the weight of your library
  • automatic docs generation with typedoc
  • automatic changelog generation with standard-changelog

βš™ Install

# npm
npm i mylib

# yarn
yarn add mylib

πŸ“– Docs

You can read docs here, just remember to run your npm run docs script.

πŸ” Usage

Put my library usage guide here

Predefined scripts:

  • benchmarks: runs all your benchmarks
  • changelog: creates a changelog (using standard-changelog)
  • docs: creates docs from your jsdocs
  • lint: lints your code
  • prepublishOnly: builds your sources for deployment (to npm)
  • size-limit: checks your bundle size limit
  • test: run tests
  • upgrade-interactive: updgrades your dependencies interactively (like with yarn)

️❀️ Contributing

Every contribution is really welcome!

If you feel that something can be improved or should be fixed, feel free to open an issue with the feature or the bug found.

If you want to fork and open a pull request (adding features or fixes), feel free to do it. Remember only to use the dev branch as a base.

Read the contributing guidelines

πŸ“ƒ Licence

Read the licence

About

A typescript node.js library template

https://github.com/OctoD/typescript-node-lib

License:MIT License


Languages

Language:JavaScript 62.1%Language:TypeScript 37.9%