Permalink
Browse files

README updated

  • Loading branch information...
1 parent cc01d33 commit 62c75ff74c2906c3e7987e6bec3e0886a7fc3f4c @davglass committed Aug 20, 2010
Showing with 8 additions and 24 deletions.
  1. +8 −24 README.textile
View
@@ -6,41 +6,25 @@ This module includes support for remote script loading via Y.Get.script() and re
See "JSDom Support" below for DOM manipulation.
-h2. Setup this repo
-
-Clone this project, then do this:
-<pre class="console">cd nodejs-yui3/lib
-git clone git://github.com/yui/yui3.git</pre>
-
-You should go into that repo every now and then and do a git pull to keep it up to date with the latest YUI source.
-
-
h2. Node.js
-These tests and examples are all known to be working with latest stable Node.js: v0.1.33
-
All of the examples and tests assume you have @node@ in your path and they are all executable.
-h2. JSDom Support
+h2. Installing - via NPM
-Currently YUI 3 on Node.js supports "JSDom":http://github.com/tmpvar/jsdom
-It also requires my forked "node-htmlparser":http://github.com/davglass/node-htmlparser
-
-Getting it up and running:
+<pre class="console">
+npm install yui3
+</pre>
-Node will automatically look in this directory for include files @~/.node_libraries@
+h2. Installing - as a developer
<pre class="console">
-mkdir ~/.node_libraries
-cd ~/.node_libraries
-wget http://github.com/davglass/jsdom/raw/master/lib/level1/core.js -O jsdom.js
-wget http://github.com/davglass/jsdom/raw/master/lib/browser/index.js -O browser.js
-wget http://github.com/davglass/node-htmlparser/raw/master/node-htmlparser.js
+git clone git://github.com/davglass/nodejs-yui3.git
+make dev
+make link
</pre>
-Now that the libraries are in the right places you can now use the dom related examples.
-
h2. Using the Y.Browser object
To comply with the "no-globals" CommonJS spec, there is no global document or window in this mode.

0 comments on commit 62c75ff

Please sign in to comment.