anchor.diff:      browsers: ['PhantomJS'],
       frameworks: ['jasmine', 'karma-typescript'],
       files: [
  -      { pattern: "src/**/*.ts" }
  +      'src/**/*.ts'
       ],
       preprocessors: {
         '**/*.ts': ['karma-typescript']
  
positive.code: }
  ----
  
  This allows you to run the TypeScript compiler from the command line via `npm run compile`. But do not execute it for now since we do not have created a configuration yet.
  
  === Configuring the TypeScript compiler
  
  The TypeScript compiler needs some information about where to look for source files and how the generated JavaScript code should look like. A very convenient way to configure the compiler is to put a `tsconfig.json` file directly in your project directory.
  
  . Create a file `tsconfig.json` in your project directory.
  . Open the file with the text editor and insert the following code:
  
  [source,json]
  
negative.code: 
  === Setting up the development environment
  
  TypeScript code cannot be executed in the browser directly. Before it can be used in a web page it must be compiled into pure JavaScript code. So we need to set up some kind of build process for the TypeScript compilation.
  
  The TypeScript compiler is available as a https://www.npmjs.com/[NPM] module and therefore it is obvious the create a NPM project and install the compiler as a development dependency. All we need to do is:
  
  . Install a recent version of https://nodejs.org/[Node.js]. I would recommend to use the LTS version because it is quite settled and should work with most of the libraries you may use in your project. The installation of Node.js also includes NPM, the package manager that we will be using for the build process and dependency management.
  . Create a new directory where we would like to store our project in.
  . Open a terminal in our project directory. Leave it open as we will have to execute various commands throughout this tutorial.
  . Run the command: `npm init`. This will prompt for some basic project information which can be changed at any time later on. Keep pressing ENTER if you are not sure what to do.
  
  Finally, we will have a file `package.json` in our project directory. This file is typical for all NPM projects and contains meta information about our project as well as the build scripts and a list of libraries that are required by the project.
  
  Throughout this tutorial you will have to edit quite a lot of text files containing different kinds of source code (JavaScript, JSON). Even though it is possible to do all that with a simple text editor I would recommend to install a more sophisticated source code editor. You can start with the free and yet powerful https://code.visualstudio.com/[Visual Studio Code] if you are not sure what to choose. It has fantastic TypeScript support out-of-the-box.
  
  === Installing the TypeScript compiler
  
  Once we have initialized our NPM project we can install the TypeScript compiler.
  
  . Go to the terminal in our project directory.
  . Run the command: `npm install typescript@2.1.6 --save-dev`.
  
  IMPORTANT: The restriction to TypeScript 2.1 is only necessary because there is a breaking change in TypeScript 2.2 which prevents the https://github.com/monounity/karma-typescript[karma-typescript] preprocessor from working. The author is already working on a new version, see issue https://github.com/monounity/karma-typescript/issues/92 - once this has been fixed we may also use the latest TypeScript version.
  
  You will notice a new directory `node_modules` in our project. It is managed by NPM and contains all the libraries that our project depends on. Do not add or remove anything within this directory on your own because it is all handled by NPM.
  
  TIP: You should exclude `node_modules` from your source code management. If you are using Git you should add a `.gitignore` file in your project directory which defines `/node_modules` as a resource to exclude.
  
  Since the compiler is installed locally to our project we have to create a NPM script to be able to run the compilation from the command line.
  
  . Open the file `package.json` with the text editor.
  . Add a new propery `compile` with the value `tsc` in the `scripts` object:
  