New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-symlink

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-symlink - npm Package Compare versions

Comparing version

to
0.1.2

3

index.js

@@ -13,2 +13,5 @@ /* jshint node:true */

return map(function(file, cb) {
if (typeof out === 'undefined') {
cb(new Error('gulp-symlink: A destination folder is required.'));
}
var dest = process.cwd() + path.sep + out;

@@ -15,0 +18,0 @@ var sym = path.resolve(file.path, dest) + path.sep + path.basename(file.path);

2

package.json
{
"name": "gulp-symlink",
"version": "0.1.1",
"version": "0.1.2",
"description": "Create symlinks during your gulp build.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -20,2 +20,13 @@ /* jshint node: true */

describe('gulp-symlink', function() {
it('should throw if no directory was specified', function(cb) {
var stream = symlink();
try {
stream.write(new gutil.File({
path: process.cwd() + path.sep + testFile
}));
} catch (e) {
expect(e.toString()).to.contain.string('A destination folder is required.');
cb();
}
});
it('should create symlinks', function(cb) {

@@ -22,0 +33,0 @@ var stream = symlink(testDir);