# gulp-less-tree

> Gulp adapter for generating less dependency tree json.

Latest version **0.1.2** (published 2018-01-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install gulp-less-tree
pnpm add gulp-less-tree
yarn add gulp-less-tree
bun add gulp-less-tree
```

## 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.1.2 |
| Published | 2018-01-07 |
| First published | 2018-01-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonas Kulhanek |
| Maintainers | jonaskulhanek |
| Keywords | less, tree, dependency |

## Links

- npm: https://www.npmjs.com/package/gulp-less-tree
- Repository: https://github.com/jonaskulhanek/gulp-less-tree
- Homepage: https://github.com/jonaskulhanek/gulp-less-tree#readme
- Issues: https://github.com/jonaskulhanek/gulp-less-tree/issues
- npm.io page: https://npm.io/package/gulp-less-tree

## Dependencies (9)

- [path](https://npm.io/package/path.md) ^0.12.7
- [vinyl](https://npm.io/package/vinyl.md) ^2.1.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [treeify](https://npm.io/package/treeify.md) ^1.0.1
- [fs-extra](https://npm.io/package/fs-extra.md) ^5.0.0
- [through2](https://npm.io/package/through2.md) ^2.0.3
- [less-tree](https://npm.io/package/less-tree.md) 0.0.2
- [plugin-error](https://npm.io/package/plugin-error.md) ^0.1.2
- [parse-less-import](https://npm.io/package/parse-less-import.md) 0.0.1

## Recent versions

- 0.1.2 (latest) — 2018-01-07
- 0.1.1 — 2018-01-07
- 0.0.5 — 2018-01-07
- 0.0.4 — 2018-01-07
- 0.0.3 — 2018-01-06
- 0.0.2 — 2018-01-06
- 0.0.1 — 2018-01-06

## README

# gulp-less-tree
Gulp adapter for less-tree module. Generates less-tree json file.

![status](https://secure.travis-ci.org//jonaskulhanek/gulp-less-tree.svg?branch=master)

## Installation

Install package with NPM and add it to your development dependencies:

`npm install --save-dev gulp-less-tree`

## Information

<table>
<tr>
<td>Package</td><td>gulp-less-tree</td>
</tr>
<tr>
<td>Description</td>
<td>Concatenates files</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.10</td>
</tr>
</table>

## Usage

```js
var gulpLessTree = require('gulp-less-tree');

gulp.task('scripts', function() {
  return gulp.src('./src/*.less')
    .pipe(gulpLessTree('dependencies.json'))
    .pipe(gulp.dest('./dist/'));
});
```

This will generate single file dependencies.json, containing dependency structure of your less files. The input file names (without the less extensions) will be used as keys and json objects containing dependencies will be the property values of the object. The resulting object is a json file. Example of such a generated file for files 'first.less', 'second.less' is:

```
{
  "first.less":{
    "dependency1.less":{}
   },
   "second.less":{
    "dependency2.less":{}
   }
}
```

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