Browse files

Release 1.0.4.

  • Loading branch information...
karthikv committed Nov 24, 2012
1 parent 5fdac62 commit 02b2ed00d3b459d6d5f7b317b64cc69a80baaa30
Showing with 9 additions and 1 deletion.
  1. +6 −0
  2. +2 −0
  3. +1 −1 package.json
@@ -1,4 +1,10 @@
+1.0.4 / 2012-11-23
+ * Fix compilation output bug that doesn't properly create subdirectories when running compile with both the -o and -r options.
+ * Add output option to serve command when using the -c/--compile flag. Addresses issue #29.
1.0.3 / 2012-11-09
@@ -171,6 +171,8 @@ http://localhost:3000/css/script.js would serve ./js/script.js
### Options
Compile: `nodefront serve -c/--compile` will run `nodefront compile -w/--watch` simultaneously. This allows you to modify files that need to be compiled and immediately see the updates in your browser.
+Output: `nodefront serve -o/--output [directory]` should be specified only if the `-c/--compile` option is used. This will output all compiled files into the given output directory specified by [directory]. If not provided, this defaults to the current directory. Note that this is simply done by passing [directory] to the `-o/--output` option of the `nodefront compile` command.
Live: `nodefront serve -l/--live` will monitor each HTML page that is served to the browser and all of its CSS/JS dependencies. If the page's source itself or one of its scripts changes, the browser will automatically refresh. If a CSS stylesheet is modified, it will be reloaded without refreshing via a cache-busting query string. This allows for live development with immediate feedback and circumvents the need to keep reloading the browser manually.
For those who are interested in the more technical aspects of live mode, the server that is created automatically injects web socket code, courtesy of, into HTML pages. This allows for communication between the client and the Node.js server. Whenever a file is modified, the server notifies the client via the established socket connection. The client then assesses whether this file affects the current page and takes appropriate actions.
@@ -2,7 +2,7 @@
"name": "nodefront",
"description": "A node-powered rapid front-end development utility",
"author": "Karthik Viswanathan <>",
- "version": "1.0.3",
+ "version": "1.0.4",
"homepage": "",
"bin": {
"nodefront": "./nodefront.js"

0 comments on commit 02b2ed0

Please sign in to comment.