- install node.js http://nodejs.org/download/
cd sites/all/themes/contrib/glic/
sudo npm install
sudo npm install -g bower
(might need to reload/restart shell)bower install
rbenv install 2.0.0-p451
(https://github.com/sstephenson/rbenv)gem install bundle
bundle install
Warning some of the dependencies that get installed in the node_modules and .vendor directories contain .info files, Drupal does not like this especially when clearing your cache. To mitigate this run (from the glic directory):
find ./node_modules ./.vendor -name "*.info" -delete
- from
sites/all/themes/contrib/glic
rungulp server
- Gulp.js handles all task running (Sass compiling, JS linting, etc.)
Every time you run gulp server, you will get new ip addresses for your js files:
<script src='//192.168.1.2:3000/socket.io/socket.io.js'></script>
<script>var ___socket___ = io.connect('http://192.168.1.2:3000');</script>
<script src='//192.168.1.2:3001/client/browser-sync-client.0.7.4.js'></script>
Copy these 3 lines and add them to the html.tpl.php, right before the closing </body>
tag.
To enable live reload: Go to /admin/appearance/settings/nyc_theme, under Enable Livereload and select Aurora Default Port and click Save Configuration