Skip to content

reid-rigo/grunt-jam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-jam

A Grunt task for compiling Jam packages.

Getting Started

Be sure you have Jam installed with npm install -g jamjs.

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

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

grunt.loadNpmTasks('grunt-jam');

Documentation

Add the task to your config and specify the destination for the compiled file:

grunt.initConfig({
  jam: {
    dist: {
      dest: 'assets/js/compiled.js'
    }
  }
});

If you would like to include additional files specify src files:

grunt.initConfig({
  jam: {
    dist: {
      src: ['assets/js/src/**/*.js', 'someother/file.js'],
      dest: 'assets/js/compiled.js'
    }
  }
});

All the compile options for jam are available. Set them with the options key like such:

grunt.initConfig({
  jam: {
    dist: {
      dest: 'assets/js/compiled.js',
      options: {
        verbose: true,
        nominify: true,
        wrap: true
      }
    }
  }
});

Contributing

Please open an issue or send a pull request. Run npm test to test. Thanks!

Release History

  • 0.2.1 Better defaults for pkgDir
  • 0.2.0 Update for JamJS 2
  • 0.1.1 Remove grunt as dep
  • 0.1.0 Package up and publish jam task

License

Copyright (c) 2012 Kyle Robinson Young Licensed under the MIT license.

About

A Grunt task for compiling Jam packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%