grunt-contrib-symlink
Advanced tools
Comparing version 0.3.0 to 1.0.0
{ | ||
"name": "grunt-contrib-symlink", | ||
"description": "Create symbolic links.", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-symlink", | ||
@@ -17,25 +17,21 @@ "author": { | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/gruntjs/grunt-contrib-symlink/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">= 0.10.0" | ||
}, | ||
"main": "tasks/symlink.js", | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"peerDependencies": { | ||
"grunt": ">=0.4.0" | ||
}, | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.6.0", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-clean": "^1.0.0", | ||
"grunt-contrib-copy": "^0.8.2", | ||
"grunt-contrib-internal": "~0.4.5", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-copy": "~0.4.1" | ||
"grunt-contrib-jshint": "^1.0.0", | ||
"grunt-contrib-nodeunit": "^0.4.1" | ||
}, | ||
"peerDependencies": { | ||
"grunt": "~0.4.1" | ||
}, | ||
"keywords": [ | ||
@@ -42,0 +38,0 @@ "gruntplugin", |
@@ -1,2 +0,2 @@ | ||
# grunt-contrib-symlink v0.3.0 | ||
# grunt-contrib-symlink v1.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-symlink.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-symlink) | ||
@@ -8,3 +8,2 @@ > Create symbolic links. | ||
## Getting Started | ||
This plugin requires Grunt `~0.4.1` | ||
@@ -38,5 +37,7 @@ If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command: | ||
symlink: { | ||
// Enable overwrite to delete symlinks before recreating them | ||
options: { | ||
overwrite: false | ||
// Enable overwrite to delete symlinks before recreating them | ||
overwrite: false, | ||
// Enable force to overwrite symlinks outside the current working directory | ||
force: false | ||
}, | ||
@@ -95,2 +96,3 @@ // The "build/target.txt" symlink will be created and linked to | ||
* 2016-02-28 v1.0.0 Added `force` option when overwriting a symlink outside the current working directory. | ||
* 2014-02-01 v0.3.0 Fixed symlinking to '.' Add Windows usage hints. Added error logging and force failure when unable to create a symlink | ||
@@ -105,2 +107,2 @@ * 2013-07-26 v0.2.0 Initial release as rewritten, officially-maintained, contrib plugin. | ||
*This file was generated on Sat Feb 01 2014 23:58:37.* | ||
*This file was generated on Sun Feb 28 2016 20:26:42.* |
@@ -5,3 +5,3 @@ /* | ||
* | ||
* Copyright (c) 2013 Grunt Team | ||
* Copyright (c) 2016 Grunt Team | ||
* Licensed under the MIT license. | ||
@@ -23,3 +23,4 @@ */ | ||
var options = this.options({ | ||
overwrite: false | ||
overwrite: false, | ||
force: false | ||
}); | ||
@@ -30,2 +31,5 @@ | ||
// force options from CLI | ||
options.force = grunt.option('force') || options.force; | ||
this.files.forEach(function(f) { | ||
@@ -42,3 +46,3 @@ var srcpath = f.src[0]; | ||
} | ||
grunt.file.delete(destpath); | ||
grunt.file.delete(destpath, {force: options.force}); | ||
} | ||
@@ -45,0 +49,0 @@ // Strip any trailing slashes. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8531
5
64
0
105
0