Produces html-output depending on grunt target
JavaScript
Pull request Compare This branch is 45 commits behind changer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
tasks
test
LICENSE-MIT
README.md
grunt.js
package.json

README.md

grunt-targethtml

Produces html-output depending on grunt target

Getting Started

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

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

grunt.loadNpmTasks('grunt-targethtml');

Documentation

Configure which files to be outputted in your initConfig:

grunt.initConfig({
  // ... other configs

  // produce html
  targethtml: {
    debug: {
      input: 'public/index.html',
      output: 'public/dist/debug/index.html'
    },
    release: {
      input: 'public/index.html',
      output: 'public/dist/release/index.html'
    }
  },

  // ... other configs
});

There's no need to specify assets/js/**/* since the task will automatically recursively delete whatever is in that path.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

  • 8/31/12 - v0.1.0 - Initial release.

License

Copyright (c) 2012 Ruben Stolk Licensed under the MIT license.