Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
Use get-down instead of bower
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Jan 8, 2014
1 parent 232d648 commit a45f3bc
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
@@ -1,3 +1,2 @@
/node_modules/
/.deps/
/bower_components/
6 changes: 0 additions & 6 deletions bower.json

This file was deleted.

1 change: 1 addition & 0 deletions default-config.json
@@ -1,4 +1,5 @@
{
"compiler_url": "http://dl.google.com/closure-compiler/compiler-latest.zip",
"library_url": "https://closure-library.googlecode.com/archive/ab89cf45c216615d73a2f5dea720afb9d3415d1f.zip",
"log_level": "info"
}
7 changes: 7 additions & 0 deletions install.js
Expand Up @@ -69,3 +69,10 @@ maybeDownload('compiler', config.get('compiler_url'), function(err, dir) {
return process.exit(1);
}
});

maybeDownload('library', config.get('library_url'), function(err, dir) {
if (err) {
log.error('install', err.message);
return process.exit(1);
}
});
5 changes: 3 additions & 2 deletions lib/manager.js
Expand Up @@ -6,7 +6,9 @@ var async = require('async');
var Gaze = require('gaze').Gaze;
var log = require('npmlog');

var config = require('./config');
var globs = require('./util').globs;
var getDependency = require('./util').getDependency;
var minimatches = require('./util').minimatches;
var scripts = require('./scripts');

Expand Down Expand Up @@ -77,8 +79,7 @@ var Manager = exports.Manager = function Manager(options) {
}
var more = main;
if (options.closure) {
var closure = path.join(__dirname, '..', 'bower_components',
'closure-library');
var closure = getDependency('library', config.get('library_url'));
more = more.concat([
path.join(closure, 'closure', 'goog', '**', '*.js'),
path.join(closure, 'third_party', 'closure', 'goog', '**', '*.js')
Expand Down
2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -25,7 +25,6 @@
"glob": "3.2.7",
"async": "0.2.9",
"lodash": "2.4.1",
"bower": "1.2.8",
"graceful-fs": "2.0.1",
"handlebars": "1.3.0",
"send": "0.1.4",
Expand All @@ -48,7 +47,6 @@
},
"scripts": {
"install": "node install.js",
"postinstall": "bower install",
"test": "grunt test",
"start": "grunt watch"
}
Expand Down

0 comments on commit a45f3bc

Please sign in to comment.