Permalink
Browse files

Refactor, getting rid of JSDocs, documentation lives better outside o…

…f src code, also making lots of changes for better usage inside a node.js environment
  • Loading branch information...
1 parent 1846f2c commit d887480cc3da8a7b96857f6e85c017f6bcf6ad3c Taka Kojima committed Feb 5, 2012
Showing with 85 additions and 6,857 deletions.
  1. +4 −13 Makefile
  2. +2 −5 bin/minion-cli.js
  3. +3 −4 bin/minion.Interface.js
  4. +0 −1,456 bin/minion.js
  5. +2 −2 dist/minion-1.4.4.js
  6. +2 −2 dist/minion-1.4.4.min.js
  7. +2 −2 dist/minion-latest.js
  8. +2 −2 dist/minion-latest.min.js
  9. 0 { → docs}/getting_started.md
  10. 0 {bin → docs}/sample.conf.json
  11. +0 −1 gh-pages
  12. +5 −9 {src → lib}/minion.baseclass.js
  13. +4 −24 {src → lib}/minion.class.js
  14. +1 −1 {src → lib}/minion.header.js
  15. +16 −0 lib/minion.js
  16. +14 −80 {src → lib}/minion.main.js
  17. +12 −0 lib/minion.node.js
  18. +0 −20 {src → lib}/minion.notifications.js
  19. +1 −12 {src → lib}/minion.singleton.js
  20. +0 −6 {src → lib}/minion.static.js
  21. +1 −0 lib/version.txt
  22. +7 −5 package.json
  23. +7 −29 readme.md
  24. +0 −27 src/jsdoc-conf.json
  25. +0 −191 src/minion-jsdoc-template/README.md
  26. +0 −17 src/minion-jsdoc-template/allclasses.tmpl
  27. +0 −58 src/minion-jsdoc-template/allfiles.tmpl
  28. +0 −599 src/minion-jsdoc-template/class.tmpl
  29. +0 −647 src/minion-jsdoc-template/class.tmpl_old
  30. +0 −9 src/minion-jsdoc-template/docsindex.tmpl
  31. +0 −2 src/minion-jsdoc-template/header.html
  32. +0 −65 src/minion-jsdoc-template/index.tmpl
  33. +0 −310 src/minion-jsdoc-template/js/htmlparser.js
  34. +0 −508 src/minion-jsdoc-template/js/jsdom.js
  35. +0 −1,092 src/minion-jsdoc-template/js/mootools-1.2.4-core-server.js
  36. +0 −419 src/minion-jsdoc-template/js/showdown.js
  37. +0 −34 src/minion-jsdoc-template/js/showdown_license.txt
  38. +0 −533 src/minion-jsdoc-template/publish.js
  39. +0 −247 src/minion-jsdoc-template/static/blue.css
  40. +0 −266 src/minion-jsdoc-template/static/default.css
  41. +0 −35 src/minion-jsdoc-template/symbol.tmpl
  42. +0 −90 src/minion-jsdoc-template/symbolindex.tmpl
  43. +0 −35 src/minion-jsdoc-template/userdoc.tmpl
View
@@ -2,7 +2,7 @@
OVERRIDING=default
-SRC_DIR = src
+SRC_DIR = lib
TEST_DIR = test
PREFIX = .
@@ -39,7 +39,7 @@ b=0
all: core node
-core: min docs
+core: min
@@echo "minion build complete."
minion:
@@ -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
View
@@ -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) {
View
@@ -1,4 +1,3 @@
-minion = require('./minion.js');
var fs = require("fs");
var color = require("ansi-color").set;
var jshint = require("jshint").JSHINT;
@@ -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);
- }
+ }
}
})
Oops, something went wrong.

0 comments on commit d887480

Please sign in to comment.