(One time setup)
Clone the repository to THIS_REPOSITORY
Install nodejs (and npm):
On Ubuntu:
sudo apt-add-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
On Mac:
brew install nodejs
Setup requirements:
On Ubuntu:
a. Create an empty folder ~/.npm-packages and a file ~/.npmrc with one line: prefix = ${HOME}/.npm-packages
b. Add export PATH=${HOME}/.npm-packages/bin:${PATH} to ~/.bashrc (Open a new terminal window to reflect this new PATH and)
On Ubuntu and Mac:
c. npm install -g bower grunt-cli
d. cd $THIS_REPOSITORY npm install bower install
(As you're making edits)
cd $THIS_REPOSITORY
Pull a recent version of the repository
grunt serve
At this point, making edits will refresh automatically on your browser. You then commit interesting things, etc.
(When you're ready to build and deploy)
cd $THIS_REPOSITORY
grunt build && rsync -aPvhe ssh --delete dist/* femtable@fenicsproject.net:/home/femtable/femtable.org/
(Danger: Note that the above has a --delete, which means poke through dist/ to make sure things look good before running the command above.)