grunt-clean

0.4.0 • Public • Published

grunt-clean

Removes previously generated files and directories.

Getting Started

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

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

grunt.loadNpmTasks('grunt-clean');

Documentation

Configure which files and directories to delete in your initConfig:

grunt.initConfig({
  // ... other configs
 
  clean: {
    folder: "assets/js/",
    folderTwo: ["assetsOne/js/", "assetsTwo/js/"]
  }
 
  // ... 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

  • 1/25/13 - v0.4.0 - Adding object of arrays and strings support, as well as grunt templating.
  • 4/25/12 - v0.1.0 - Initial release.

License

Copyright (c) 2012 Max Beatty Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-clean

Weekly Downloads

415

Version

0.4.0

License

none

Last publish

Collaborators

  • maxbeatty
  • jeff-harnois