Socket
Book a DemoInstallSign in
Socket

grunt-jsttojs-cmd2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jsttojs-cmd2

fork from grunt-jsttojs, add additional option to change AMD keyword (change 'define' keyword to anything) and precompile jquery-tmpl template

npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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,
    amdalias: '__FOO_define',
    requirements: ['handlebars']
  }

License

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

grunt-jsttojs is released under the MIT license.

Keywords

gruntplugin

FAQs

Package last updated on 22 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts