# grunt-svn-checkout

> Checkout and update SVN repos with Grunt

Latest version **0.3.0** (published 2016-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-svn-checkout
pnpm add grunt-svn-checkout
yarn add grunt-svn-checkout
bun add grunt-svn-checkout
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2016-03-05 |
| First published | 2014-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Luke Woodward |
| Maintainers | lkwdwrd |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-svn-checkout
- Repository: https://github.com/lkwdwrd/grunt-svn-checkout
- Issues: https://github.com/lkwdwrd/grunt-svn-checkout/issues
- npm.io page: https://npm.io/package/grunt-svn-checkout

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^1.5.2
- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1

## Recent versions

- 0.3.0 (latest) — 2016-03-05
- 0.2.0 — 2016-03-05
- 0.1.1 — 2014-08-23
- 0.1.0 — 2014-08-23

## README

# grunt-svn-checkout

> Clone and Pull repos with Grunt

## Getting Started
This plugin requires Grunt.

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-svn-checkout --save-dev
```

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

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

## The "svn_checkout" task

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

```js
grunt.initConfig({
  svn_checkout: {
    set: {
      repos: [
        // array of object with relative path arrays and repo keys.
      ]
    },
  },
})
```

Now when running `grunt svn_checkout` the plugin will check all paths and see if there is an SVN repo in them. If so, it will run `svn up` on that repository. If it is not present, it will run `svn checkout` with the repository specified.

### Usage Example
In this example, we're pulling two different SVN repos, both located in different places at https://svn.example.com/. The first repo we are checking out to `relative/path/` and the second to `another/path/`. 

```js
grunt.initConfig({
  svn_checkout: {
    example: {
      repos: [
        {
          path: ['relative', 'path'], // relative/path/
          repo: 'https://svn.example.com/something/'
        },
        {
          path: ['another', 'path'] // another/path/
          repo: 'https://svn.example.com/something-else/'
        }
      ]
    },
  },
})
```

## Release History

**0.1.0**

 - First release.
 - Basic svn checkout/update behavior.

## License
Copyright (c) 2014 Luke Woodward. Licensed under the MIT license.

---
_Source: https://npm.io/package/grunt-svn-checkout · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
