I looked all over for some information on how to basically start a quick prototype server. This is what I wanted to do.
- Watch any file I change (so basically, exactly how LiveReload and CodeKit work) and refresh the screen
- Compile Sass (in a consistent, declarable format [compressed or whatever])
- Run a static server so I don't have to mess with VirtualHosts or explain to another front-end developer how to run my prototype.
So here you go, Internet. This is some very general purpose stuff that you should be able to figure out (even if this Node stuff leaves you scratching your head a lot of the time [like it does me]).
To install new Grunt modules, do it in the format ...
$ npm install [module-name] --save-dev
... which will add new lines to the devDependencies
section of the packages.json
file in a similar way that running pip install [something]
and then pip freeze | requirements.txt
does for Python projects.
- Getting started
- Configuring tasks
- Sample Gruntfile (This was the most helpful thing I read.)
- 1000x this! (This is how I figured out how to get the server and the
watch
command to work at the same time.)
This is a Solutions Log post.