grunt-targethtml
Produces html-output depending on grunt release version
Last updated 7 years ago by rubenstolk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install grunt-targethtml 
SYNC missed versions from official npm registry.

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.
  • 9/1/12 - v0.1.1 - Fixed naming issues

License

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

Current Tags

  • 0.2.0                                ...           beta (8 years ago)
  • 0.2.6                                ...           latest (7 years ago)

10 Versions

  • 0.2.6                                ...           7 years ago
  • 0.2.5                                ...           7 years ago
  • 0.2.4                                ...           7 years ago
  • 0.2.3                                ...           7 years ago
  • 0.2.2                                ...           8 years ago
  • 0.2.1                                ...           8 years ago
  • 0.2.0                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 44
Last Day 0
Last Week 1
Last Month 8
Dependencies (1)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |