<commit_before># grunt-push-svn

> Push local directory to a specified SVN server

## Getting Started
This plugin requires Grunt `~0.4.1`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-push-svn --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-push-svn');
```

## The "push_svn" task

### Overview
In your project's Gruntfile, add a section named `push_svn` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  push_svn: {
    options: {
      remove: false, 
      pushIgnore: ['**/*.tmp'],
      removeIgnore: ['**/*.gif']
    },
    main: {
      src: '/path to your local directory',
      dest: 'https://svn.example.com/path/to/your/repo',
      tmp: './.build'
    },
  },
})
```

### Options

#### options.remove
Type: `Boolean`
Default value: `false`

With `options.remove` enabled, remote file will be removed if it does not exist in local directory.

#### options.removeIgnore
Type: `Array`
Default value: `[]`

Specify exclude patterns for `options.remove`

#### options.pushIgnore
Type: `Array`
Default value: `[]`

Specify exclude patterns for local files.

### Usage Examples

#### Deploy code to SAE or BAE

Deployment of SAE or BAE are based on SVN, so grunt-push-svn is just the perfect thing to help you do that.

```js
grunt.initConfig({
  push_svn: {
    options: {},
    src: '/home/dong/projects/sae_bae_project',
    dest: 'https://svn.sinaapp.com/myapp/subfolder',
    tmp: './tmp'
  },
})
```

## Release History
- 0.1.0 - Initial release
- 0.1.1 - Fix dependencies
- 0.1.2 - Force ignore .svn from src<commit_msg>update doc<commit_after># grunt-push-svn

> Push local directory to a specified SVN server

## Getting Started
This plugin requires Grunt `~0.4.1`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-push-svn --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-push-svn');
```

## The "push_svn" task

### Overview
In your project's Gruntfile, add a section named `push_svn` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  push_svn: {
    options: {
      remove: false, 
      pushIgnore: ['**/*.tmp'],
      removeIgnore: ['**/*.gif']
    },
    main: {
      src: '/path to your local directory',
      dest: 'https://svn.example.com/path/to/your/repo',
      tmp: './.build'
    },
  },
})
```

### Options

#### options.remove
Type: `Boolean`
Default value: `false`

With `options.remove` enabled, remote file will be removed if it does not exist in local directory.

#### options.removeIgnore
Type: `Array`
Default value: `[]`

Specify exclude patterns for `options.remove`

#### options.pushIgnore
Type: `Array`
Default value: `[]`

Specify exclude patterns for local files.

#### options.message
Type: `String`
Default value: `"committed with grunt-push-svn"`

### Usage Examples

#### Deploy code to SAE or BAE

Deployment of SAE or BAE are based on SVN, so grunt-push-svn is just the perfect thing to help you do that.

```js
grunt.initConfig({
  push_svn: {
    options: {},
    src: '/home/dong/projects/sae_bae_project',
    dest: 'https://svn.sinaapp.com/myapp/subfolder',
    tmp: './tmp'
  },
})
```

## Release History
- 0.1.0 - Initial release
- 0.1.1 - Fix dependencies
- 0.1.2 - Force ignore .svn from src
{'fraction_non_alphanumeric': 0.1413919413919414, 'fraction_numerical': 0.005860805860805861, 'mean_word_length': 3.5970819304152637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3329916', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1336, 'n_words': 458}