Skip to content

Commit 02b2ed0

Browse files
committed
Release 1.0.4.
1 parent 5fdac62 commit 02b2ed0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
1.0.4 / 2012-11-23
3+
==================
4+
5+
* Fix compilation output bug that doesn't properly create subdirectories when running compile with both the -o and -r options.
6+
* Add output option to serve command when using the -c/--compile flag. Addresses issue #29.
7+
28
1.0.3 / 2012-11-09
39
==================
410

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ http://localhost:3000/css/script.js would serve ./js/script.js
171171
### Options
172172
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.
173173

174+
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.
175+
174176
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.
175177

176178
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 socket.io, 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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nodefront",
33
"description": "A node-powered rapid front-end development utility",
44
"author": "Karthik Viswanathan <[email protected]>",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"homepage": "http://karthikv.github.com/nodefront/",
77
"bin": {
88
"nodefront": "./nodefront.js"

0 commit comments

Comments
 (0)