
A starter theme for Drupal. It's pretty light. It's made to be cloned and then hacked, please don't use me as a base theme!
A Ruby Sass version of this theme can be found on the branch ruby-sass.
Make sure you have npm, bower and grunt-cli installed
$ brew install node
$ npm install -g grunt-cli
$ npm install -g bowerThen install the theme's dependencies
$ npm install
$ bower installIf the dependencies for a project change, you can update them with:
$ npm update
$ bower updateYou can also enable sourcemaps and full tracebacks on error in Gruntfile.js
If you wish to rename windup to a different name (which you probably do), YMMV but you can try:
$ grep -rl windup * | xargs sed -i .bk 's/windup/mytheme/g'
$ rm *.bkand then rename the files listed by
find . -not -path '*/.*/*' -not -name '.*' -name '*windup*'$ grunt$ grunt watchThis task will automatically compile Sass when changes are detected in the .scss files.
If you're using grunt watch and click the LiveReload button, your browser will refresh automatically when Grunt spots a change to your sass files.
Windup uses Autoprefixer to automatically add browser prefixes to your css properties based on your configuration. By default, autoprefixer is set to support the last 3 versions of browsers, and IE9 and up. You can modify this within Gruntfile.js using the the syntax documented on the browserlist plugin page.
$ grunt wiredepThis will wire the Bower components specified in bower.json into windup.info and _vendor.scss (See below).
This will add your externally obtained JavaScript and CSS, as well as all it's necessary dependencies, into windup.info
$ bower install <package> --save
$ grunt wiredepSass files will be added into scss/_vendor.scss
$ bower install susy --save
$ grunt wiredepWhere is a registered package, GitHub shorthand (e.g. " desandro/masonry"), Git endpoint (e.g. "git://github.com/user/package.git") or a URL (e.g. "http://example.com/script.js").
You can also edit bower.json directly.
Template suggestions across all core (Node, User, Taxonomy Term and Comment) and Entity API defined entity types have been normalised to the following:
<entity type>
<entity type>__view_mode__<view mode>
<entity_type>__<bundle>
<entity_type>__<bundle>__<view mode>
<entity_type>__<entity id>
<entity_type>__<entity id>__<view mode>
There is one exception to this. The core user entity, uses "user-profile" as the entity type for template suggestions instead of "user".
The following classes can be found on all the above rendered entities:
<entity type> <entity type>-<id> type-<bundle> view-mode-<view mode>
These are typically used for getting Grunt plugins. Either add to package.json or run:
$ npm install <module> --save-dev