/grunt-js2jade

Minifies JavaScript files to valid Jade files.

Primary LanguageJavaScriptMIT LicenseMIT

grunt-js2jade v0.0.15 Build Status Built with Grunt

Minifies JavaScript files into valid Jade files.

Getting Started

This plugin requires Grunt ~0.4.0 and grunt-contrib-uglify.

If you haven't used Grunt before, be sure to check out the Getting Started guide. Once you're familiar with the process, you may install this plugin with this command:

npm install grunt-js2jade --save-dev

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

grunt.loadNpmTasks('grunt-js2jade');

What's this?

A grunt plugin to simplify using JavaScript libraries for Jade. It basically adds a trivial src:dest uglify task to your grunt.config object and appends a hyphen to the generated output to convert JavaScript files to valid Jade files.

js2jade Task

Inside your grunt.config initialization add something like this:

   js2jade: {
     files: {
       src:['path/to/a.js', 'path/to/b.js'],
       dest:'path/to/ab.jade'
     }
   }

Get Social

Release History

0.0.15 / 2014-08-24
  • Added grunt-contrib-uglify dependency.
  • Added simple testing.
  • Added .npmignore file.
0.0.7 / 2014-08-19
  • Fixed typos.
0.0.1 / 2014-08-19
  • Initial Release.

Task submitted by Jorge Bucaran