# fd-gulp-dependencies

> check amd dependencies base on gulp

Latest version **0.0.1** (published 2014-05-08) · ISC license · 0 weekly downloads

## Install

```sh
npm install fd-gulp-dependencies
pnpm add fd-gulp-dependencies
yarn add fd-gulp-dependencies
bun add fd-gulp-dependencies
```

## 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.0.1 |
| Published | 2014-05-08 |
| First published | 2014-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dongming.jidm |
| Maintainers | fangdeng |
| Keywords | gulpplugin, fdmplugin, amd, dependencies |

## Links

- npm: https://www.npmjs.com/package/fd-gulp-dependencies
- Repository: http://gitlab.alibaba-inc.com/fangdeng/fd-gulp-dependencies
- npm.io page: https://npm.io/package/fd-gulp-dependencies

## Dependencies (4)

- [should](https://npm.io/package/should.md) ^3.2.0-beta1
- [through](https://npm.io/package/through.md) ^2.3.4
- [gulp-util](https://npm.io/package/gulp-util.md) ^2.2.14
- [lodash.defaults](https://npm.io/package/lodash.defaults.md) ^2.4.1

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-05-08

## README

# 检查AMD模块依赖关系的gulp插件

## 用法

```javascript
dependencies(baseDir, prefixDir, [opt]);
```

## 例子

```javascript
var gulp = require('gulp');
var dependencies = require('fd-gulp-dependencies');

var dependencyOpt = {
	"timeStamp": '2014_3_27_14_7_39',
    "fileName": "amdVersion"
};

gulp.task('dependencies', function() {
    return gulp.src(['./source/qingguo/**/*.js', '!./source/qingguo/**/tmp{,/**}', '!./source/qingguo/**/test{,/**}'])
                .pipe(dependencies('./source/qingguo', 'app/qingguo', dependencyOpt))
                .pipe(gulp.dest('./dest/version/'));
});
```

## 参数

### baseDir string(必须)

要扫描的目录

### prefixDir string(必须)

例如：app/search,app/qingguo,app/offer

### opt object(可选)

	* fileName  版本文件的名称，不设置，则不生成依赖关系文件，只扫描是否存在循环依赖。
	* timeStamp 给文件名加个时间戳，例如2014_3_27_14_7_39，最终生成的依赖关系文件名称为：fileName-2014_3_27_14_7_39

生成的依赖关系内容大致如下：

	/app/qingguo/js/amdtest/hello_world.js=app/qingguo/js/amdtest/output.js,app/qingguo/js/amdtest/hello.js,app/qingguo/js/amdtest/world.js,app/qingguo/js/amdtest/hello_world.js
	/app/qingguo/js/amdtest/showtext.js=app/qingguo/js/amdtest/text.js,app/qingguo/js/amdtest/showtext.js
	/app/qingguo/js/amdtest/slider.js=app/qingguo/js/amdtest/showtext.js,app/qingguo/js/amdtest/text.js,app/qingguo/js/amdtest/slider.js

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