Skip to content

Commit

Permalink
fix(task): replace bower with bower-config
Browse files Browse the repository at this point in the history
This should dramatically reduce the package size.

Requires manual testing.
Fixes #62
  • Loading branch information
passy committed Jun 12, 2015
1 parent 5ddf769 commit a1e92a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"proxyquire": "^1.3.0"
},
"dependencies": {
"bower": ">=1.0.0",
"bower-config": "^0.6.1",
"chalk": "^0.5.1",
"google-cdn": "^1.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions tasks/cdnify.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var path = require('path');
var eachAsync = require('each-async');
var googlecdn = require('google-cdn');
var bowerConfig = require('bower').config;
var bowerConfig = require('bower-config');
var chalk = require('chalk');

module.exports = function (grunt) {
Expand All @@ -18,7 +18,8 @@ module.exports = function (grunt) {

// Strip the leading path segment off, e.g. `app/bower_components` ->
// `bower_components`
var bowerDirBits = bowerConfig.directory.split(path.sep);
var config = bowerConfig.create().load()._config;
var bowerDirBits = config.directory.split(path.sep);
bowerDirBits.shift();
var componentsPath = bowerDirBits.join(path.sep);

Expand Down

0 comments on commit a1e92a9

Please sign in to comment.