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

gulp-bower

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-bower - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

32

index.js

@@ -15,3 +15,17 @@ var bower = require('bower');

bower.commands.install()
var dir;
if (bower_dir)
dir = bower_dir;
else {
if (fs.existsSync('./.bowerrc')) {
var bower_config = JSON.parse(fs.readFileSync('./.bowerrc'));
dir = bower_config.directory;
}
if (typeof(dir) === 'undefined' || dir === null || dir === '') {
dir = './bower_components';
}
}
gutil.log("Using bower dir: ", dir);
bower.commands.install([], {}, {directory: dir})
.on('log', function(result) {

@@ -25,18 +39,2 @@ gutil.log(['bower', gutil.colors.cyan(result.id), result.message].join(' '));

.on('end', function() {
var dir;
if(bower_dir !== null && typeof(bower_dir) !== 'undefined' && bower_dir !== '') {
dir = bower_dir;
} else {
if(fs.existsSync('./.bowerrc')) {
var bower_config = JSON.parse(fs.readFileSync('./.bowerrc'));
dir = bower_config.directory;
}
if(typeof(dir) === 'undefined' || dir === null || dir === "") {
dir = './bower_components';
}
}
gutil.log("Using bower dir: ", dir);
var walker = walk.walk(dir);

@@ -43,0 +41,0 @@ walker.on("errors", function(root, stats, next) {

{
"name": "gulp-bower",
"version": "0.0.3",
"version": "0.0.4",
"description": "Install Bower packages.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -40,2 +40,5 @@ # gulp-bower

#####0.0.4
- fixed custom bower directory bug
#####0.0.3

@@ -42,0 +45,0 @@ - add logging (by squarejaw)

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