<repo_name>StudentLifeMarketingAndDesign/annual-report-2013<file_sep>/Gruntfile.js
module.exports = function(grunt) {

  var globalConfig = {
    themeDir: 'themes/annual-report'
  };

  // Project configuration.
  grunt.initConfig({
    globalConfig: globalConfig,
    pkg: grunt.file.readJSON('package.json'),

    sass: {
      dist: {
        files: {
          '<%=globalConfig.themeDir %>/css/master.css' : '<%=globalConfig.themeDir %>/scss/master.scss',
          '<%=globalConfig.themeDir %>/css/editor.css' : 'annual-report-project/scss/editor.scss'
        },                  // Target
        options: {              // Target options
          style: 'compressed'
        }
      }
    },
    //concat all the files into the build folder

    concat: {
      js:{
        src: [
          'division-bar/js/division-bar.js',
          'annual-report-project/bower_components/bootstrap/js/affix.js',
          'annual-report-project/bower_components/bootstrap/js/transition.js',
          'annual-report-project/bower_components/bootstrap/js/collapse.js',
          'annual-report-project/bower_components/isotope/dist/isotope.pkgd.js',
          'annual-report-project/js/plugins/jquery-scrollto.js',
          'annual-report-project/bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js',
          'annual-report-project/js/plugins/socialcount.min.js',
          'annual-report-project/js/plugins/ajaxify-html5.js',
          'annual-report-project/js/plugins/jquery.fitvids.js',
          'annual-report-project/js/main.js',
          '<%=globalConfig.themeDir %>/js/app.js'
        ],
        dest: '<%=globalConfig.themeDir %>/build/build.src.js'
      }
    },

    //minify those concated files
    //toggle mangle to leave variable names intact

    uglify: {
      my_target:{
        files:{
        '<%=globalConfig.themeDir %>/build/build.js': ['<%=globalConfig.themeDir %>/build/build.src.js'],
        }
      }
    },

    watch: {
      scripts: {
        files: ['<%=globalConfig.themeDir %>/js/*.js', 
                '<%=globalConfig.themeDir %>/js/**/*.js',
                'annual-report-project/js/*.js', 
                'annual-report-project/js/**/*.js', 
        ],
        tasks: ['concat', 'uglify'],
        options: {
          spawn: true,
        }
      },
      css: {
        files: ['<%=globalConfig.themeDir %>/scss/*.scss',
                '<%=globalConfig.themeDir %>/scss/**/*.scss',
                '<%=globalConfig.themeDir %>/scss/**/**/*.scss',
                'annual-report-project/scss/*.scss',
                'annual-report-project/scss/**/*.scss',
                'annual-report-project/scss/**/**/*.scss',
                ],
        tasks: ['sass'],
        options: {
          spawn: true,
        }
      }
    },

  });

  // Load the plugin that provides the "uglify" task.
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-sass');
  //grunt.loadNpmTasks('grunt-contrib-imagemin');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task(s).
  // Note: order of tasks is very important
  grunt.registerTask('default', ['sass', 'concat', 'uglify', 'watch']);

};
<file_sep>/mysite/_config.php
<?php

global $project;
$project = 'mysite';

global $database;
$database = 'annualreport13';
 
// Use _ss_environment.php file for configuration
require_once("conf/ConfigureFromEnv.php");
MySQLDatabase::set_connection_charset('utf8');
// add a button to remove formatting
HtmlEditorConfig::get('cms')->insertButtonsBefore(
	'styleselect',
	'removeformat'
);

// tell the button which tags it may remove
HtmlEditorConfig::get('cms')->setOption(
	'removeformat_selector',
	'b,strong,em,i,span,ins'
);

//remove font->span conversion

HtmlEditorConfig::get('cms')->setOption(
	'convert_fonts_to_spans', 'false,'
);

HtmlEditorConfig::get('cms')->setOptions(array(
	'extended_valid_elements' => "img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|usemap],#iframe[src|name|width|height|align|frameborder|marginwidth|marginheight|scrolling],object[width|height|data|type],param[name|value],map[class|name|id],area[shape|coords|href|target|alt],script[language|type|src]",
));
// Set the site locale
i18n::set_locale('en_US');

if(Director::isLive()) {
	Director::forceSSL();
}
