<commit_before># buildfrontend-maven-plugin

[![Build Status](https://travis-ci.org/sdorra/buildfrontend-maven-plugin.svg?branch=master)](https://travis-ci.org/sdorra/buildfrontend-maven-plugin)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.sdorra/buildfrontend-maven-plugin.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22buildfrontend-maven-plugin%22)
[![Quality Gates](https://sonarcloud.io/api/badges/gate?key=com.github.sdorra%3Abuildfrontend-maven-plugin)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Abuildfrontend-maven-plugin)
[![Coverage](https://sonarcloud.io/api/badges/measure?key=com.github.sdorra%3Abuildfrontend-maven-plugin&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Abuildfrontend-maven-plugin)

Installs and run [node](http://nodejs.org/), [npm](https://www.npmjs.org) or [yarn](https://yarnpkg.com) as part of your 
[maven](http://maven.apache.org/) build. The buildfrontend-maven-plugin will do the following steps for you:

* download the specified tools
* installs them to your local maven repository
* extract the archives from the local maven repository
* invoke the tools with the configured parameters

## Demo

A demo project can be found [here](https://github.com/sdorra/buildfrontend-maven-plugin/tree/master/src/it).

## Usage

```xml
<build>
  <plugins>
    
    <plugin>
      <groupId>com.github.sdorra</groupId>
      <artifactId>buildfrontend-maven-plugin</artifactId>
      <version>2.0.0-SNAPSHOT</version>
      <configuration>
        <node>
          <version>v8.9.4</version>
        </node>
        <pkgManager><commit_msg>added badge for appveyor build status<commit_after># buildfrontend-maven-plugin

[![Build Status](https://travis-ci.org/sdorra/buildfrontend-maven-plugin.svg?branch=master)](https://travis-ci.org/sdorra/buildfrontend-maven-plugin)
[![Build status](https://ci.appveyor.com/api/projects/status/lqpabvst2vwybtg8?svg=true)](https://ci.appveyor.com/project/sdorra/buildfrontend-maven-plugin)
[![Maven Central](https://img.shields.io/maven-central/v/com.github.sdorra/buildfrontend-maven-plugin.svg)](http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22buildfrontend-maven-plugin%22)
[![Quality Gates](https://sonarcloud.io/api/badges/gate?key=com.github.sdorra%3Abuildfrontend-maven-plugin)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Abuildfrontend-maven-plugin)
[![Coverage](https://sonarcloud.io/api/badges/measure?key=com.github.sdorra%3Abuildfrontend-maven-plugin&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.sdorra%3Abuildfrontend-maven-plugin)

Installs and run [node](http://nodejs.org/), [npm](https://www.npmjs.org) or [yarn](https://yarnpkg.com) as part of your 
[maven](http://maven.apache.org/) build. The buildfrontend-maven-plugin will do the following steps for you:

* download the specified tools
* installs them to your local maven repository
* extract the archives from the local maven repository
* invoke the tools with the configured parameters

## Demo

A demo project can be found [here](https://github.com/sdorra/buildfrontend-maven-plugin/tree/master/src/it).

## Usage

```xml
<build>
  <plugins>
    
    <plugin>
      <groupId>com.github.sdorra</groupId>
      <artifactId>buildfrontend-maven-plugin</artifactId>
      <version>2.0.0-SNAPSHOT</version>
      <configuration>
        <node>
          <version>v8.9.4</version>
        </node>
        <pkgManager>
{'fraction_non_alphanumeric': 0.15942028985507245, 'fraction_numerical': 0.011594202898550725, 'mean_word_length': 4.879045996592845, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 22, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '549374', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1190, 'n_words': 162}