1.0.10 • Published 4 years ago

@nestagencyuk/typescript_lib-backend v1.0.10

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

TypeScript Backend Library

Release codecov

This repository contains Nest's backend TypeScript library. This will hold any useful code snippets for re-use across all internal projects.

Requirements:

Contribution:

Develop

Bundles everything using webpack, starts the dev server and watches for changes.

$ npm run dev

Scaffold

You can quickly scaffold a new function by running:

$ NAME=MyNewFunction npm run scaffold

This will create a new function folder with all the required files and some example variants. This is the best way of ensuring a new function complies with our coding standards and naming conventions.

Build

Bundles everything using webpack.

$ npm run build

Testing

Run all tests:

$ npm run test

Run individual tests:

CommandDescription
$ npm run test:unitRun component unit tests
$ npm run test:coverageRun coverage tests and send coverage report

Release

To create a new release:

  • First ensure that you're on the develop branch and all pull requests and branches have been pulled and merged in (incl. master as the version may have been bumped).
  • Using Git Flow*, run git flow release start vX.X.X, replacing the X.X.X with the appropriate new version number, incremented by one. Follow semvar practices, e.g vX.0.0 denotes a major version, v0.X.0 is a minor version and v0.0.X is a patch. See the package.json for the most recent version number.
  • Carry out any last minute work on the release branch and commit as normal.
  • When finished, run git flow release finish vX.X.X and add any relevant commit messages. You must add a tag message otherwise the release will fail.
  • The release branch should now be merged into both develop and master. Now you just need to run npm run deploy and you're done! The CI pipeline will handle the rest.

*Using Git Flow ensures the tagging is handled correctly. Creating a release branch manually won't work.

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago