Skip to content

Instantly share code, notes, and snippets.

@rabellamy
Created March 2, 2015 17:17
Show Gist options
  • Save rabellamy/f403fd722f6d6277e9cb to your computer and use it in GitHub Desktop.
Save rabellamy/f403fd722f6d6277e9cb to your computer and use it in GitHub Desktop.

Getting Started - Theming

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

To begin theming

  • from sites/all/themes/contrib/glic run gulp 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.

DO NOT COMMIT THIS SNIPPET TO THE REPOSITORY

To enable live reload: Go to /admin/appearance/settings/nyc_theme, under Enable Livereload and select Aurora Default Port and click Save Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment