node package manager



Compile EmberScript files.

Getting Started

This plugin requires Grunt ~0.4.0

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-ember-script --save-dev

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


Em task

Run this task with the grunt em command.

This plugin provides the EmberScript compiler.



Type: boolean

Default: no

Compile the JavaScript without the top-level function safety wrapper.


Type: boolean

Default: no

Create a source map and a EmberScript file with all concatenated sources in the same folder as the target JavaScript file.

The source map will be named like this: #{targetJsFileName}map.json, e.g.: helloworld.jsmap.json.

The EmberScript file with all concatenated sources will be named like this: #{targetJsFileName}.em, e.g.: helloworld.js.em.

Example Configuration

    bare: false
    sourceMap: true
      'tmp/helloworld.js': [

This configuration will create following files in the tmp folder:

  • helloworld.js.em: This is the result of the concatenation of the files hello.em and world.em.

  • helloworld.jsmap.json: The source map who is pointing to the helloworld.js.em.

  • 'helloworld.js': Is the to JavaScript compiled version of the helloworld.js.em file.

Release History

(Nothing yet)

Task submitted by Gordon Hempton

This file was generated on Mon Jul 29 2013 23:30:11.