Permalink
Browse files

Remove junk

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information...
1 parent 5f6dbdb commit 6698b3b6943efd9ec3230eb3183c2e36336d06b3 @rwaldron committed Jun 28, 2012
Showing with 0 additions and 26,116 deletions.
  1. +0 −35 node_modules/grunt/lib/grunt/tasks/concat.js
  2. +0 −89 node_modules/grunt/lib/grunt/tasks/lint.js
  3. +0 −89 node_modules/grunt/lib/grunt/tasks/min.js
  4. +0 −61 node_modules/grunt/lib/grunt/tasks/misc.js
  5. +0 −151 node_modules/grunt/lib/grunt/tasks/test.js
  6. +0 −108 node_modules/grunt/lib/grunt/tasks/watch.js
  7. +0 −26 node_modules/grunt/lib/grunt/util.js
  8. +0 −139 node_modules/grunt/node_modules/.bin/handlebars
  9. +0 −1 node_modules/grunt/node_modules/glob-whatev/node_modules/minimatch/node_modules/lru-cache/.gitignore
  10. +0 −11 node_modules/grunt/node_modules/handlebars/.npmignore
  11. +0 −20 node_modules/grunt/node_modules/handlebars/LICENSE
  12. +0 −230 node_modules/grunt/node_modules/handlebars/README.markdown
  13. +0 −139 node_modules/grunt/node_modules/handlebars/bin/handlebars
  14. +0 −14 node_modules/grunt/node_modules/handlebars/lib/handlebars.js
  15. +0 −92 node_modules/grunt/node_modules/handlebars/lib/handlebars/base.js
  16. +0 −103 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/ast.js
  17. +0 −27 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/base.js
  18. +0 −756 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/compiler.js
  19. +0 −7 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/index.js
  20. +0 −472 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/parser.js
  21. +0 −137 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/printer.js
  22. +0 −13 node_modules/grunt/node_modules/handlebars/lib/handlebars/compiler/visitor.js
  23. +0 −66 node_modules/grunt/node_modules/handlebars/lib/handlebars/utils.js
  24. +0 −66 node_modules/grunt/node_modules/handlebars/lib/handlebars/vm.js
  25. +0 −4 node_modules/grunt/node_modules/handlebars/node_modules/optimist/.npmignore
  26. +0 −21 node_modules/grunt/node_modules/handlebars/node_modules/optimist/LICENSE
  27. +0 −474 node_modules/grunt/node_modules/handlebars/node_modules/optimist/README.markdown
  28. +0 −10 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/bool.js
  29. +0 −7 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/boolean_double.js
  30. +0 −7 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/boolean_single.js
  31. +0 −8 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/default_hash.js
  32. +0 −7 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/default_singles.js
  33. +0 −8 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/divide.js
  34. +0 −20 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/line_count.js
  35. +0 −29 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/line_count_options.js
  36. +0 −29 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/line_count_wrap.js
  37. +0 −4 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/nonopt.js
  38. +0 −2 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/reflect.js
  39. +0 −3 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/short.js
  40. +0 −11 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/string.js
  41. +0 −19 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/usage-options.js
  42. +0 −10 node_modules/grunt/node_modules/handlebars/node_modules/optimist/examples/xup.js
  43. +0 −457 node_modules/grunt/node_modules/handlebars/node_modules/optimist/index.js
  44. +0 −1 node_modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/.npmignore
  45. +0 −70 ...modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/README.markdown
  46. +0 −10 ...dules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/example/center.js
  47. +0 −3 ...modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/example/meat.js
  48. +0 −76 node_modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/index.js
  49. +0 −37 node_modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/package.json
  50. +0 −30 node_modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/test/break.js
  51. +0 −63 ...dules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/test/idleness.txt
  52. +0 −31 node_modules/grunt/node_modules/handlebars/node_modules/optimist/node_modules/wordwrap/test/wrap.js
  53. +0 −43 node_modules/grunt/node_modules/handlebars/node_modules/optimist/package.json
  54. +0 −66 node_modules/grunt/node_modules/handlebars/node_modules/optimist/test/_.js
  55. +0 −2 node_modules/grunt/node_modules/handlebars/node_modules/optimist/test/_/argv.js
  56. +0 −3 node_modules/grunt/node_modules/handlebars/node_modules/optimist/test/_/bin.js
  57. +0 −304 node_modules/grunt/node_modules/handlebars/node_modules/optimist/test/parse.js
  58. +0 −256 node_modules/grunt/node_modules/handlebars/node_modules/optimist/test/usage.js
  59. +0 −23 node_modules/grunt/node_modules/handlebars/package.json
  60. +0 −3 node_modules/grunt/node_modules/jshint/.gitignore
  61. +0 −73 node_modules/grunt/node_modules/jshint/example/config.json
  62. +0 −18 node_modules/grunt/node_modules/jshint/example/reporter.js
  63. +0 −1 node_modules/grunt/node_modules/jshint/packages/jshint/.gitignore
  64. +0 −63 node_modules/grunt/node_modules/jshint/packages/jshint/CHANGELOG
  65. +0 −22 node_modules/grunt/node_modules/jshint/packages/jshint/Makefile
  66. +0 −57 node_modules/grunt/node_modules/jshint/packages/jshint/env/jsc.js
  67. +0 −29 node_modules/grunt/node_modules/jshint/packages/jshint/env/jsc.sh
  68. +0 −75 node_modules/grunt/node_modules/jshint/packages/jshint/env/rhino.js
  69. +0 −181 node_modules/grunt/node_modules/jshint/packages/jshint/env/wsh.js
  70. +0 −82 node_modules/grunt/node_modules/jshint/packages/jshint/tests/helpers/coveraje.js
  71. +0 −7 node_modules/grunt/node_modules/jshint/packages/jshint/tests/helpers/fixture.js
  72. +0 −148 node_modules/grunt/node_modules/jshint/packages/jshint/tests/helpers/testhelper.js
  73. +0 −18 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/backbone.js
  74. +0 −38 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/jquery.js
  75. +0 −1,158 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/libs/backbone.js
  76. +0 −9,304 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/libs/jquery-1.7.js
  77. +0 −6,082 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/libs/prototype-17.js
  78. +0 −72 node_modules/grunt/node_modules/jshint/packages/jshint/tests/regression/prototype.js
  79. +0 −342 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/core.js
  80. +0 −549 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/envs.js
  81. +0 −28 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/asi.js
  82. +0 −12 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/boss.js
  83. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/caseExpressions.js
  84. +0 −72 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/const.js
  85. +0 −8 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/curly.js
  86. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/curly2.js
  87. +0 −23 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/emptystmt.js
  88. +0 −10 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/eqeqeq.js
  89. +0 −15 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/es5.funcexpr.js
  90. +0 −78 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/es5.js
  91. +0 −15 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/forin.js
  92. +0 −8 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/functionScopedOptions.js
  93. +0 −17 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/gh-226.js
  94. +0 −15 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/immed.js
  95. +0 −8 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/indent.js
  96. +0 −9 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/jslintOptions.js
  97. +0 −6 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/lastsemic.js
  98. +0 −21 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/latedef.js
  99. +0 −46 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/latedefundef.js
  100. +0 −19 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/laxbreak.js
  101. +0 −17 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/laxcomma.js
  102. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/loopfunc.js
  103. +0 −3 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/maxlen.js
  104. +0 −8 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/missingspaces.js
  105. +0 −5 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/newcap.js
  106. +0 −7 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/noarg.js
  107. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/onevar.js
  108. +0 −37 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/protoiterator.js
  109. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/redef.js
  110. +0 −40 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/return.js
  111. +0 −43 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/scope.js
  112. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/scripturl.js
  113. +0 −7 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/smarttabs.js
  114. +0 −59 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/strict_incorrect.js
  115. +0 −17 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/strict_this.js
  116. +0 −18 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/strict_this2.js
  117. +0 −9 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/strict_violations.js
  118. +0 −16 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/strings.js
  119. +0 −11 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/supernew.js
  120. +0 −40 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/switchFallThrough.js
  121. +0 −24 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/trycatch.js
  122. +0 −24 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/undef.js
  123. +0 −8 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/undef_func.js
  124. +0 −6 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/undefstrict.js
  125. +0 −66 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/fixtures/white.js
  126. +0 −1,061 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/options.js
  127. +0 −318 node_modules/grunt/node_modules/jshint/packages/jshint/tests/unit/parser.js
  128. +0 −20 node_modules/grunt/node_modules/jshint/test/system/genfiles
  129. +0 −34 node_modules/grunt/node_modules/jshint/test/system/perf.js
  130. +0 −185 node_modules/grunt/node_modules/jshint/test/unit/cli.js
  131. +0 −174 node_modules/grunt/node_modules/jshint/test/unit/hint.js
  132. +0 −4 node_modules/grunt/node_modules/uglify-js/.gitignore
  133. +0 −1 node_modules/grunt/node_modules/underscore/.gitignore
  134. +0 −12 node_modules/grunt/test/grunt/tasks/concat_test.js
  135. +0 −44 node_modules/grunt/test/grunt/tasks/misc_test.js
@@ -1,35 +0,0 @@
-/*
- * grunt
- * https://github.com/cowboy/grunt
- *
- * Copyright (c) 2012 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- * http://benalman.com/about/license/
- */
-
-// ============================================================================
-// TASKS
-// ============================================================================
-
-task.registerBasicTask('concat', 'Concatenate files.', function(data, name) {
- // Concat specified files.
- var files = file.expand(data);
- file.write(name, task.helper('concat', files));
-
- // Fail task if errors were logged.
- if (task.hadErrors()) { return false; }
-
- // Otherwise, print a success message.
- log.writeln('File "' + name + '" created.');
-});
-
-// ============================================================================
-// HELPERS
-// ============================================================================
-
-// Concat source files.
-task.registerHelper('concat', function(files) {
- return files ? files.map(function(filepath) {
- return task.directive(filepath, file.read);
- }).join('\n') : '';
-});
@@ -1,89 +0,0 @@
-/*
- * grunt
- * https://github.com/cowboy/grunt
- *
- * Copyright (c) 2012 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- * http://benalman.com/about/license/
- */
-
-var jshint = require('jshint').JSHINT;
-
-// ============================================================================
-// TASKS
-// ============================================================================
-
-task.registerBasicTask('lint', 'Validate files with JSHint.', function(data, name) {
- // Get flags and globals.
- var options = config('jshint.options');
- var globals = config('jshint.globals');
-
- // Display flags and globals.
- verbose.writeflags(options, 'Options');
- verbose.writeflags(globals, 'Globals');
-
- // Lint specified files.
- file.expand(data).forEach(function(filepath) {
- task.helper('lint', file.read(filepath), options, globals, filepath);
- });
-
- // Fail task if errors were logged.
- if (task.hadErrors()) { return false; }
-
- // Otherwise, print a success message.
- log.writeln('Lint free.');
-});
-
-// ============================================================================
-// HELPERS
-// ============================================================================
-
-// Lint source code with JSHint.
-task.registerHelper('lint', function(src, options, globals, extraMsg) {
- // JSHint sometimes modifies objects you pass in, so clone them.
- options = underscore.clone(options);
- globals = underscore.clone(globals);
- // Enable/disable debugging if option explicitly set.
- if (option('debug') !== undefined) {
- options.devel = options.debug = option('debug');
- }
- var msg = 'Linting' + (extraMsg ? ' ' + extraMsg : '') + '...';
- verbose.write(msg);
- // Lint.
- var result = jshint(src, options || {}, globals || {});
- // Attempt to work around JSHint erroneously reporting bugs.
- if (!result) {
- jshint.errors = jshint.errors.filter(function(o) {
- // This is not a bug: exports = module.exports = something
- // https://github.com/jshint/jshint/issues/289
- return o && !(o.reason === 'Read only.' && /\bexports\s*[=]/.test(o.evidence));
- });
- // If no errors are left, JSHint actually succeeded.
- result = jshint.errors.length === 0;
- }
- if (result) {
- // Success!
- verbose.ok();
- } else {
- // Something went wrong.
- verbose.or.write(msg);
- log.error();
- // Iterate over all errors.
- jshint.errors.forEach(function(e) {
- // Sometimes there's no error object.
- if (!e) { return; }
- var pos;
- if (e.evidence) {
- // Manually increment errorcount since we're not using log.error().
- fail.errorcount++;
- // Descriptive code error.
- pos = '['.red + ('L' + e.line).yellow + ':'.red + ('C' + e.character).yellow + ']'.red;
- log.writeln(pos + ' ' + e.reason.yellow).writeln(e.evidence.inverse);
- } else {
- // Generic "Whoops, too many errors" error.
- log.error(e.reason);
- }
- });
- log.writeln();
- }
-});
@@ -1,89 +0,0 @@
-/*
- * grunt
- * https://github.com/cowboy/grunt
- *
- * Copyright (c) 2012 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- * http://benalman.com/about/license/
- */
-
-var uglifyjs = require('uglify-js');
-var gzip = require('gzip-js');
-
-// ============================================================================
-// TASKS
-// ============================================================================
-
-task.registerBasicTask('min', 'Minify files with UglifyJS.', function(data, name) {
- var files = file.expand(data);
- // Get banner, if specified. It would be nice if UglifyJS supported ignoring
- // all comments matching a certain pattern, like /*!...*/, but it doesn't.
- var banner = task.directive(files[0], function() { return null; });
- if (banner === null) {
- banner = '';
- } else {
- files.shift();
- }
- // Concat specified files. This should really be a single, pre-built (and
- // linted) file, but it supports any number of files.
- var max = task.helper('concat', files);
-
- // Concat banner + minified source.
- var min = banner + task.helper('uglify', max, config('uglify'));
- file.write(name, min);
-
- // Fail task if errors were logged.
- if (task.hadErrors()) { return false; }
-
- // Otherwise, print a success message....
- log.writeln('File "' + name + '" created.');
- // ...and report some size information.
- task.helper('min_max_info', min, max);
-});
-
-// ============================================================================
-// HELPERS
-// ============================================================================
-
-// Minify with UglifyJS.
-// From https://github.com/mishoo/UglifyJS
-task.registerHelper('uglify', function(src, options) {
- if (!options) { options = {}; }
- var jsp = uglifyjs.parser;
- var pro = uglifyjs.uglify;
- var ast, pos;
- var msg = 'Minifying with UglifyJS...';
- verbose.write(msg);
- try {
- ast = jsp.parse(src);
- ast = pro.ast_mangle(ast, options.mangle || {});
- ast = pro.ast_squeeze(ast, options.squeeze || {});
- src = pro.gen_code(ast, options.codegen || {});
- // Success!
- verbose.ok();
- return src;
- } catch(e) {
- // Something went wrong.
- verbose.or.write(msg);
- pos = '['.red + ('L' + e.line).yellow + ':'.red + ('C' + e.col).yellow + ']'.red;
- log.error().writeln(pos + ' ' + (e.message + ' (position: ' + e.pos + ')').yellow);
- fail.warn('UglifyJS found errors.', 10);
- }
-});
-
-// Return gzipped source.
-task.registerHelper('gzip', function(src) {
- return src ? gzip.zip(src, {}) : '';
-});
-
-// Output some size info about a file.
-task.registerHelper('min_max_info', function(min, max) {
- var gzipSize = String(task.helper('gzip', min).length);
- log.writeln('Uncompressed size: ' + String(max.length).green + ' bytes.');
- log.writeln('Compressed size: ' + gzipSize.green + ' bytes gzipped (' + String(min.length).green + ' bytes minified).');
-});
-
-// Strip /*...*/ comments from source.
-task.registerHelper('strip_comments', function(src) {
- return src.replace(/\/\*[\s\S]*?\*\/\n*/g, '\n');
-});
@@ -1,61 +0,0 @@
-/*
- * grunt
- * https://github.com/cowboy/grunt
- *
- * Copyright (c) 2012 "Cowboy" Ben Alman
- * Licensed under the MIT license.
- * http://benalman.com/about/license/
- */
-
-var handlebars = require('handlebars');
-var template = grequire('template');
-
-// ============================================================================
-// HELPERS
-// ============================================================================
-
-// Get a config property. Most useful as a directive like <config:foo.bar>.
-task.registerHelper('config', config);
-
-// Read a JSON file. Most useful as a directive like <json:package.json>.
-task.registerHelper('json', file.readJson.bind(file));
-
-// Return the given source coude with any leading banner comment stripped.
-task.registerHelper('strip_banner', template.stripBanner);
-
-// Get a source file's contents with any leading banner comment stripped.
-task.registerHelper('file_strip_banner', function(filepath) {
- return template.stripBanner(file.read(filepath));
-});
-
-// Generate banner from template.
-task.registerHelper('banner', function(prop) {
- if (!prop) { prop = 'meta.banner'; }
- var banner, obj;
- var template = config(prop);
- if (template) {
- // Read config object first, to ensure that verbose-mode JSON reading via
- // <json> directive doesn't interrupt future logging.
- obj = config();
- // Now, log.
- verbose.write('Generating banner...');
- try {
- // Compile and run template, passing in config object as the data source.
- banner = handlebars.compile(template)(obj) + '\n';
- verbose.ok();
- } catch(e) {
- banner = '';
- verbose.error();
- log.error(e.message);
- fail.warn('Handlebars found errors.', 11);
- }
- } else {
- fail.warn('No "' + prop + '" banner template defined.', 11);
- banner = '';
- }
- return banner;
-});
-
-// Banner helpers.
-handlebars.registerHelper('today', template.formatToday);
-handlebars.registerHelper('join', template.joinItems);
Oops, something went wrong.

0 comments on commit 6698b3b

Please sign in to comment.