Permalink
Browse files

cleanup

  • Loading branch information...
1 parent ca84f3e commit 5988ae801468af3e56c718eac3d262fca3546759 @contra contra committed Aug 27, 2011
Showing with 15 additions and 1,896 deletions.
  1. +3 −0 .gitignore
  2. +3 −0 .npmignore
  3. +9 −8 lib/npm.js
  4. +0 −19 lib/test.js
  5. +0 −20 node_modules/colors/MIT-LICENSE.txt
  6. +0 −30 node_modules/colors/ReadMe.md
  7. +0 −75 node_modules/colors/colors.js
  8. +0 −6 node_modules/colors/example.js
  9. +0 −14 node_modules/colors/package.json
  10. +0 −4 node_modules/iniparser/MakeFile
  11. +0 −41 node_modules/iniparser/README.md
  12. +0 −64 node_modules/iniparser/lib/node-iniparser.js
  13. +0 −10 node_modules/iniparser/package.json
  14. +0 −55 node_modules/nodester-api/node_modules/request/LICENSE
  15. +0 −191 node_modules/nodester-api/node_modules/request/README.md
  16. +0 −150 node_modules/nodester-api/node_modules/request/cookies.js
  17. +0 −447 node_modules/nodester-api/node_modules/request/main.js
  18. +0 −146 node_modules/nodester-api/node_modules/request/mimetypes.js
  19. +0 −14 node_modules/nodester-api/node_modules/request/package.json
  20. 0 node_modules/nodester-api/node_modules/request/test.js
  21. BIN node_modules/nodester-api/node_modules/request/tests/googledoodle.png
  22. +0 −46 node_modules/nodester-api/node_modules/request/tests/server.js
  23. +0 −78 node_modules/nodester-api/node_modules/request/tests/test-body.js
  24. 0 node_modules/nodester-api/node_modules/request/tests/test-cookies.js
  25. +0 −30 node_modules/nodester-api/node_modules/request/tests/test-errors.js
  26. +0 −136 node_modules/nodester-api/node_modules/request/tests/test-pipes.js
  27. +0 −18 node_modules/nodester-api/node_modules/request/tests/test-put.js
  28. +0 −7 node_modules/nodester-api/node_modules/request/tests/test-ssl.js
  29. +0 −84 node_modules/nodester-api/node_modules/request/tests/test-timeout.js
  30. +0 −184 node_modules/nodester-api/nodester.js
  31. +0 −19 node_modules/nodester-api/package.json
View
@@ -0,0 +1,3 @@
+.DS_Store
+*.log
+node_modules
View
@@ -0,0 +1,3 @@
+.DS_Store
+*.log
+node_modules
View
@@ -8,8 +8,8 @@ var node = require('nodester-api').nodester,
module.exports = {
usage: function () {
- log.usage('In a configured app dir, <appname> is optional. (domain aliases appdomain)');
- log.usage('All arguments after install|update|uninstall will be sent to npm as packages.');
+ log.usage('In a configured app dir, <appname> is optional.');
+ log.usage('All arguments after install|update|uninstall or appname will be sent to npm as packages.');
log.usage('npm list - Lists the installed npm packages for this app.');
log.usage('npm install <appname> <packages> - Installs the list of specified packages to this app.');
log.usage('npm update <appname> <packages> - Update the list of specified packages to this app.');
@@ -25,15 +25,16 @@ module.exports = {
p = args.splice(1);
}
if (!p.length) {
- if (path.existsSync('package.json')){
+ if (exists('package.json')) {
log.info('grabbing dependencies from package.json...');
var depen = JSON.parse(fs.readFileSync('package.json')).dependencies;
if (!depen) {
- log.error('no packages to install!');
- }
- p = [];
- for (dependency in depen) {
- p.push(dependency);
+ log.error('no depedencies found!');
+ } else {
+ p = [];
+ for (dependency in depen) {
+ p.push(dependency);
+ }
}
} else {
log.error('no packages to install!');
View
@@ -1,19 +0,0 @@
-var node = require('nodester-api').nodester,
- path = require('path'),
- fs = require('fs'),
- exists = path.existsSync,
- config = require('./config');
-
-if (exists('./package.json')){
- var p = [];
- console.log('grabbing dependencies from package.json...');
- var depen = JSON.parse(fs.readFileSync('package.json')).dependencies;
- if (!depen) {
- console.log('no packages to install!');
- }
- console.log(depen);
- for (dependency in depen) {
- p.push(dependency);
- }
- console.log(p);
-}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 5988ae8

Please sign in to comment.