Skip to content

Commit

Permalink
Merge pull request #135 from hoodiehq/npm
Browse files Browse the repository at this point in the history
refactor to use npm instead of custom caching
  • Loading branch information
svnlto committed Jul 25, 2014
2 parents 77a2a73 + 4146442 commit 7a6c4fd
Show file tree
Hide file tree
Showing 19 changed files with 91 additions and 449 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ hoodie install global-share
# Cloned from https://github.com/hoodiehq/global-share
```

+ `hoodie cache`
Manipulates local cache.

+ `hoodie reset`
Resets hoodie server password.

Expand Down
7 changes: 0 additions & 7 deletions doc/cli/help.cache.txt

This file was deleted.

21 changes: 14 additions & 7 deletions doc/cli/help.new.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,18 @@ Usage:
$0 new <name> [<template>]
$0 new -n <name> [-t <template>]
$0 new -n <name> [-t <template>] [-p <plugin>...]

Options:
-n | --name <name> Application name.
-t | --template <template> Template name (default: "hoodiehq/my-first-hoodie").
-p | --plugins <plugin>... Installs hoodie plugin(s).
-k | --keep-git Keeps .git folder in cached checkout.
--use-ssh Will install from `[email protected]:user/repo.git`.
-v | --verbose Verbose output.

--name, -n <name> application name
--template, -t <template> template name (default: "hoodiehq/my-first-hoodie")
--plugins, -p <plugin(s)> installs hoodie plugin(s)
--use-ssh will install from `[email protected]:user/repo.git`
--verbose, -v verbose output

Examples:

$ $0 new
$ $0 new hoodieapp
$ $0 new -n hoodieapp -t "50p/my-fresh-hoodie-yo"
$ $0 new -n hoodieapp -t "50p/my-fresh-hoodie-yo" -p "users,shares,cheesecake"
1 change: 0 additions & 1 deletion doc/cli/help.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Usage:
$0 start
$0 install <plugin>...
$0 uninstall <plugin>...
$0 cache
$0 reset
$0 -h | --help
$0 -v | --verbose
Expand Down
1 change: 0 additions & 1 deletion lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ CLI.prototype.uninstall = require('./cli/uninstall');
CLI.prototype.help = require('./cli/help');
CLI.prototype.start = require('./cli/start');
CLI.prototype.reset = require('./cli/reset');
CLI.prototype.cache = require('./cli/cache');

CLI.prototype.unknown = require('./cli/unknown');
CLI.prototype.version = require('./cli/version');
Expand Down
34 changes: 0 additions & 34 deletions lib/cli/cache.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/cli/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ module.exports = function(argv, callback) {
name: argv._[1] || argv.name || argv.n,
template: argv._[2] || argv.template || argv.t,
plugins: argv._[3] || argv.plugins || argv.p,
keep: argv['keep-git'] || argv.keep || argv.k,
ssh: argv['use-ssh'] || argv.s,
verbose: argv.verbose || argv.v
};
Expand Down
5 changes: 4 additions & 1 deletion lib/cli/util/notifier.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
var updateNotifier = require('update-notifier');
var pkg = require('../../../package.json');

module.exports = function() {

var notifier = updateNotifier({
packagePath: '../../../package',
packageName: pkg.name,
packageVersion: pkg.version,
updateCheckInterval: 1000 * 60 * 60 * 1 // 1 hr
});

Expand All @@ -12,3 +14,4 @@ module.exports = function() {
}

};

1 change: 0 additions & 1 deletion lib/hoodie.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function Hoodie() {
this.uninstall = require('./hoodie/uninstall').exec(this);
this.start = require('./hoodie/start').exec(this);
this.reset = require('./hoodie/reset').exec(this);
this.cache = require('./hoodie/cache').exec(this);
this.version = require('./hoodie/version').exec(this);
}

Expand Down
109 changes: 0 additions & 109 deletions lib/hoodie/cache.js

This file was deleted.

2 changes: 1 addition & 1 deletion lib/hoodie/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ CreateCommand.prototype.execute = function(options) {

async.map(pluginsArr, function (p, cb) {


var pluginName = p.trim();

if (pluginName.match('hoodie-plugin-')) {
Expand Down Expand Up @@ -140,6 +139,7 @@ CreateCommand.prototype.execute = function(options) {
}
self.hoodie.emit('info', 'Successfully updated package.json');
});

});
}

Expand Down
Loading

0 comments on commit 7a6c4fd

Please sign in to comment.