Skip to content

Commit

Permalink
Refactor, getting rid of JSDocs, documentation lives better outside o…
Browse files Browse the repository at this point in the history
…f src code, also making lots of changes for better usage inside a node.js environment
  • Loading branch information
Taka Kojima committed Feb 5, 2012
1 parent 1846f2c commit d887480
Show file tree
Hide file tree
Showing 43 changed files with 85 additions and 6,857 deletions.
17 changes: 4 additions & 13 deletions Makefile
Expand Up @@ -2,7 +2,7 @@

OVERRIDING=default

SRC_DIR = src
SRC_DIR = lib
TEST_DIR = test

PREFIX = .
Expand Down Expand Up @@ -39,7 +39,7 @@ b=0

all: core node

core: min docs
core: min
@@echo "minion build complete."

minion:
Expand All @@ -53,30 +53,21 @@ minion:
sed 's/@VERSION/'"${VER}"'/' > ${minion};

@@cp ${minion} ${minion_LATEST}
@@cp ${minion} ${PREFIX}/bin/minion.js;

min: minion
@@${COMPILER} ${minion} > ${minion_MIN}

@@cat ${HEADER} ${minion_MIN} | \
sed 's/@DATE/'"${DATE}"'/' | \
sed 's/@VERSION/'"${VER}"'/' > bin/tmp
sed 's/@VERSION/'"${VER}"'/' > tmp

@@mv bin/tmp ${minion_MIN}
@@mv tmp ${minion_MIN}
@@cp ${minion_MIN} ${minion_LATEST_MIN}

docs: minion
node_modules/jsdoc-toolkit/app/run.js -c=${SRC_DIR}/jsdoc-conf.json

size: minion min
@@gzip -c ${minion_MIN} > ${minion_MIN}.gz; \
wc -c ${minion} ${minion_MIN} ${minion_MIN}.gz;
@@rm ${minion_MIN}.gz; \

push_docs: docs
cd gh-pages; git add .; \
git commit -am "updated docs"; \
git push origin gh-pages

node:
@@node make.js
7 changes: 2 additions & 5 deletions bin/minion-cli.js
@@ -1,12 +1,9 @@
#!/usr/bin/env node

minion = require("./minion.js");

var argv = require('optimist').argv;

var method = argv._[0];
var minion = require("../lib/minion.js");

minion.provides("./minion.Interface.js", "minion.Interface");
require("./minion.Interface.js");

minion.require("minion.Interface", function(Interface) {

Expand Down
7 changes: 3 additions & 4 deletions bin/minion.Interface.js
@@ -1,4 +1,3 @@
minion = require('./minion.js');
var fs = require("fs");
var color = require("ansi-color").set;
var jshint = require("jshint").JSHINT;
Expand Down Expand Up @@ -397,14 +396,14 @@ minion.define("minion", {
this.build();
}
}));
}
}
},
// Cleans up any watchers on this._filesToWatch files.
_unwatchFiles : function(){
_unwatchFiles : function() {
for(var i = 0; i < this._filesToWatch.length; i ++) {
var file = this._filesToWatch[i];
fs.unwatchFile(file);
}
}
}

})
Expand Down

0 comments on commit d887480

Please sign in to comment.