Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.
/ Grunt-Fender Public archive

Grunt to simplify front-end development workflow for Sitecore projects

License

Notifications You must be signed in to change notification settings

norfali/Grunt-Fender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED. NO LONGER MAINTAINED. FORK AT YOUR OWN RISK.

Grunt-Fender - v0.2.3

Grunt to simplify front-end development workflow for Sitecore projects

Getting Started

Requires Grunt ~0.4.0

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins.

Install

Download and add to your project. Open Gruntfile.js, edit the config, npm install, and away you go!

Example Config

{
  "scss_folder" : "scss",
  "css_folder" : "css",
  "img_folder" : "images",
  "js_folder" : "js",
  "project_path" : "D:/TFS2012/Hello World/Foo.HelloWorld.Website",
  "sitecore_path" : "C:/Sitecore/HelloWorld/Website",
  "watch_scss" : [
    "style.scss", 
    "normalize.scss", 
    "print.scss", 
    "ie-master.scss"
  ],
  "watch_coffee" : [
    "project/*.coffee", 
    "app.coffee", 
    "lib.coffee"
  ],
  "copy_js" : [
    "lib.js", 
    "app.js",
    "custom-net.js"
  ],
  "app_js" : [
    "app.coffee"
  ],
  "jsdocs_folder" : "project",
  "jsdocs_folder_output" : "docs",
  "lib_js" : [
    "project/initfoundation.coffee",
    "project/general.coffee",
    "project/mobile.coffee",
    "project/language-toggler.coffee"
  ]
}

Usage

Simply type grunt watch during production, however there a few tasks you may run directly on adhoc basis for example:

  • grunt grunticon: Creates PNG version of SVG images
  • grunt cssmetrics: See how big your compiled CSS files are
  • grunt cssmin: Minify compiled CSS files (files are named to *.min.css)

Current tasks

Release History

  • 0.2.3: Tweaked SASS task for better performance
  • 0.2.2: Replaced grunt-contrib-copy with grunt-sync for better ASPX/ASCX watching & copying
  • 0.2.1: Removed config options from Gruntfile.js
  • 0.2.0: Initial release

Next stages

  • Add growl support for notification
  • SVG optimisation

Thanks

  • Authors of Grunt plugins mentioned above
  • NodeJS
  • Grunt

Legal

Feel free to use, modify, etc but this is still under development, so use at your own risk. :)

Unless required by applicable law or agreed to in writing, this work is published on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

About

Grunt to simplify front-end development workflow for Sitecore projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published