Permalink
Browse files

[fix] remove vendor/ using bundleDeps and correcting .gitignore

  • Loading branch information...
1 parent 2add277 commit 1c5e14761d42b958b6973864915fdc0d05cba74e @dominictarr dominictarr committed Oct 14, 2011
Showing with 6 additions and 2,670 deletions.
  1. +2 −1 .gitignore
  2. +0 −7 README.md
  3. +1 −1 lib/http-server.js
  4. 0 {vendor → node_modules}/node-static/LICENSE
  5. 0 {vendor → node_modules}/node-static/README.md
  6. 0 {vendor → node_modules}/node-static/benchmark/node-static-0.3.0.txt
  7. 0 {vendor → node_modules}/node-static/examples/file-server.js
  8. 0 {vendor → node_modules}/node-static/lib/node-static.js
  9. 0 {vendor → node_modules}/node-static/lib/node-static/mime.js
  10. 0 {vendor → node_modules}/node-static/lib/node-static/util.js
  11. 0 {vendor → node_modules}/node-static/package.json
  12. +3 −1 package.json
  13. +0 −19 vendor/colors/MIT-LICENSE.txt
  14. +0 −30 vendor/colors/ReadMe.md
  15. +0 −20 vendor/colors/example.html
  16. +0 −7 vendor/colors/example.js
  17. +0 −191 vendor/colors/index.js
  18. +0 −14 vendor/colors/package.json
  19. +0 −20 vendor/eyes/LICENSE
  20. +0 −4 vendor/eyes/Makefile
  21. +0 −72 vendor/eyes/README.md
  22. +0 −233 vendor/eyes/lib/eyes.js
  23. +0 −14 vendor/eyes/package.json
  24. +0 −55 vendor/eyes/test/eyes-test.js
  25. +0 −2 vendor/optimist/.gitignore
  26. +0 −4 vendor/optimist/.npmignore
  27. +0 −21 vendor/optimist/LICENSE
  28. +0 −472 vendor/optimist/README.markdown
  29. +0 −10 vendor/optimist/examples/bool.js
  30. +0 −7 vendor/optimist/examples/boolean_double.js
  31. +0 −7 vendor/optimist/examples/boolean_single.js
  32. +0 −8 vendor/optimist/examples/default_hash.js
  33. +0 −7 vendor/optimist/examples/default_singles.js
  34. +0 −8 vendor/optimist/examples/divide.js
  35. +0 −20 vendor/optimist/examples/line_count.js
  36. +0 −29 vendor/optimist/examples/line_count_options.js
  37. +0 −29 vendor/optimist/examples/line_count_wrap.js
  38. +0 −4 vendor/optimist/examples/nonopt.js
  39. +0 −2 vendor/optimist/examples/reflect.js
  40. +0 −3 vendor/optimist/examples/short.js
  41. +0 −11 vendor/optimist/examples/string.js
  42. +0 −19 vendor/optimist/examples/usage-options.js
  43. +0 −10 vendor/optimist/examples/xup.js
  44. +0 −449 vendor/optimist/index.js
  45. +0 −40 vendor/optimist/package.json
  46. +0 −66 vendor/optimist/test/_.js
  47. +0 −2 vendor/optimist/test/_/argv.js
  48. +0 −3 vendor/optimist/test/_/bin.js
  49. +0 −252 vendor/optimist/test/parse.js
  50. +0 −256 vendor/optimist/test/usage.js
  51. +0 −54 vendor/wordwrap/README.markdown
  52. +0 −10 vendor/wordwrap/example/center.js
  53. +0 −3 vendor/wordwrap/example/meat.js
  54. +0 −42 vendor/wordwrap/index.js
  55. +0 −37 vendor/wordwrap/package.json
  56. +0 −63 vendor/wordwrap/test/idleness.txt
  57. +0 −31 vendor/wordwrap/test/wrap.js
View
@@ -1,2 +1,3 @@
-node_modules
+node_modules/*
+!node_modules/node-static
npm-debug.log
View
@@ -14,13 +14,6 @@ Once you have `npm`:
This will install `http-server` globally so that it may be run from the command line.
-
-If you cannot install `npm`, you can always clone the source directly:
-
- git clone git://github.com/nodejitsu/http-server.git
- cd http-server
- node bin/http-server
-
## Usage:
http-server [path] [options]
View
@@ -8,7 +8,7 @@
var colors = require('colors'),
argv = require('optimist').argv,
- static = require('../vendor/node-static/lib/node-static'),
+ static = require('node-static'),
http = require('http');
var HTTPServer = exports.HTTPServer = function (options) {
File renamed without changes.
View
@@ -17,10 +17,12 @@
"command"
],
"dependencies" : {
+ "eyes": "~0.1.6",
"colors" : "*",
"optimist" : "0.2.x"
},
- "license" : "MIT",
+ "bundleDependencies" : [ "node-static" ],
+ "license" : "MIT",
"engine" : {
"node" : ">=0.4"
}
@@ -1,19 +0,0 @@
-Copyright (c) 2010 Alexis Sellier (cloudhead) , Marak Squires
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
@@ -1,30 +0,0 @@
-<h1>colors.js - get color and style in your node.js console like what</h1>
-
-<img src="http://i.imgur.com/goJdO.png" border = "0"/>
-
- var sys = require('sys');
- var colors = require('./colors');
-
- sys.puts('hello'.green); // outputs green text
- sys.puts('i like cake and pies'.underline.red) // outputs red underlined text
- sys.puts('inverse the color'.inverse); // inverses the color
- sys.puts('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
-
-<h2>colors and styles!</h2>
-- bold
-- italic
-- underline
-- inverse
-- yellow
-- cyan
-- white
-- magenta
-- green
-- red
-- grey
-- blue
-
-
-### Authors
-
-#### Alexis Sellier (cloudhead) , Marak Squires , Justin Campbell, Dustin Diaz (@ded)
@@ -1,20 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en-us">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Colors Example</title>
- <script src="colors.js"></script>
- <script type="text/javascript">
- console.log('Rainbows are fun!'.rainbow);
- console.log('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse);
- console.log('Chains are also cool.'.bold.italic.underline.red);
- </script>
- </head>
- <body>
- <script>
- document.write('Rainbows are fun!'.rainbow + '<br>');
- document.write('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse + '<br>');
- document.write('Chains are also cool.'.bold.italic.underline.red);
- </script>
- </body>
-</html>
@@ -1,7 +0,0 @@
-var sys = require('sys');
-var colors = require('./colors');
-
-sys.puts('Rainbows are fun!'.rainbow);
-sys.puts('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
-sys.puts('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
-// sys.puts('zalgo time!'.zalgo);
View
@@ -1,191 +0,0 @@
-/*
-colors.js
-
-Copyright (c) 2010 Alexis Sellier (cloudhead) , Marak Squires
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-*/
-
-// prototypes the string object to have additional method calls that add terminal colors
-var isHeadless = (typeof module !== 'undefined');
-['bold', 'underline', 'italic', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'].forEach(function (style) {
-
- // __defineGetter__ at the least works in more browsers
- // http://robertnyman.com/javascript/javascript-getters-setters.html
- // Object.defineProperty only works in Chrome
- String.prototype.__defineGetter__(style, function () {
- return isHeadless ?
- stylize(this, style) : // for those running in node (headless environments)
- this.replace(/( )/, '$1'); // and for those running in browsers:
- // re: ^ you'd think 'return this' works (but doesn't) so replace coerces the string to be a real string
- });
-});
-
-// prototypes string with method "rainbow"
-// rainbow will apply a the color spectrum to a string, changing colors every letter
-String.prototype.__defineGetter__('rainbow', function () {
- if (!isHeadless) {
- return this.replace(/( )/, '$1');
- }
- var rainbowcolors = ['red','yellow','green','blue','magenta']; //RoY G BiV
- var exploded = this.split("");
- var i=0;
- exploded = exploded.map(function(letter) {
- if (letter==" ") {
- return letter;
- }
- else {
- return stylize(letter,rainbowcolors[i++ % rainbowcolors.length]);
- }
- });
- return exploded.join("");
-});
-
-function stylize(str, style) {
- var styles = {
- //styles
- 'bold' : [1, 22],
- 'italic' : [3, 23],
- 'underline' : [4, 24],
- 'inverse' : [7, 27],
- //grayscale
- 'white' : [37, 39],
- 'grey' : [90, 39],
- 'black' : [90, 39],
- //colors
- 'blue' : [34, 39],
- 'cyan' : [36, 39],
- 'green' : [32, 39],
- 'magenta' : [35, 39],
- 'red' : [31, 39],
- 'yellow' : [33, 39]
- };
- return '\033[' + styles[style][0] + 'm' + str +
- '\033[' + styles[style][1] + 'm';
-};
-
-// don't summon zalgo
-String.prototype.__defineGetter__('zalgo', function () {
- return zalgo(this);
-});
-
-// please no
-function zalgo(text, options) {
- var soul = {
- "up" : [
- '̍','̎','̄','̅',
- '̿','̑','̆','̐',
- '͒','͗','͑','̇',
- '̈','̊','͂','̓',
- '̈','͊','͋','͌',
- '̃','̂','̌','͐',
- '̀','́','̋','̏',
- '̒','̓','̔','̽',
- '̉','ͣ','ͤ','ͥ',
- 'ͦ','ͧ','ͨ','ͩ',
- 'ͪ','ͫ','ͬ','ͭ',
- 'ͮ','ͯ','̾','͛',
- '͆','̚'
- ],
- "down" : [
- '̖','̗','̘','̙',
- '̜','̝','̞','̟',
- '̠','̤','̥','̦',
- '̩','̪','̫','̬',
- '̭','̮','̯','̰',
- '̱','̲','̳','̹',
- '̺','̻','̼','ͅ',
- '͇','͈','͉','͍',
- '͎','͓','͔','͕',
- '͖','͙','͚','̣'
- ],
- "mid" : [
- '̕','̛','̀','́',
- '͘','̡','̢','̧',
- '̨','̴','̵','̶',
- '͜','͝','͞',
- '͟','͠','͢','̸',
- '̷','͡',' ҉'
- ]
- },
- all = [].concat(soul.up, soul.down, soul.mid),
- zalgo = {};
-
- function randomNumber(range) {
- r = Math.floor(Math.random()*range);
- return r;
- };
-
- function is_char(character) {
- var bool = false;
- all.filter(function(i){
- bool = (i == character);
- });
- return bool;
- }
-
- function heComes(text, options){
- result = '';
- options = options || {};
- options["up"] = options["up"] || true;
- options["mid"] = options["mid"] || true;
- options["down"] = options["down"] || true;
- options["size"] = options["size"] || "maxi";
- var counts;
- text = text.split('');
- for(var l in text){
- if(is_char(l)) { continue; }
- result = result + text[l];
-
- counts = {"up" : 0, "down" : 0, "mid" : 0};
-
- switch(options.size) {
- case 'mini':
- counts.up = randomNumber(8);
- counts.min= randomNumber(2);
- counts.down = randomNumber(8);
- break;
- case 'maxi':
- counts.up = randomNumber(16) + 3;
- counts.min = randomNumber(4) + 1;
- counts.down = randomNumber(64) + 3;
- break;
- default:
- counts.up = randomNumber(8) + 1;
- counts.mid = randomNumber(6) / 2;
- counts.down= randomNumber(8) + 1;
- break;
- }
-
- var arr = ["up", "mid", "down"];
- for(var d in arr){
- var index = arr[d];
- for (var i = 0 ; i <= counts[index]; i++)
- {
- if(options[index]) {
- result = result + soul[index][randomNumber(soul[index].length)];
- }
- }
- }
- }
- return result;
- };
- return heComes(text);
-}
@@ -1,14 +0,0 @@
-{
- "name": "colors",
- "description": "get colors in your node.js console like what",
- "version": "0.5.0",
- "author": "Marak Squires",
- "repository": {
- "type": "git",
- "url": "http://github.com/Marak/colors.js.git"
- },
- "engine": [
- "node >=0.1.90"
- ],
- "main": "colors"
-}
View
@@ -1,20 +0,0 @@
-Copyright (c) 2009 cloudhead
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,4 +0,0 @@
-test:
- @@node test/eyes-test.js
-
-.PHONY: test
Oops, something went wrong.

0 comments on commit 1c5e147

Please sign in to comment.