grunt-eco-amd

0.1.2 • Public • Published

grunt-eco-amd Build Status

Compiles Eco Templates with an AMD wrapper.

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-eco-amd

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-eco-amd');

Documentation

Inside your project's grunt.js gruntfile add a section named eco_amd.

The eco_amd section has a compile property, inside which you list the files to be placed in an amd wrapper. Additionally, an options property can be specified inside which an basePath can be configured.

    eco_amd: {
      compile: {
        files: {
          'temp/templates/*.js': 'app/templates/**/*.eco'
        }
      },
      options: {
        basePath: 'app/templates'
      }
    }

When the task runs, the templates will be compiled with an AMD wrapper function and placed in the specified path with the specified extension.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    4
  • 0.1.1
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i grunt-eco-amd

Weekly Downloads

7

Version

0.1.2

License

none

Last publish

Collaborators

  • jgrund