-
You need to have Grunt installed, nodejs and Compass
-
Go to the theme folder and do a npm install to build the grunt necessary files.
-
Then grunt to keep the css updated and javascript minified.
sudo rm -rf node_modules && npm cache clean && npm i
Version: 1.0
Jonas Krat ( krat.dk )
Based on Drupal 7 Starter Theme. Uses Compass/SCSS with Modernizr and Normalize.css, and Grunt for all tasks.
The theme is setup to use Grunt to compile Compass/SCSS, lint, concatenate and minify JavaScript (with source maps), optimize images, and LiveReload the browser (with extension), with flexibility to add any additional tasks via the Gruntfile. Alternatively, you can use CodeKit or whatever else you prefer to compile the SCSS and manage the JavaScript.
Change the scss/style.scss
intro block to your theme information. Open the theme directory in terminal and run npm install
to pull in all Grunt dependencies. Run grunt
to execute tasks. Code as you will. If you have the LiveReload browser extension, it will reload after any SCSS or JS changes. To optimize images, run grunt imagemin
.
- Compile
scss/style.scss
tostyle.css
(all paths defined in config.rb for Compass) - Concatenate and minify all plugins in
js/vendor
andjs/source/plugins.js
tojs/plugins.min.js
- Minify
js/source/main.js
tojs/main.min.js
- ??
- Profit
The theme includes deployments via grunt-rsync. The Gruntfile includes setups for staging and production - edit your paths and host, then run grunt rsync:staging
or grunt rsync:production
to deploy your files via rsync.
- Normalized stylesheet for cross-browser compatibility using Normalize.css version 2 (IE8+ only)
- Easy to customize
- Flexible grid from Chris Coyier
- Media Queries for mobile and tablets ready to populate
- Compass & SCSS with plenty of mixins ready to go
- Much much more
- initial version
Without these projects, this Drupal Starter Theme wouldn't be where it is today.