Coder Social home page Coder Social logo

tcr-ts's Introduction

TCR (Test && Commit || Revert) utility for TypeScript

Before we start, all the credits goes to Murex. This utility is based on their implementation. I'd like to thank them for their incredible work. Feel free to check theirs repos and I'd recommend you attend one of their workshops.

All I did was focusing on the TypeScript language and make it easy to be integrated in a solution.

So I won't be explaining how the utility works as I didn't modify the internals. If you'd like to know how to use it, feel free to check their documentation. I will focused on what makes this one specific and how to integrate it in a solution.

Licence

Here's the licence file, from Murex.

Toolchain selection

The script can support multiple toolchains. I mainly focused on being compatible with main test frameworks.

Toolchain Default
npm โœ“
yarn

You do not have to install anything in order to use them. They are just triggering the build and test scripts from within your package.json file.

In order to select a specific toolchain, you will have to use the toolchain option -t with the name of the toolchain. For example, running the utility using the default toolchain (npm) requires this command: ./tcrw, while using a specific toolchain (yarn) requires this one: ./tcrw -t yarn.

Integration

This is the easy part!

Please keep in mind you have to follow a strict folder structure.

Knowing that, just copy both tcr folder and watcher script at the root of your solution, at the same level than both src and tests folders.

This is it. Then run the script and have fun!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.