<commit_before># vue-typescript-webpack Example

> Typescript & Webpack 2 Example

Based on the the [Jayway's Vue.js 2.0 workshop](https://jayway.github.io/vue-js-workshop/), this project upgrades it to contain
  * Production ready
  * Webpack 2
  * Hot reloading
  * vue-loader for .vue files
  * Typescript 2.0
  * Typescripting linting
  * Unit testing with mocha for Vue components and other files
  * Code coverage in Vue and TypeScript files

# Usage
## vue-cli
This is a project template for [vue-cli](https://github.com/vuejs/vue-cli). It can be downloaded using:
```bash
vue init CaptainAchilles/vue-typescript-webpack newproject

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

## Manual clone 
After cloning this repository, you can get started with:

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

# Commands

* `npm run install`: Installs project dependencies
* `npm run dev`: Development build
  * Webpack files
  * Launches site on localhost:8080
  * State preserving Hot reload
  * Source maps
  * Compiles typescript

* `npm run build`: Production build
  * Webpack files
  * Bundles project into ./dist 
  * Ready for deployment

* `npm run lint`: Runs linter
  * Linter also runs on build/dev
  * Lints all ts and ts components in Vue files

* `npm run unit`: Run Tests
  * Runs all *.spec in test/unit/*.spec
  * Generates code coverage for all ./src/components

# Code Linting within Editors

## VSCode
VSCode should automatically lint and display typescript errors in the editor.

## Vim
Vim can use the plugins [syntastic](https://github.com/vim-syntastic/syntastic) 
and [vim-vue](https://github.com/posva/vim-vue) with the 
following NPM packages

``` bash
npm install -g typescript typescript-eslint-parser eslint-config-google eslint
```

# License
See the license file in the root of the repository
<commit_msg>Updated readme to reflect new Typescript testings<commit_after># vue-typescript-webpack Example

> Typescript & Webpack 2 Example

Based on the the [Jayway's Vue.js 2.0 workshop](https://jayway.github.io/vue-js-workshop/), this project upgrades it to contain
  * Production ready
  * Webpack 2
  * Hot reloading
  * vue-loader for .vue files
  * Typescript 2.0
  * Typescripting linting inside of Vue files
  * Unit testing with in Typescript for Vue components and other files
  * Code coverage in Vue and TypeScript files

# Usage
## vue-cli
This is a project template for [vue-cli](https://github.com/vuejs/vue-cli). It can be downloaded using:
```bash
vue init CaptainAchilles/vue-typescript-webpack newproject

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

## Manual clone 
After cloning this repository, you can get started with:

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

# Commands

* `npm run install`: Installs project dependencies
* `npm run dev`: Development build
  * Webpack files
  * Launches site on localhost:8080
  * State preserving Hot reload
  * Source maps
  * Compiles typescript

* `npm run build`: Production build
  * Webpack files
  * Bundles project into ./dist 
  * Ready for deployment

* `npm run lint`: Runs linter
  * Linter also runs on build/dev
  * Lints all ts and ts components in Vue files
  * Also runs linter over test files

* `npm run unit`: Run Tests
  * Runs all `*.spec.ts` in `test/unit/*.spec.ts`
  * Generates code coverage for all `./src/components` in `./test/unit/coverage/html`

# Code Linting within Editors

## VSCode
VSCode should automatically lint and display typescript errors in the editor.

## Vim
Vim can use the plugins [syntastic](https://github.com/vim-syntastic/syntastic) 
and [vim-vue](https://github.com/posva/vim-vue) with the 
following NPM packages

``` bash
npm install -g typescript typescript-eslint-parser eslint-config-google eslint
```

# License
See the license file in the root of the repository

{'fraction_non_alphanumeric': 0.08274565115185707, 'fraction_numerical': 0.00846262341325811, 'mean_word_length': 3.947674418604651, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1805802', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1259, 'n_words': 517}