0.1.0 • Published 10 years ago

grunt-jsttojs v0.1.0

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

grunt-jsttojs

NPM version

Grunt task for jsttojs - a node.js module for precompile JavaScript templates to one file.

If you haven't used grunt before, be sure to check out the Getting Started guide.

Getting Started

From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:

$ npm install grunt-jsttojs

Once that's done, add this line to your project's Gruntfile:

grunt.loadNpmTasks('grunt-jsttojs');

Overview

Inside your grunt.js file add a section named jsttojs. This section specifies the options passed to RequireJS Optimizer.

Config Example

Example requirejs jsttojs config:

  jsttojs: {
    root: 'src/Templates',
    output: 'src/Templates/templates.js',
    ext: 'html',
    removebreak: true,
    amd: true,
    requirements: ['handlebars']
  }

License

Copyright (c) 2012 Alexey Kupriyanenko a.kupriyanenko@gmail.com

grunt-jsttojs is released under the MIT license.

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

11 years ago

0.0.1

11 years ago