Learning TypeScript

Exploit the features of TypeScript to develop and maintain captivating web applications with ease

Learning TypeScript

This ebook is included in a Mapt subscription
Remo H. Jansen

1 customer reviews
Exploit the features of TypeScript to develop and maintain captivating web applications with ease
$0.00
$39.99
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781783985548
Paperback368 pages

Book Description

TypeScript is an open source and cross-platform typed superset of JavaScript that compiles to plain JavaScript that runs in any browser or any host. It allows developers to use the future versions of JavaScript (ECMAScript 6 and 7) today. TypeScript adds optional static types, classes, and modules to JavaScript, to enable great tooling and better structuring of large JavaScript applications.

This book is a step-by-step guide that will get you started with TypeScript with the help of practical examples. You start off by understanding the basics of TypeScript. Next, automation tools like Grunt are explained followed by a detailed description of function, generics, callbacks and promises. After this, object-oriented features and the memory management functionality of TypeScript are explained. At the end of this book, you will have learned enough to implement all the concepts and build a single page application from scratch.

Table of Contents

Chapter 1: Introducing TypeScript
The TypeScript architecture
TypeScript language features
Putting everything together
Summary
Chapter 2: Automating Your Development Workflow
A modern development workflow
Prerequisites
Source control tools
Package management tools
Task runners
Test runners
Synchronized cross-device testing
Continuous Integration tools
Scaffolding tools
Summary
Chapter 3: Working with Functions
Working with functions in TypeScript
Asynchronous programming in TypeScript
Summary
Chapter 4: Object-Oriented Programming with TypeScript
SOLID principles
Classes
Interfaces
Association, aggregation, and composition
Inheritance
Generic classes
Generic constraints
Applying the SOLID principles
Namespaces
Modules
Circular dependencies
Summary
Chapter 5: Runtime
The environment
The runtime
The this operator
Prototypes
Closures
Summary
Chapter 6: Application Performance
Prerequisites
Performance and resources
Performance metrics
Performance analysis
Performance automation
Exception handling
Summary
Chapter 7: Application Testing
Software testing glossary
Prerequisites
Testing planning and methodologies
Setting up a test infrastructure
Creating test assertions, specs, and suites with Mocha and Chai
Test spies and stubs with Sinon.JS
Creating end-to-end tests with Nightwatch.js
Generating test coverage reports
Summary
Chapter 8: Decorators
Prerequisites
Annotations and decorators
Summary
Chapter 9: Application Architecture
The single-page application architecture
The MV* architecture
Common components and features in the MV* frameworks
Choosing an application framework
Writing an MVC framework from scratch
Summary
Chapter 10: Putting Everything Together
Prerequisites
The application's requirements
The application's data
The application's architecture
The application's file structure
Configuring the automated build
The application's layout
Implementing the root component
Implementing the market controller
Implementing the NASDAQ model
Implementing the NYSE model
Implementing the market view
Implementing the market template
Implementing the symbol controller
Implementing the symbol view
Implementing the chart model
Implementing the chart view
Testing the application
Preparing the application for a production release
Summary

What You Will Learn

  • Learn the key TypeScript language features and language runtime
  • Develop modular, scalable, maintainable, and adaptable web applications
  • Create object-oriented code that adheres to the solid principles
  • Save time using automation tools like Gulp and Karma
  • Develop robust applications with testing (Mocha, Chai and SinonJS)
  • Put your TypeScript skills in practice by developing a single-page web application framework from scratch
  • Use the JavaScript of tomorrow (ES6 and ES7) today with TypeScript

Authors

Table of Contents

Chapter 1: Introducing TypeScript
The TypeScript architecture
TypeScript language features
Putting everything together
Summary
Chapter 2: Automating Your Development Workflow
A modern development workflow
Prerequisites
Source control tools
Package management tools
Task runners
Test runners
Synchronized cross-device testing
Continuous Integration tools
Scaffolding tools
Summary
Chapter 3: Working with Functions
Working with functions in TypeScript
Asynchronous programming in TypeScript
Summary
Chapter 4: Object-Oriented Programming with TypeScript
SOLID principles
Classes
Interfaces
Association, aggregation, and composition
Inheritance
Generic classes
Generic constraints
Applying the SOLID principles
Namespaces
Modules
Circular dependencies
Summary
Chapter 5: Runtime
The environment
The runtime
The this operator
Prototypes
Closures
Summary
Chapter 6: Application Performance
Prerequisites
Performance and resources
Performance metrics
Performance analysis
Performance automation
Exception handling
Summary
Chapter 7: Application Testing
Software testing glossary
Prerequisites
Testing planning and methodologies
Setting up a test infrastructure
Creating test assertions, specs, and suites with Mocha and Chai
Test spies and stubs with Sinon.JS
Creating end-to-end tests with Nightwatch.js
Generating test coverage reports
Summary
Chapter 8: Decorators
Prerequisites
Annotations and decorators
Summary
Chapter 9: Application Architecture
The single-page application architecture
The MV* architecture
Common components and features in the MV* frameworks
Choosing an application framework
Writing an MVC framework from scratch
Summary
Chapter 10: Putting Everything Together
Prerequisites
The application's requirements
The application's data
The application's architecture
The application's file structure
Configuring the automated build
The application's layout
Implementing the root component
Implementing the market controller
Implementing the NASDAQ model
Implementing the NYSE model
Implementing the market view
Implementing the market template
Implementing the symbol controller
Implementing the symbol view
Implementing the chart model
Implementing the chart view
Testing the application
Preparing the application for a production release
Summary

Book Details

ISBN 139781783985548
Paperback368 pages
Read More
From 1 reviews

Read More Reviews