<commit_before># New TypeScript project

The proper way to set up a TypeScript project with Eclipse. Or without.

## Clone

1. Create a new repo for your project, and clone it into your Eclipse workspace (maybe using [TortoiseGit](https://github.com/TortoiseGit/TortoiseGit)).
2. Clone: `https://github.com/andraaspar/new-typescript-project.git`.
3. Copy all except `.git` into your project’s folder.

## Set up Eclipse project

1. Install [Node.js](https://nodejs.org/), [grunt-cli](https://github.com/gruntjs/grunt-cli) (globally), [Bower](http://bower.io/) (globally).
2. In Eclipse, install [Palantir’s TypeScript plugin](https://github.com/palantir/eclipse-typescript).
3. Create a new `Static Web Project`, matching the name of the folder you cloned into, and set the `web content folder name` to `build`.
4. Do `Project > Right click > Configure > Enable TypeScript Builder`.
5. In `Project > Properties > TypeScript` set `Source folder(s)` to `lib;src;test`.

## Install NPM dependencies

### Install `npm-check-updates`

```
npm install npm-check-updates -g
```

### Update package versions to latest

```
npm-check-updates -u
```

### Install
<commit_msg>Improved README.<commit_after># New TypeScript project

The proper way to set up a TypeScript project with Eclipse. Or without.

## Install prerequisites

1. [Node.js](https://nodejs.org/)
2. [grunt-cli](https://github.com/gruntjs/grunt-cli) (globally)
3. [npm-check-updates](https://github.com/tjunnone/npm-check-updates) (globally)
4. [Bower](http://bower.io/) (globally)

## Clone

1. Create a new repo for your project, and clone it into your Eclipse workspace (maybe using [TortoiseGit](https://github.com/TortoiseGit/TortoiseGit)).
2. Clone: `https://github.com/andraaspar/new-typescript-project.git`.
3. Copy all except `.git` into your project’s folder.

## Set up Eclipse project

1. Install [Palantir’s TypeScript plugin](https://github.com/palantir/eclipse-typescript).
2. Create a new `Static Web Project`, matching the name of the folder you cloned into, and set the `web content folder name` to `build`.
3. Do `Project > Right click > Configure > Enable TypeScript Builder`.
4. In `Project > Properties > TypeScript` set `Source folder(s)` to `lib;src;test`.

## Install NPM dependencies

### Update package versions to latest

```
npm-check-updates -u
```

### Install

{'fraction_non_alphanumeric': 0.13963388676032354, 'fraction_numerical': 0.008088548318433376, 'mean_word_length': 4.402298850574713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 11, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1133089', 'n_tokens_mistral': 772, 'n_tokens_neox': 740, 'n_words': 253}