<commit_before>gulp-personium
==============
[![Build Status](https://travis-ci.org/mid0111/gulp-personium.svg?branch=master)](https://travis-ci.org/mid0111/gulp-personium) [![Code Climate](https://codeclimate.com/github/mid0111/gulp-personium/badges/gpa.svg)](https://codeclimate.com/github/mid0111/gulp-personium) [![Test Coverage](https://codeclimate.com/github/mid0111/gulp-personium/badges/coverage.svg)](https://codeclimate.com/github/mid0111/gulp-personium)

This project is gulp plugin for personium.io client development.

## Install

```bash
npm install --save-dev gulp-personium
```

## Usage

### Upload WebDAV file on change.

Upload WebDAV file to WebDAV correction.  
Note that you must create WebDAV correction in advance.

* options  
  Set below options in constructor.
  * `baseDir`: Base directory to upload file.
  * `baseUrl`: Base URL to upload file.

    ````
Upload URL = baseUrl + '/' + baseDir + relative path from baseDir
    ````
  * `token`: Request token (not contains 'Bearer').

* support extension
  * js
  * html
  * css

* sample gulpfile.js to upload webdav files and to reload browser.

  ```js
  var gulp = require('gulp');
  var Personium = require('gulp-personium');
  var livereload = require('gulp-livereload');
  var personium = new Personium({
            baseUrl: 'http://192.168.59.103:8080/dc1-core/todo-app',
            baseDir: 'app',
            token : '<PASSWORD>'
          });
  
  gulp.task('watch', function() {
    livereload.listen();
  
    gulp.watch(['app/**/*.html', 'app/**/*.js', 'app/**/*.css'])
      .on('change', function(event) {
        personium.upload(event, livereload.changed);
      });
  });
  
  gulp.task('default', ['watch']);
  
  ```

<commit_msg>Add coverage status to README.<commit_after>gulp-personium
==============
[![Build Status](https://travis-ci.org/mid0111/gulp-personium.svg?branch=master)](https://travis-ci.org/mid0111/gulp-personium) [![Code Climate](https://codeclimate.com/github/mid0111/gulp-personium/badges/gpa.svg)](https://codeclimate.com/github/mid0111/gulp-personium) [![Coverage Status](https://coveralls.io/repos/mid0111/gulp-personium/badge.svg)](https://coveralls.io/r/mid0111/gulp-personium)

This project is gulp plugin for personium.io client development.

## Install

```bash
npm install --save-dev gulp-personium
```

## Usage

### Upload WebDAV file on change.

Upload WebDAV file to WebDAV correction.  
Note that you must create WebDAV correction in advance.

* options  
  Set below options in constructor.
  * `baseDir`: Base directory to upload file.
  * `baseUrl`: Base URL to upload file.

    ````
Upload URL = baseUrl + '/' + baseDir + relative path from baseDir
    ````
  * `token`: Request token (not contains 'Bearer').

* support extension
  * js
  * html
  * css

* sample gulpfile.js to upload webdav files and to reload browser.

  ```js
  var gulp = require('gulp');
  var Personium = require('gulp-personium');
  var livereload = require('gulp-livereload');
  var personium = new Personium({
            baseUrl: 'http://192.168.59.103:8080/dc1-core/todo-app',
            baseDir: 'app',
            token : '<PASSWORD>'
          });
  
  gulp.task('watch', function() {
    livereload.listen();
  
    gulp.watch(['app/**/*.html', 'app/**/*.js', 'app/**/*.css'])
      .on('change', function(event) {
        personium.upload(event, livereload.changed);
      });
  });
  
  gulp.task('default', ['watch']);
  
  ```


{'fraction_non_alphanumeric': 0.17182528203644779, 'fraction_numerical': 0.023141452126120916, 'mean_word_length': 3.416347381864623, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '431809', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1143, 'n_words': 248}