1.0.10 • Published 9 years ago

grunt-smooshjs v1.0.10

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

grunt-smooshjs

Grunt plugin for the smooshjs project

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-smooshjs --save-dev

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

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().

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
        },
    },
});
1.0.10

9 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago