Permalink
Browse files

Take out the papers and the trash (from build/)

  • Loading branch information...
1 parent 7c23b77 commit 36623de76c6569088d441cbfbca37c0586f19354 @rwaldron rwaldron committed Jun 4, 2012
Showing with 0 additions and 7,818 deletions.
  1. +0 −79 build/freq.js
  2. +0 −37 build/jshint-check.js
  3. +0 −4,359 build/lib/jshint.js
  4. +0 −1,315 build/lib/parse-js.js
  5. +0 −1,666 build/lib/process.js
  6. +0 −22 build/lib/squeeze-more.js
  7. +0 −19 build/post-compile.js
  8. +0 −36 build/sizer.js
  9. +0 −285 build/uglify.js
View
@@ -1,79 +0,0 @@
-#! /usr/bin/env node
-
-var fs = require( "fs" );
-
-function isEmptyObject( obj ) {
- for ( var name in obj ) {
- return false;
- }
- return true;
-}
-function extend( obj ) {
- var dest = obj,
- src = [].slice.call( arguments, 1 );
-
- Object.keys( src ).forEach(function( key ) {
- var copy = src[ key ];
-
- for ( var prop in copy ) {
- dest[ prop ] = copy[ prop ];
- }
- });
-
- return dest;
-};
-
-function charSort( obj, callback ) {
-
- var ordered = [],
- table = {},
- copied;
-
- copied = extend({}, obj );
-
- (function order() {
-
- var largest = 0,
- c;
-
- for ( var i in obj ) {
- if ( obj[ i ] >= largest ) {
- largest = obj[ i ];
- c = i;
- }
- }
-
- ordered.push( c );
- delete obj[ c ];
-
- if ( !isEmptyObject( obj ) ) {
- order();
- } else {
- ordered.forEach(function( val ) {
- table[ val ] = copied[ val ];
- });
-
- callback( table );
- }
-
- })();
-}
-function charFrequency( src, callback ) {
- var obj = {};
-
- src.replace(/[^\w]|\d/gi, "").split("").forEach(function( c ) {
- obj[ c ] ? ++obj[ c ] : ( obj[ c ] = 1 );
- });
-
- return charSort( obj, callback );
-}
-
-
-charFrequency( fs.readFileSync( "dist/jquery.min.js", "utf8" ), function( obj ) {
- var chr;
-
- for ( chr in obj ) {
- console.log( " " + chr + " " + obj[ chr ] );
- }
-});
-
View
@@ -1,37 +0,0 @@
-var jshint = require("./lib/jshint").JSHINT,
- src = require("fs").readFileSync("dist/jquery.js", "utf8"),
- config = {
- evil: true,
- browser: true,
- wsh: true,
- eqnull: true,
- expr: true,
- curly: true,
- trailing: true,
- undef: true,
- smarttabs: true,
- predef: [
- "define",
- "DOMParser"
- ],
- maxerr: 100
- };
-
-if ( jshint( src, config ) ) {
- console.log("JSHint check passed.");
-} else {
-
- console.log( "JSHint found errors." );
-
- jshint.errors.forEach(function( e ) {
- if ( !e ) { return; }
-
- var str = e.evidence ? e.evidence : "",
- character = e.character === true ? "EOL" : "C" + e.character;
-
- if ( str ) {
- str = str.replace( /\t/g, " " ).trim();
- console.log( " [L" + e.line + ":" + character + "] " + e.reason + "\n " + str + "\n");
- }
- });
-}
Oops, something went wrong.

0 comments on commit 36623de

Please sign in to comment.