Skip to content
Browse files

updates

  • Loading branch information...
2 parents cc200ca + d5271a0 commit 490f37e4666829b332469ee475e996ee55119437 @drewlesueur committed Jul 25, 2012
Showing with 29 additions and 50 deletions.
  1. +1 −20 README.md
  2. 0 bin/{poor-module → pm}
  3. +21 −2 index.html
  4. +2 −0 install.sh
  5. +0 −27 modules/modules.coffee
  6. +0 −1 modules/modules.json
  7. +5 −0 modules/peppermint-expressions.json
View
21 README.md
@@ -1,20 +1 @@
-poor-module
-===========
-
-a less than 20 line module system for node.js and the browser.
-
-This is a simple module system for use in node.js and the browser.
-It doesn't try to load files. It just is for defining modules so you don't polute the global scope.
-Almost all code was stolen from @creationix's https://gist.github.com/926811
-
-
-For example use see <a href="http://github.com/drewlesueur/red-yarn">my red-yarn project</a>
-
-
-
-Also included in `bin` is the poor-module executable.
-Link it to /usr/local/bin.
-You can write commands like `pm install rpc`
-So far the available modules are in the `modules/modules.json folder`
-
-
+see http://drewlesueur.github.com/poor-module
View
0 bin/poor-module → bin/pm
File renamed without changes.
View
23 index.html
@@ -43,15 +43,15 @@
<pre>
// this file is index.html
&lt;script src="poor_modules/poor_module.js" /&gt;
-&lt;script src="poor_modules/my_cool_module.js" /&gt;
+&lt;script src="poor_modules/say_hi.js" /&gt;
&lt;script src="main.js" /&gt;
</pre>
</td>
<td>
<pre>
// this file is app.js
require("poor_modules/poor_module.js")
-require("poor_modules/my_cool_module.js")
+require("poor_modules/say_hi.js")
require("main.js")
</pre>
</td>
@@ -101,3 +101,22 @@
<hr />
<h2>command line tool</h2>
+
+<p>
+
+To get it do run
+<pre>
+wget https://raw.github.com/drewlesueur/poor-module/master/bin/pm /usr/local/bin
+chmod 777 /usr/local/bin/pm
+</pre>
+
+</p>
+<p>
+Now, to install a module do
+<pre>
+pm install my_cool_module
+</pre>
+Where <code>my_cool_module</code> is the name of the module
+</p>
+<a href="https://github.com/drewlesueur/poor-module/tree/master/modules">See a list of modules</a>
+
View
2 install.sh
@@ -0,0 +1,2 @@
+wget https://raw.github.com/drewlesueur/poor-module/master/bin/pm /usr/local/bin
+chmod 777 /usr/local/bin/pm
View
27 modules/modules.coffee
@@ -1,27 +0,0 @@
-# coffee modules.coffee > modules.json
-
-modules =
- 'red-yarn':
- name: 'red-yarn'
- dependencies: ['underscore', 'rpc']
- url: 'https://raw.github.com/drewlesueur/red-yarn/master/red-yarn.js'
- 'underscore':
- name: 'underscore'
- url: 'https://raw.github.com/documentcloud/underscore/master/underscore.js'
- 'poor-module': false
- 'rpc':
- name: 'rpc'
- dependencies: ['underscore']
- url: 'https://raw.github.com/drewlesueur/red-yarn/master/rpc.js'
- 'pm':
- name: 'poor-module'
- url: 'https://raw.github.com/drewlesueur/poor-module/master/poor-module.js'
- 'poor-module':
- name: 'poor-module'
- url: 'https://raw.github.com/drewlesueur/poor-module/master/poor-module.js'
- 'peppermint-expressions':
- name: 'peppermint-expressoins'
- url: 'https://raw.github.com/drewlesueur/peppermint-expressions/master/peppermint-expressions.js'
-
-console.log JSON.stringify modules
-
View
1 modules/modules.json
@@ -1 +0,0 @@
-{"red-yarn":{"name":"red-yarn","dependencies":["underscore","rpc"],"url":"https://raw.github.com/drewlesueur/red-yarn/master/red-yarn.js"},"underscore":{"name":"underscore","url":"https://raw.github.com/documentcloud/underscore/master/underscore.js","poor-module":false},"rpc":{"name":"rpc","dependencies":["underscore"],"url":"https://raw.github.com/drewlesueur/red-yarn/master/rpc.js"},"pm":{"name":"poor-module","url":"https://raw.github.com/drewlesueur/poor-module/master/poor-module.js"},"poor-module":{"name":"poor-module","url":"https://raw.github.com/drewlesueur/poor-module/master/poor-module.js"},"peppermint-expressions":{"name":"peppermint-expressoins","url":"https://raw.github.com/drewlesueur/peppermint-expressions/master/peppermint-expressions.js"}}
View
5 modules/peppermint-expressions.json
@@ -0,0 +1,5 @@
+{
+ "name": "peppermint-expressoins",
+ "url": "https://raw.github.com/drewlesueur/peppermint-expressions/master/peppermint-expressions.js"
+
+}

0 comments on commit 490f37e

Please sign in to comment.
Something went wrong with that request. Please try again.