@nextrobot/template-lerna-typescript-package
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

TODO: Substitute this readme file content to your package description

Lerna Typescript Package Template

author: Flavio

This template is used to create new lerna package pre-configured with typescript and other things.

How to install

  • open terminal
  • change dir to your packages/ directory inside your lerna project
  • copy the template from github repository at address bellow:

https://github.com/fvilante/NextRobot/tree/develop/packages/template-lerna-typescript-package

  • don't forget to overwrite this readme file with your package info.

What is pre-configured

  • typescript (full and strict static checking)
  • gitignore (for ignore vscode, lerna, etc)
  • jest
  • initial sample src/index.ts and its corresponding test file

How to set-up your package

  1. Define name and version for your package's package.json. Example:
  "name": "@nextbot/template-lerna-typescript-package",
  "version": "0.0.3-alpha.0",

Note: Don't forget to put the npm organization name, in this case @nextbot

  1. Put your source code into /src directory, and your tests into /src/__test__

Notes:

Source files: You can create sub-directories in /src.

TestFiles: Put all your tests files in a sub-folder (relative to the file which is in test). Name de test sub-folder as __test__

See template /src and /src/test folder for an example of this.

Readme

Keywords

none

Package Sidebar

Install

npm i @nextrobot/template-lerna-typescript-package

Weekly Downloads

1

Version

0.0.9

License

ISC

Unpacked Size

3.38 kB

Total Files

8

Last publish

Collaborators

  • fvilante