# grunt-dep-concat

> Concatenate files in order based on dependencies.

Latest version **0.1.2** (published 2013-02-18) · 0 weekly downloads

## Install

```sh
npm install grunt-dep-concat
pnpm add grunt-dep-concat
yarn add grunt-dep-concat
bun add grunt-dep-concat
```

## 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 | 2013-02-18 |
| First published | 2012-06-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Eric Li |
| Maintainers | tJener |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-dep-concat
- Repository: https://github.com/tJener/grunt-dep-concat
- Issues: https://github.com/tJener/grunt-dep-concat/issues
- npm.io page: https://npm.io/package/grunt-dep-concat

## Dependencies (1)

- [when](https://npm.io/package/when.md) ~1.8.0

## Recent versions

- 0.1.2 (latest) — 2013-02-18
- 0.1.2rc1 — 2013-02-17
- 0.1.1 — 2012-06-12

## README

# grunt-dep-concat

Concatenate files in order based on dependencies.

## Getting Started

_If you haven't used [grunt][] before, be sure to check out the
[Getting Started][] guide._

From the same directory as your project's [Gruntfile][Getting Started]
and [package.json][], install this plugin with the following command:

```bash
npm install grunt-dep-concat --save-dev
```

Once that's done, add this line to your project's Gruntfile:

```js
grunt.loadNpmTasks('grunt-dep-concat');
```

If the plugin has been installed correctly, running `grunt --help` at
the command line should list the newly-installed plugin's task or
tasks. In addition, the plugin should be listed in package.json as a
`devDependency`, which ensures that it will be installed whenever the
`npm install` command is run.

[grunt]: http://gruntjs.com/
[Getting Started]: https://github.com/gruntjs/grunt/blob/devel/docs/getting_started.md
[package.json]: https://npmjs.org/doc/json.html
[tsort]: http://en.wikipedia.org/wiki/Tsort_%28Unix%29

## The “dep-concat” task

This plugin requires [tsort].

So you have a large number of files with implicit dependencies based
on the order in which you list them in your Gruntfile, and which must
be manually maintained. Don't we have new-fangled computer things to
sort this out for us? Add this to your source files:

```javascript
// load: some_loadtime_dependency.js

// run: a_runtime_dependency.js
/* run: another_runtime_dependency.js */
// run: a.js, long/list.js, of/runtime/dependencies.js

(function() {
  // …
}( SomeLoadtimeDependency ));
```

Then, instead of using the `concat` task, use the `depconcat` task.

```javascript
grunt.initConfig({
  depconcat: {
    dist: {
      src: ['src/**/*.js'],
      dest: 'dist/foo.js'
    }
  }
});
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt][grunt].

## Release History
* 2012/02/18 - v0.1.2 - Fix broken rc1 build.
* 2012/02/17 - v0.1.2rc1 - Update to support grunt 0.4.0.
* 2012/06/12 - v0.1.1 - Initial release.

## License
Copyright (c) 2012 Eric Li  
Licensed under the MIT license.

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