Your page will magically change, as you save your files!
Create a package.json
$ cd /path/to/your/working/folder/
$ npm initInstall grunt-cli globally (only once).$ npm uninstall -g grunt-cli
$ npm install grunt-cli -gInstall grunt and other packages$ npm install grunt --save-dev
$ npm install grunt-contrib-connect --save-dev
$ npm install grunt-contrib-watch --save-dev
$ npm install grunt-open --save-devI suppose there is at least an index.html and some JavaScript files under js/ folder. I like to use coffee-script to edit my Gruntfile, so here it is a working configurationLoading …. gist https://gist.github.com/fibo/7054215
Now, if you launch$ gruntYour browser will open, and the window will change as soon as you modify your files.
No comments:
Post a Comment