Skip to content

Commit

Permalink
fixes for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Apr 18, 2013
1 parent c804a8e commit e767382
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 11 deletions.
16 changes: 16 additions & 0 deletions .jshintrc
@@ -0,0 +1,16 @@
{ "es5": true
, "node": true
, "browser": true
, "jquery": true
, "strict": true

, "onevar": true
, "laxcomma": true
, "laxbreak": true

, "eqeqeq": true
, "immed": true
, "undef": true
, "unused": true
, "latedef": true
}
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -61,6 +61,12 @@ CLI / API

rm -rf pakmanaged.js ./node_modules # clean old builds

Internal API
===

#init(cb, config)
#config.packageRoot

TODO
===

Expand Down
11 changes: 3 additions & 8 deletions bin/pakmanager.js
@@ -1,16 +1,11 @@
#!/usr/bin/env node
/*jshint strict:true node:true es5:true onevar:true laxcomma:true laxbreak:true eqeqeq:true immed:true latedef:true*/
(function () {
"use strict";

var fs = require('fs')
, args = require('./argparse').parse()
var args = require('./argparse').parse()
, findBrowser = require('../has-browser').findBrowser
, findPackage = require('../has-package').findPackage
, params = []
, moduleNames = []
, pakmanager
, action
, cwd
;

Expand All @@ -19,7 +14,7 @@
args.env = env;
args.environment = env;

pakmanager = require('../lib');
pakmanager = require('../lib').create();

function doAction() {
var action = args.subcommand_name
Expand Down Expand Up @@ -86,6 +81,6 @@
console.warn('=======================================================\n\n');
isReady('browser');
}
});
}, cwd);
}, cwd);
}());
4 changes: 2 additions & 2 deletions lib/index.js
Expand Up @@ -242,15 +242,15 @@
if ('guess' === type) {
//"browserDependencies": {},
// TODO don't default so heavily to browser
findPackage(onFoundPackage);
findPackage(onFoundPackage, me._packageRoot);
return;
}

me._target = type;
isReady();
}

findBrowser(onFoundBrowser);
findBrowser(onFoundBrowser, me._packageRoot);
};
Pakmanager.create = function (config) {
var pakmanager = new Pakmanager()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "AJ ONeal <coolaj86@gmail.com> (http://coolaj86.info)",
"name": "pakmanager",
"description": "A demo package manager using the pakman API.",
"version": "0.12.0",
"version": "0.12.1",
"homepage": "https://github.com/coolaj86/node-pakman",
"repository": {
"type": "git",
Expand Down

0 comments on commit e767382

Please sign in to comment.