Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-contrib-clean

Package Overview
Dependencies
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-contrib-clean - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

13

package.json
{
"name": "grunt-contrib-clean",
"description": "Clean files and folders.",
"version": "0.5.0",
"version": "0.6.0",
"homepage": "https://github.com/gruntjs/grunt-contrib-clean",

@@ -23,3 +23,2 @@ "author": {

],
"main": "Gruntfile.js",
"engines": {

@@ -35,5 +34,5 @@ "node": ">= 0.8.0"

"devDependencies": {
"grunt-contrib-jshint": "~0.2.0",
"grunt-contrib-nodeunit": "~0.1.2",
"grunt-contrib-internal": "~0.4.4",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-nodeunit": "~0.3.3",
"grunt-contrib-internal": "~0.4.10",
"grunt": "~0.4.0"

@@ -46,3 +45,7 @@ },

"gruntplugin"
],
"files": [
"tasks",
"LICENSE-MIT"
]
}

@@ -1,2 +0,2 @@

# grunt-contrib-clean [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-clean.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-clean)
# grunt-contrib-clean v0.6.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-clean.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-clean) <a href="https://ci.appveyor.com/project/gruntjs/grunt-contrib-clean"><img src="https://ci.appveyor.com/api/projects/status/li28411ceq3n833d/branch/master" alt="Build Status: Windows" height="18" /></a>

@@ -75,4 +75,18 @@ > Clean files and folders.

##### Skipping Files
```js
// Deletes all .js files, but skips min.js files
clean: {
js: ["path/to/dir/*.js", "!path/to/dir/*.min.js"]
}
```
"Compact" and "Files Array" formats support a few [additional properties](http://gruntjs.com/configuring-tasks#files)
which help you deal with hidden files, process dynamic mappings and so on.
## Release History
* 2014-07-27   v0.6.0   Less verbose output. README updates.
* 2013-07-15   v0.5.0   Use rimraf directly, version 2.2.1 to fix issue on Windows. Add no-write option to mimic grunt.file.delete behavior.

@@ -91,2 +105,2 @@ * 2013-04-16   v0.4.1   Check if file exists to avoid trying to delete a non-existent file.

*This file was generated on Mon Jul 15 2013 20:45:46.*
*This file was generated on Sun Jul 27 2014 17:36:23.*

@@ -5,3 +5,3 @@ /*

*
* Copyright (c) 2013 Tim Branyen, contributors
* Copyright (c) 2014 Tim Branyen, contributors
* Licensed under the MIT license.

@@ -21,4 +21,2 @@ */

grunt.log.write((options['no-write'] ? 'Not actually cleaning ' : 'Cleaning ') + filepath + '...');
// Only delete cwd or outside cwd if --force enabled. Be careful, people!

@@ -42,3 +40,3 @@ if (!options.force) {

}
grunt.log.ok();
grunt.verbose.writeln((options['no-write'] ? 'Not actually cleaning ' : 'Cleaning ') + filepath + '...');
} catch (e) {

@@ -57,4 +55,2 @@ grunt.log.error();

grunt.verbose.writeflags(options, 'Options');
// Clean specified files / dirs.

@@ -64,4 +60,5 @@ this.filesSrc.forEach(function(filepath) {

});
grunt.log.ok(this.filesSrc.length + ' ' + grunt.util.pluralize(this.filesSrc.length, 'path/paths') + ' cleaned.');
});
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc