Book Image

Mastering TypeScript

By : Nathan Rozentals
Book Image

Mastering TypeScript

By: Nathan Rozentals

Overview of this book

<p>The TypeScript compiler and language has brought JavaScript development up to the enterprise level, yet still maintains backward compatibility with existing JavaScript browsers and libraries.</p> <p>Packed with practical code samples, this book brings the benefits of strongly typed, object-oriented programming and design principles into the JavaScript development space. Starting with core language features, and working through more advanced topics such as generics and modules, you will learn how to gain maximum benefit from your JavaScript development with TypeScript. With a strong focus on test-driven development and coverage of many popular JavaScript frameworks, you can fast-track your TypeScript knowledge to a professional level. By the end of this book, you will be able to confidently implement a TypeScript application from scratch.</p>
Table of Contents (17 chapters)
Mastering TypeScript
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
TypeScript – Tools and Framework Options
2
Types, Variables and Function Techniques
Index

Using continuous integration


When writing unit tests for any application, it quickly becomes important to set up a build server and run your tests as part of each source control check in. When your development team grows beyond a single developer, using a Continuous Integration (CI) build server becomes imperative. This build server will ensure that any code committed to the source control server passes all known unit tests, integration tests, and automated acceptance tests. The build server is also responsible for labeling a build and generating any deployment artifacts that need to be used during deployment.

The basic steps of a build server would be as follows:

  • Check out the latest version of the source code, and increase the build number

  • Compile the application on the build server

  • Run any server-side unit tests

  • Package the application for deployment

  • Deploy the package to a build environment

  • Run any server-side integration tests

  • Run any JavaScript unit, integration, and acceptance tests

  • Mark...