# grunt-smooshjs

> Grunt plugin for the smooshjs project

Latest version **1.0.10** (published 2016-01-21) · 0 weekly downloads

## Install

```sh
npm install grunt-smooshjs
pnpm add grunt-smooshjs
yarn add grunt-smooshjs
bun add grunt-smooshjs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.10 |
| Published | 2016-01-21 |
| First published | 2015-11-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.2.1 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Michael Wingfield |
| Maintainers | kenoshen |
| Keywords | smooshjs, smoosh, gruntplugin, grunt, plugin |

## Links

- npm: https://www.npmjs.com/package/grunt-smooshjs
- Repository: https://github.com/Kenoshen/grunt-smooshjs
- Issues: https://github.com/Kenoshen/grunt-smooshjs/issues
- npm.io page: https://npm.io/package/grunt-smooshjs

## Dependencies (1)

- [smooshjs](https://npm.io/package/smooshjs.md) ^0.2.10

## Recent versions

- 1.0.10 (latest) — 2016-01-21
- 1.0.9 — 2015-11-03
- 1.0.8 — 2015-11-03
- 1.0.7 — 2015-11-03
- 1.0.6 — 2015-11-03
- 1.0.5 — 2015-11-03
- 1.0.4 — 2015-11-03
- 1.0.3 — 2015-11-03
- 1.0.2 — 2015-11-03
- 1.0.1 — 2015-11-03
- 1.0.0 — 2015-11-03

## README

# grunt-smooshjs

> Grunt plugin for the smooshjs project

## Getting Started
This plugin requires Grunt `~0.4.5`

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-smooshjs --save-dev
```

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

```js
grunt.loadNpmTasks('grunt-smooshjs');
```

## The "smooshjs" task

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

```js
grunt.initConfig({
    smooshjs: {
        myMainApp: {
            in: "path/to/entryPoint.js",
            out: "path/to/output.js",
            cjs: true, // should it output as common js?
            amd: false // should it output as AMD?
        },
        myOtherApp: {
            in: "path/to/entryPoint.js", // 'in' is required, 'out' is not
            cjs: true, // you must have at least one of these set to true
        },
        myOtherOtherApp: {
            in: "path/to/entryPoint.js",
            out: "path/to/output", // out can also be a directory
            cjs: true, // both cjs and
            amd: true, // amd options can be true
        },
    },
});
```

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