# grunt-commonjs-coffee

> Deprecated in favor of grunt-browserify

Latest version **0.3.3** (published 2014-01-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-commonjs-coffee
pnpm add grunt-commonjs-coffee
yarn add grunt-commonjs-coffee
bun add grunt-commonjs-coffee
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2014-01-06 |
| First published | 2013-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Derek Petersen |
| Maintainers | tuxracer |
| Keywords | gruntplugin, coffeescript, commonjs, require |

## Links

- npm: https://www.npmjs.com/package/grunt-commonjs-coffee
- Repository: https://github.com/tuxracer/grunt-commonjs-coffee
- Issues: https://github.com/tuxracer/grunt-commonjs-coffee/issues
- npm.io page: https://npm.io/package/grunt-commonjs-coffee

## Dependencies (1)

- [grunt](https://npm.io/package/grunt.md) ~0.4.1

## Recent versions

- 0.3.3 (latest) — 2014-01-06
- 0.3.2 — 2013-10-18
- 0.3.1 — 2013-09-03
- 0.3.0 — 2013-09-03
- 0.2.2 — 2013-08-15
- 0.2.1 — 2013-07-30

## README

# Deprecated in favor of [grunt-browserify](https://npmjs.org/package/grunt-browserify)

# grunt-commonjs-coffee

Wraps .coffee and .js files into CommonJS modules for client-side usage.

## Getting Started
Install this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: ``npm install grunt-commonjs-coffee --save-dev``

Then add this line to your project's ``Gruntfile.coffee``:

```coffeescript
grunt.loadNpmTasks 'grunt-commonjs-coffee'
```

###CommonJS loader
You'll need a loader to detect your wrapped packages. You can use this simple [CommonJS loader](https://github.com/chrisabrams/commonjs) which is based off how [brunch.io](http://brunch.io) loads CommonJS packages.

[grunt]: https://github.com/gruntjs/grunt
[getting_started]: https://github.com/gruntjs/grunt/wiki/Getting-started

## Documentation
Configure which files to be copied in your `initConfig`:

```coffeescript
grunt.initConfig

  # ... other configs

  # wrap my modules with define
  commonjs:
    modules:
      cwd: 'assets/'
      src: ['**/*.coffee', '**/*.js']
      dest: 'dist/'

  # ... other configs
```

## 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].

## License
Copyright (c) 2012 Team Delicious, AVOS Systems Inc., Derek Petersen

Licensed under the MIT license.

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