From 2e79b97a5862746552f5449085b3924e30d882d7 Mon Sep 17 00:00:00 2001 From: Eugene Sokolov Date: Thu, 6 Feb 2020 20:57:07 +0300 Subject: docs: add building and deploying info --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index f6e1f8f..f26984e 100644 --- a/README.md +++ b/README.md @@ -42,3 +42,12 @@ $ npm test ``` **NOTE**: this command assures that `ESlint` does not throw any warnings and exits with a *non-zero status code* otherwise. That means `CircleCI` tests would fail *even if a single warning is present*. Therefore, you should always locally test your changes before publishing them. +## Building +We've decided to use `Typescript compiler` to transpile our code, since we think `Babel` is a bit of an overkill here. +```bash +$ npm run build +``` +This command will generate `dist/` folder ready for distribution, which you of course can explore. Note that `tsc` creates type definitions (`.d.ts`) for every corresponding `.js` file. It's very useful because consumers also get access to them. + +## Deploying +Deploying to `npm` is fully automated through **CircleCI**: simply tag a commit as a Release and it will do the job. -- cgit v1.2.3