bonethug 0.0.73 → 0.0.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +18 -63
- data/TODO.txt +3 -2
- data/config/deploy.rb +31 -30
- data/lib/bonethug/cli.rb +64 -17
- data/lib/bonethug/installer.rb +3 -3
- data/lib/bonethug/syncer.rb +113 -0
- data/lib/bonethug/utils.rb +23 -23
- data/lib/bonethug/version.rb +2 -2
- data/lib/bonethug.rb +1 -0
- data/skel/project_types/drupal/composer.json +359 -20
- data/skel/project_types/drupal/drupal-console +3 -0
- data/skel/project_types/drupal/lib/boris.php +7 -0
- data/skel/project_types/drupal/lib/drupal_bootstrap.php +13 -0
- data/skel/project_types/drupal/lib/drupal_flush_cache.php +5 -0
- data/skel/project_types/drupal6/composer.json +359 -20
- data/skel/project_types/drupal6/drupal-console +3 -0
- data/skel/project_types/drupal6/lib/boris.php +7 -0
- data/skel/project_types/drupal6/lib/drupal_bootstrap.php +13 -0
- data/skel/project_types/drupal6/lib/drupal_flush_cache.php +5 -0
- data/skel/project_types/drupal7/composer.json +347 -8
- data/skel/project_types/drupal7/drupal-console +3 -0
- data/skel/project_types/drupal7/lib/boris.php +7 -0
- data/skel/project_types/drupal7/lib/drupal_bootstrap.php +13 -0
- data/skel/project_types/drupal7/lib/drupal_flush_cache.php +5 -0
- data/skel/project_types/drupal8/composer.json +359 -20
- data/skel/project_types/drupal8/drupal-console +3 -0
- data/skel/project_types/drupal8/lib/boris.php +7 -0
- data/skel/project_types/drupal8/lib/drupal_bootstrap.php +13 -0
- data/skel/project_types/drupal8/lib/drupal_flush_cache.php +5 -0
- data/skel/project_types/silverstripe3/bower.json +7 -5
- data/skel/project_types/silverstripe3/composer.json +2 -1
- data/skel/project_types/silverstripe3/lib/boris.php +7 -0
- data/skel/project_types/silverstripe3/lib/ss_bootstrap.php +123 -0
- data/skel/project_types/silverstripe3/lib/ss_loadconf.php +104 -104
- data/skel/project_types/silverstripe3/public/.htaccess +1 -1
- data/skel/project_types/silverstripe3/public/project/_config.php +17 -17
- data/skel/project_types/silverstripe3/public/project/code/DataObjects/.gitkeep +0 -0
- data/skel/project_types/silverstripe3/public/themes/project/scss/_base.scss +58 -0
- data/skel/project_types/silverstripe3/public/themes/project/scss/_colours.scss +12 -0
- data/skel/project_types/silverstripe3/public/themes/project/scss/_functions.scss +18 -14
- data/skel/project_types/silverstripe3/public/themes/project/scss/_mixins.scss +17 -9
- data/skel/project_types/silverstripe3/public/themes/project/scss/_vars.scss +5 -2
- data/skel/project_types/silverstripe3/public/themes/project/scss/main.scss +26 -3
- data/skel/project_types/silverstripe3/public/themes/project/scss/typography.scss +28 -26
- data/skel/project_types/silverstripe3/ss-console +3 -0
- data/skel/skel.yml +39 -24
- metadata +27 -8
- data/config/syncer.rb +0 -101
- data/skel/project_types/drupal6/lib/flush_drupal_cache.php +0 -15
- data/skel/project_types/drupal7/lib/flush_drupal_cache.php +0 -15
- data/skel/project_types/drupal8/lib/flush_drupal_cache.php +0 -11
| @@ -1,105 +1,105 @@ | |
| 1 | 
            -
            <?php
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            require realpath(__DIR__ . '/../vendor/autoload.php');
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            use Symfony\Component\Yaml\Yaml;
         | 
| 6 | 
            -
             | 
| 7 | 
            -
            class SS_LoadConf {
         | 
| 8 | 
            -
             | 
| 9 | 
            -
            	protected static $constants_set = false;
         | 
| 10 | 
            -
             | 
| 11 | 
            -
            	// ss env translation
         | 
| 12 | 
            -
            	protected static $ss_env = array(
         | 
| 13 | 
            -
            		'development'	=> 'dev',
         | 
| 14 | 
            -
            		'staging'		=> 'test',
         | 
| 15 | 
            -
            		'production'	=> 'live'
         | 
| 16 | 
            -
            	);
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            	protected static $application_env = null;
         | 
| 19 | 
            -
            	protected static $ss_environment_type = null;
         | 
| 20 | 
            -
             | 
| 21 | 
            -
            	public static function get_application_env() {
         | 
| 22 | 
            -
            		self::set_constants(); | 
| 23 | 
            -
            		return self::$application_env;
         | 
| 24 | 
            -
            	}
         | 
| 25 | 
            -
             | 
| 26 | 
            -
            	public static function env() { | 
| 27 | 
            -
            		return self::get_application_env();
         | 
| 28 | 
            -
            	} | 
| 29 | 
            -
             | 
| 30 | 
            -
            	public static function get_ss_environment_type() {
         | 
| 31 | 
            -
            		// ensure constants are set;
         | 
| 32 | 
            -
            		self::set_constants(); | 
| 33 | 
            -
            		return self::$ss_environment_type;
         | 
| 34 | 
            -
            	}
         | 
| 35 | 
            -
             | 
| 36 | 
            -
            	public static function translate_env($env) {
         | 
| 37 | 
            -
            		if (!empty(self::$ss_env[$env])) {
         | 
| 38 | 
            -
            			return self::$ss_env[$env];
         | 
| 39 | 
            -
            		} else {
         | 
| 40 | 
            -
            			return $env;
         | 
| 41 | 
            -
            		}
         | 
| 42 | 
            -
            	} | 
| 43 | 
            -
             | 
| 44 | 
            -
            	public static function set_constants() {
         | 
| 45 | 
            -
             | 
| 46 | 
            -
            		if (!self::$constants_set) {
         | 
| 47 | 
            -
             | 
| 48 | 
            -
            			// Transfer environmental vars to constants
         | 
| 49 | 
            -
            			$env = getenv('APPLICATION_ENV');
         | 
| 50 | 
            -
            			if (!$env) $env = 'production';
         | 
| 51 | 
            -
             | 
| 52 | 
            -
            			if (!defined('APPLICATION_ENV')) 		define('APPLICATION_ENV', $env);
         | 
| 53 | 
            -
            			if (!defined('PATH')) 					define('PATH', getenv('PATH'));
         | 
| 54 | 
            -
            			if (!defined('SS_SEND_ALL_EMAILS_TO'))	define('SS_SEND_ALL_EMAILS_TO', getenv('SS_SEND_ALL_EMAILS_TO'));
         | 
| 55 | 
            -
             | 
| 56 | 
            -
            			// Set SS env vars
         | 
| 57 | 
            -
            			if (!getenv('SS_ENVIRONMENT_TYPE')) { | 
| 58 | 
            -
            				putenv('SS_ENVIRONMENT_TYPE='.self::$ss_env[APPLICATION_ENV]);
         | 
| 59 | 
            -
            				define('SS_ENVIRONMENT_TYPE', getenv('SS_ENVIRONMENT_TYPE'));
         | 
| 60 | 
            -
            			}
         | 
| 61 | 
            -
             | 
| 62 | 
            -
            			self::$constants_set = true;
         | 
| 63 | 
            -
            			self::$application_env = APPLICATION_ENV;
         | 
| 64 | 
            -
            			self::$ss_environment_type = self::$ss_env[APPLICATION_ENV];
         | 
| 65 | 
            -
             | 
| 66 | 
            -
            		}
         | 
| 67 | 
            -
             | 
| 68 | 
            -
            	}
         | 
| 69 | 
            -
             | 
| 70 | 
            -
            	public static function cnf() {
         | 
| 71 | 
            -
             | 
| 72 | 
            -
            		// ensure constants are set;
         | 
| 73 | 
            -
            		self::set_constants();
         | 
| 74 | 
            -
             | 
| 75 | 
            -
            		// paths
         | 
| 76 | 
            -
            		$base_dir = realpath(__DIR__ . '/..');
         | 
| 77 | 
            -
            		$public_dir = realpath($base_dir . '/public');
         | 
| 78 | 
            -
             | 
| 79 | 
            -
            		// load conf
         | 
| 80 | 
            -
            		$cnf = Yaml::parse($base_dir . '/config/cnf.yml');
         | 
| 81 | 
            -
             | 
| 82 | 
            -
            		// expected urls
         | 
| 83 | 
            -
            		$url = 'http://' . $cnf['apache'][APPLICATION_ENV]['server_name']; | 
| 84 | 
            -
             | 
| 85 | 
            -
            		// load db settings
         | 
| 86 | 
            -
            		$db = (object) $cnf['dbs']['default'][APPLICATION_ENV];
         | 
| 87 | 
            -
             | 
| 88 | 
            -
            		// load mail settings
         | 
| 89 | 
            -
            		$mail = (object) $cnf['mail']['smtp'][APPLICATION_ENV];
         | 
| 90 | 
            -
             | 
| 91 | 
            -
            		return (object) array(
         | 
| 92 | 
            -
            			'cnf'			=> $cnf,
         | 
| 93 | 
            -
            			'db'			=> $db,
         | 
| 94 | 
            -
            			'mail'			=> $mail,
         | 
| 95 | 
            -
            			'base_path'		=> $base_dir,
         | 
| 96 | 
            -
            			'public_path'	=> $public_dir,
         | 
| 97 | 
            -
            			'url'			=> $url
         | 
| 98 | 
            -
            		);
         | 
| 99 | 
            -
             | 
| 100 | 
            -
            	}
         | 
| 101 | 
            -
             | 
| 102 | 
            -
            	public static function conf() { return self::cnf(); }
         | 
| 103 | 
            -
            	public static function config() { return self::cnf(); } | 
| 104 | 
            -
             | 
| 1 | 
            +
            <?php
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require realpath(__DIR__ . '/../vendor/autoload.php');
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            use Symfony\Component\Yaml\Yaml;
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            class SS_LoadConf {
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            	protected static $constants_set = false;
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            	// ss env translation
         | 
| 12 | 
            +
            	protected static $ss_env = array(
         | 
| 13 | 
            +
            		'development'	=> 'dev',
         | 
| 14 | 
            +
            		'staging'		=> 'test',
         | 
| 15 | 
            +
            		'production'	=> 'live'
         | 
| 16 | 
            +
            	);
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            	protected static $application_env = null;
         | 
| 19 | 
            +
            	protected static $ss_environment_type = null;
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            	public static function get_application_env() {
         | 
| 22 | 
            +
            		self::set_constants();
         | 
| 23 | 
            +
            		return self::$application_env;
         | 
| 24 | 
            +
            	}
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            	public static function env() {
         | 
| 27 | 
            +
            		return self::get_application_env();
         | 
| 28 | 
            +
            	}
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            	public static function get_ss_environment_type() {
         | 
| 31 | 
            +
            		// ensure constants are set;
         | 
| 32 | 
            +
            		self::set_constants();
         | 
| 33 | 
            +
            		return self::$ss_environment_type;
         | 
| 34 | 
            +
            	}
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            	public static function translate_env($env) {
         | 
| 37 | 
            +
            		if (!empty(self::$ss_env[$env])) {
         | 
| 38 | 
            +
            			return self::$ss_env[$env];
         | 
| 39 | 
            +
            		} else {
         | 
| 40 | 
            +
            			return $env;
         | 
| 41 | 
            +
            		}
         | 
| 42 | 
            +
            	}
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            	public static function set_constants() {
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            		if (!self::$constants_set) {
         | 
| 47 | 
            +
             | 
| 48 | 
            +
            			// Transfer environmental vars to constants
         | 
| 49 | 
            +
            			$env = getenv('APPLICATION_ENV');
         | 
| 50 | 
            +
            			if (!$env) $env = 'production';
         | 
| 51 | 
            +
             | 
| 52 | 
            +
            			if (!defined('APPLICATION_ENV')) 		define('APPLICATION_ENV', $env);
         | 
| 53 | 
            +
            			if (!defined('PATH')) 					define('PATH', getenv('PATH'));
         | 
| 54 | 
            +
            			if (!defined('SS_SEND_ALL_EMAILS_TO'))	define('SS_SEND_ALL_EMAILS_TO', getenv('SS_SEND_ALL_EMAILS_TO'));
         | 
| 55 | 
            +
             | 
| 56 | 
            +
            			// Set SS env vars
         | 
| 57 | 
            +
            			if (!getenv('SS_ENVIRONMENT_TYPE')) {
         | 
| 58 | 
            +
            				putenv('SS_ENVIRONMENT_TYPE='.self::$ss_env[APPLICATION_ENV]);
         | 
| 59 | 
            +
            				define('SS_ENVIRONMENT_TYPE', getenv('SS_ENVIRONMENT_TYPE'));
         | 
| 60 | 
            +
            			}
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            			self::$constants_set = true;
         | 
| 63 | 
            +
            			self::$application_env = APPLICATION_ENV;
         | 
| 64 | 
            +
            			self::$ss_environment_type = self::$ss_env[APPLICATION_ENV];
         | 
| 65 | 
            +
             | 
| 66 | 
            +
            		}
         | 
| 67 | 
            +
             | 
| 68 | 
            +
            	}
         | 
| 69 | 
            +
             | 
| 70 | 
            +
            	public static function cnf() {
         | 
| 71 | 
            +
             | 
| 72 | 
            +
            		// ensure constants are set;
         | 
| 73 | 
            +
            		self::set_constants();
         | 
| 74 | 
            +
             | 
| 75 | 
            +
            		// paths
         | 
| 76 | 
            +
            		$base_dir = realpath(__DIR__ . '/..');
         | 
| 77 | 
            +
            		$public_dir = realpath($base_dir . '/public');
         | 
| 78 | 
            +
             | 
| 79 | 
            +
            		// load conf
         | 
| 80 | 
            +
            		$cnf = Yaml::parse($base_dir . '/config/cnf.yml');
         | 
| 81 | 
            +
             | 
| 82 | 
            +
            		// expected urls
         | 
| 83 | 
            +
            		$url = 'http://' . $cnf['apache'][APPLICATION_ENV]['server_name'];
         | 
| 84 | 
            +
             | 
| 85 | 
            +
            		// load db settings
         | 
| 86 | 
            +
            		$db = (object) $cnf['dbs']['default'][APPLICATION_ENV];
         | 
| 87 | 
            +
             | 
| 88 | 
            +
            		// load mail settings
         | 
| 89 | 
            +
            		$mail = (object) $cnf['mail']['smtp'][APPLICATION_ENV];
         | 
| 90 | 
            +
             | 
| 91 | 
            +
            		return (object) array(
         | 
| 92 | 
            +
            			'cnf'			=> $cnf,
         | 
| 93 | 
            +
            			'db'			=> $db,
         | 
| 94 | 
            +
            			'mail'			=> $mail,
         | 
| 95 | 
            +
            			'base_path'		=> $base_dir,
         | 
| 96 | 
            +
            			'public_path'	=> $public_dir,
         | 
| 97 | 
            +
            			'url'			=> $url
         | 
| 98 | 
            +
            		);
         | 
| 99 | 
            +
             | 
| 100 | 
            +
            	}
         | 
| 101 | 
            +
             | 
| 102 | 
            +
            	public static function conf() { return self::cnf(); }
         | 
| 103 | 
            +
            	public static function config() { return self::cnf(); }
         | 
| 104 | 
            +
             | 
| 105 105 | 
             
            }
         | 
| @@ -22,7 +22,7 @@ ErrorDocument 500 /assets/error-500.html | |
| 22 22 |  | 
| 23 23 | 
             
            <IfModule mod_alias.c>
         | 
| 24 24 | 
             
            	RedirectMatch 403 /silverstripe-cache(/|$)
         | 
| 25 | 
            -
            	RedirectMatch 403 ^/vendor(/|$)
         | 
| 25 | 
            +
            	# RedirectMatch 403 ^/vendor(/|$) # breaks bower
         | 
| 26 26 | 
             
            	RedirectMatch 403 /composer\.(json|lock)
         | 
| 27 27 | 
             
            </IfModule>
         | 
| 28 28 |  | 
| @@ -25,42 +25,42 @@ switch(APPLICATION_ENV){ | |
| 25 25 |  | 
| 26 26 | 
             
            		// Debug Settings
         | 
| 27 27 | 
             
            		ini_set("display_errors",1);
         | 
| 28 | 
            -
            		error_reporting(E_ALL & ~E_STRICT); | 
| 28 | 
            +
            		error_reporting(E_ALL & ~E_STRICT);
         | 
| 29 29 | 
             
            		Director::set_environment_type("dev");
         | 
| 30 | 
            -
             | 
| 30 | 
            +
             | 
| 31 31 | 
             
            		// Ensure that all emails get directed to the developer email address
         | 
| 32 32 | 
             
            		Config::inst()->update('Email', 'send_all_emails_to', SS_SEND_ALL_EMAILS_TO);
         | 
| 33 | 
            -
             | 
| 33 | 
            +
             | 
| 34 34 | 
             
            		// Set admin email
         | 
| 35 35 | 
             
            		Config::inst()->update('Email', 'admin_email', SS_SEND_ALL_EMAILS_TO);
         | 
| 36 | 
            -
             | 
| 36 | 
            +
             | 
| 37 37 | 
             
            		// Log file
         | 
| 38 38 | 
             
            		SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/development.log'), SS_Log::WARN, '<=');
         | 
| 39 39 |  | 
| 40 40 | 
             
            		// hard code user / pass
         | 
| 41 41 | 
             
            		Security::setDefaultAdmin('admin', 'admin');
         | 
| 42 | 
            -
             | 
| 42 | 
            +
             | 
| 43 43 | 
             
            		break;
         | 
| 44 44 |  | 
| 45 45 | 
             
            	case 'staging':	
         | 
| 46 46 |  | 
| 47 47 | 
             
            		// Debug Settings
         | 
| 48 48 | 
             
            		ini_set("display_errors",1);
         | 
| 49 | 
            -
            		error_reporting(E_ALL & ~E_STRICT); | 
| 49 | 
            +
            		error_reporting(E_ALL & ~E_STRICT);
         | 
| 50 50 | 
             
            		Director::set_environment_type("test");
         | 
| 51 | 
            -
             | 
| 51 | 
            +
             | 
| 52 52 | 
             
            		// Ensure that all emails get directed to the developer email address
         | 
| 53 53 | 
             
            		Email::send_all_emails_to(SS_SEND_ALL_EMAILS_TO);
         | 
| 54 | 
            -
             | 
| 54 | 
            +
             | 
| 55 55 | 
             
            		// Set admin email
         | 
| 56 56 | 
             
            		Email::setAdminEmail(SS_SEND_ALL_EMAILS_TO);
         | 
| 57 57 |  | 
| 58 58 | 
             
            		// hard code user / pass
         | 
| 59 | 
            -
            		Security::setDefaultAdmin('admin', 'admin'); | 
| 60 | 
            -
             | 
| 59 | 
            +
            		Security::setDefaultAdmin('admin', 'admin');
         | 
| 60 | 
            +
             | 
| 61 61 | 
             
            		// Log file
         | 
| 62 62 | 
             
            		SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/staging.log'), SS_Log::WARN, '<=');
         | 
| 63 | 
            -
             | 
| 63 | 
            +
             | 
| 64 64 | 
             
            		break;
         | 
| 65 65 |  | 
| 66 66 | 
             
            	default:
         | 
| @@ -72,7 +72,7 @@ switch(APPLICATION_ENV){ | |
| 72 72 | 
             
            		SS_Log::add_writer(new SS_LogFileWriter(BASE_PATH.'/../log/production.log'), SS_Log::WARN, '<=');
         | 
| 73 73 |  | 
| 74 74 | 
             
            		break;
         | 
| 75 | 
            -
             | 
| 75 | 
            +
             | 
| 76 76 | 
             
            }
         | 
| 77 77 |  | 
| 78 78 |  | 
| @@ -96,7 +96,7 @@ $databaseConfig = array( | |
| 96 96 | 
             
            	"password" 	=> $ss_cnf->db->pass,
         | 
| 97 97 | 
             
            	"database" 	=> $ss_cnf->db->name,
         | 
| 98 98 | 
             
            	"path" 		=> '',
         | 
| 99 | 
            -
            ); | 
| 99 | 
            +
            );
         | 
| 100 100 | 
             
            Config::inst()->update('MySQLDatabase', 'connection_charset', 'utf8');
         | 
| 101 101 |  | 
| 102 102 |  | 
| @@ -143,7 +143,7 @@ Requirements::set_combined_files_enabled(true); | |
| 143 143 | 
             
            $shimRequirements = array(
         | 
| 144 144 | 
             
                'vendor/selectivizr/selectivizr.min.js',
         | 
| 145 145 | 
             
                'vendor/respond/respond.min.js',
         | 
| 146 | 
            -
                'vendor/modernizr/modernizr.js' | 
| 146 | 
            +
                'vendor/modernizr/modernizr.js'
         | 
| 147 147 | 
             
            );
         | 
| 148 148 | 
             
            Requirements::combine_files('lte-ie8-shims.js',$shimRequirements);
         | 
| 149 149 | 
             
            Requirements::process_combined_files(); // forces ss to generate the file regardless of blocking
         | 
| @@ -153,7 +153,7 @@ Requirements::process_combined_files(); // forces ss to generate the file regard | |
| 153 153 |  | 
| 154 154 | 
             
            $cssRequirements = array(
         | 
| 155 155 | 
             
                'themes/project/css/main.css',
         | 
| 156 | 
            -
                'themes/project/css/typography.css' | 
| 156 | 
            +
                'themes/project/css/typography.css'
         | 
| 157 157 | 
             
            );
         | 
| 158 158 | 
             
            Requirements::combine_files('application.css', $cssRequirements);
         | 
| 159 159 |  | 
| @@ -184,7 +184,7 @@ RequirementsHelper::require_block(array_merge( | |
| 184 184 | 
             
            Requirements::insertHeadTags('
         | 
| 185 185 | 
             
                <!--[if (gte IE 6)&(lte IE 8)]>
         | 
| 186 186 | 
             
                    <script src="/assets/_combinedfiles/lte-ie8-shims.js"></script>
         | 
| 187 | 
            -
                <![endif]--> | 
| 187 | 
            +
                <![endif]-->
         | 
| 188 188 | 
             
            ');
         | 
| 189 189 |  | 
| 190 190 | 
             
            // block all front end requirements from the cms
         | 
| @@ -193,7 +193,7 @@ LeftAndMainHelper::require_block(array_merge( | |
| 193 193 | 
             
                    'assets/_combinedfiles/application.css',
         | 
| 194 194 | 
             
                    'assets/_combinedfiles/application.js',
         | 
| 195 195 | 
             
                    'assets/_combinedfiles/lte-ie8-shims.js'
         | 
| 196 | 
            -
                ), | 
| 196 | 
            +
                ),
         | 
| 197 197 | 
             
                $cssRequirements,
         | 
| 198 198 | 
             
                $jsRequirements,
         | 
| 199 199 | 
             
                $shimRequirements
         | 
| 
            File without changes
         | 
| @@ -0,0 +1,58 @@ | |
| 1 | 
            +
            // Common
         | 
| 2 | 
            +
            // -----------------
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            .container-fluid {
         | 
| 5 | 
            +
                width: 100%;
         | 
| 6 | 
            +
                margin: auto;
         | 
| 7 | 
            +
            }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            @media (min-width: 768px) {
         | 
| 10 | 
            +
                .container-fluid {
         | 
| 11 | 
            +
                    width: 760px;
         | 
| 12 | 
            +
                }
         | 
| 13 | 
            +
            }
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            @media (min-width: 992px) {
         | 
| 16 | 
            +
                .container-fluid {
         | 
| 17 | 
            +
                    width: 990px;
         | 
| 18 | 
            +
                }
         | 
| 19 | 
            +
            }
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            @media (min-width: 1200px) {
         | 
| 22 | 
            +
                .container-fluid {
         | 
| 23 | 
            +
                    width: 1200px;
         | 
| 24 | 
            +
                }
         | 
| 25 | 
            +
            }
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            // Forms
         | 
| 28 | 
            +
            // ----------------
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            form {
         | 
| 31 | 
            +
             | 
| 32 | 
            +
                .modal & {
         | 
| 33 | 
            +
                    margin-bottom: 0;
         | 
| 34 | 
            +
                }
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                .form-actions {
         | 
| 37 | 
            +
                    border: 0;
         | 
| 38 | 
            +
                    padding: 0;
         | 
| 39 | 
            +
                    margin-bottom: 0;
         | 
| 40 | 
            +
                    background: none;
         | 
| 41 | 
            +
                }
         | 
| 42 | 
            +
             | 
| 43 | 
            +
                .form-control {
         | 
| 44 | 
            +
                    border: 0;
         | 
| 45 | 
            +
                    padding: 0;
         | 
| 46 | 
            +
                    @include prefixed-prop(box-shadow, none);
         | 
| 47 | 
            +
                    height: auto;
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                    textarea, input {
         | 
| 50 | 
            +
                        width: 100%;
         | 
| 51 | 
            +
                    }
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                    input {
         | 
| 54 | 
            +
                        height: 30px;
         | 
| 55 | 
            +
                        line-height: 30px;
         | 
| 56 | 
            +
                    }
         | 
| 57 | 
            +
                }
         | 
| 58 | 
            +
            }
         | 
| @@ -0,0 +1,12 @@ | |
| 1 | 
            +
            $colour-accent-1: #598930;
         | 
| 2 | 
            +
            $colour-accent-2: #4B7428;
         | 
| 3 | 
            +
            $colour-accent-3: #3F681C;
         | 
| 4 | 
            +
            $colour-accent-4: #32471D;
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            $colour-bg-light: #ffffff;
         | 
| 7 | 
            +
            $colour-bg-dark: #333333;
         | 
| 8 | 
            +
            $colour-bg-pale1: #e0e0e0;
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            $colour-text-light: #ffffff;
         | 
| 11 | 
            +
            $colour-text-pale1: #999999;
         | 
| 12 | 
            +
            $colour-text-dark: #333333;
         | 
| @@ -1,15 +1,19 @@ | |
| 1 | 
            -
            @function image-path($file) {
         | 
| 2 | 
            -
              @return $image-path + '/' + $file;
         | 
| 3 | 
            -
            }
         | 
| 4 | 
            -
             | 
| 5 | 
            -
            @function font-path($file) {
         | 
| 6 | 
            -
              @return $font-path + '/' + $file | 
| 7 | 
            -
            }
         | 
| 8 | 
            -
             | 
| 9 | 
            -
            @function image-url($file) {
         | 
| 10 | 
            -
              @return url(image-path($file));
         | 
| 11 | 
            -
            }
         | 
| 12 | 
            -
             | 
| 13 | 
            -
            @function font-url($file) {
         | 
| 14 | 
            -
              @return url(font-path($file));
         | 
| 1 | 
            +
            @function image-path($file) {
         | 
| 2 | 
            +
              @return $image-path + '/' + $file;
         | 
| 3 | 
            +
            }
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            @function font-path($file) {
         | 
| 6 | 
            +
              @return $font-path + '/' + $file;
         | 
| 7 | 
            +
            }
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            @function image-url($file) {
         | 
| 10 | 
            +
              @return url(image-path($file));
         | 
| 11 | 
            +
            }
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            @function font-url($file) {
         | 
| 14 | 
            +
              @return url(font-path($file));
         | 
| 15 | 
            +
            }
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            @function twbs-font-path($font) {
         | 
| 18 | 
            +
            	@return $bootstrap_font_path + '/' + $font;
         | 
| 15 19 | 
             
            }
         | 
| @@ -1,10 +1,18 @@ | |
| 1 | 
            -
            @mixin define-font($font-name, $font) {
         | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
             | 
| 9 | 
            -
             | 
| 1 | 
            +
            @mixin define-font($font-name, $font) {
         | 
| 2 | 
            +
                @font-face {
         | 
| 3 | 
            +
                    font-family: $font-name;
         | 
| 4 | 
            +
                    src: url(font_path('#{$font}.eot'));
         | 
| 5 | 
            +
                    src: url(font_path('#{$font}.eot')) format('embedded-opentype'),
         | 
| 6 | 
            +
                         url(font_path('#{$font}.woff')) format('woff'),
         | 
| 7 | 
            +
                         url(font_path('#{$font}.ttf')) format('truetype'),
         | 
| 8 | 
            +
                         url(font_path('#{$font}.svg')) format('svg');
         | 
| 9 | 
            +
                }
         | 
| 10 | 
            +
            }
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            @mixin prefixed-prop($prop-name, $prop-val) {
         | 
| 13 | 
            +
                -webkit-#{$prop-name}: $prop-val;
         | 
| 14 | 
            +
                   -moz-#{$prop-name}: $prop-val;
         | 
| 15 | 
            +
                    -ms-#{$prop-name}: $prop-val;
         | 
| 16 | 
            +
                     -o-#{$prop-name}: $prop-val;
         | 
| 17 | 
            +
                        #{$prop-name}: $prop-val;
         | 
| 10 18 | 
             
            }
         | 
| @@ -1,2 +1,5 @@ | |
| 1 | 
            -
            $image_path: '/themes/project/images';
         | 
| 2 | 
            -
            $font_path: '/themes/project/fonts';
         | 
| 1 | 
            +
            $image_path: '/themes/project/images';
         | 
| 2 | 
            +
            $font_path: '/themes/project/fonts';
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            $bootstrap_stylesheet_path: '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap';
         | 
| 5 | 
            +
            $bootstrap_font_path: '../../../vendor/bootstrap-sass/vendor/assets/fonts/bootstrap';
         | 
| @@ -1,3 +1,26 @@ | |
| 1 | 
            -
            @import 'vars',
         | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 1 | 
            +
            @import 'vars',
         | 
| 2 | 
            +
                    'functions',
         | 
| 3 | 
            +
                    'mixins',
         | 
| 4 | 
            +
                    'colours',
         | 
| 5 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_variables.scss',
         | 
| 6 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_mixins.scss',
         | 
| 7 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_normalize.scss',
         | 
| 8 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_print.scss',
         | 
| 9 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_scaffolding.scss',
         | 
| 10 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_type.scss',
         | 
| 11 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_code.scss',
         | 
| 12 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_grid.scss',
         | 
| 13 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_tables.scss',
         | 
| 14 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_forms.scss',
         | 
| 15 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_buttons.scss',
         | 
| 16 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_component-animations.scss',
         | 
| 17 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_glyphicons.scss',
         | 
| 18 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_dropdowns.scss',
         | 
| 19 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_button-groups.scss',
         | 
| 20 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_input-groups.scss',
         | 
| 21 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navs.scss',
         | 
| 22 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_navbar.scss',
         | 
| 23 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_utilities.scss',
         | 
| 24 | 
            +
                    '../../../vendor/bootstrap-sass/vendor/assets/stylesheets/bootstrap/_responsive-utilities.scss',
         | 
| 25 | 
            +
                    '../../../vendor/icomon/style.css',
         | 
| 26 | 
            +
                    'base';
         | 
| @@ -1,27 +1,29 @@ | |
| 1 | 
            -
             | 
| 2 | 
            -
             | 
| 3 | 
            -
             | 
| 4 | 
            -
             | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
            	 | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
            	 | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
            	 | 
| 15 | 
            -
            	 | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
            	 | 
| 19 | 
            -
            	 | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
            	p. | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 1 | 
            +
            // default editor styles
         | 
| 2 | 
            +
            // ---------------------
         | 
| 3 | 
            +
             | 
| 4 | 
            +
            .typography {
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            	.left {
         | 
| 7 | 
            +
            		text-align:left;
         | 
| 8 | 
            +
            	}
         | 
| 9 | 
            +
            	.center {
         | 
| 10 | 
            +
            		text-align:center;
         | 
| 11 | 
            +
            	}
         | 
| 12 | 
            +
            	.right {
         | 
| 13 | 
            +
            		text-align:right;
         | 
| 14 | 
            +
            	}
         | 
| 15 | 
            +
            	img.right,
         | 
| 16 | 
            +
            	div.right {
         | 
| 17 | 
            +
            		float:right;
         | 
| 18 | 
            +
            	}
         | 
| 19 | 
            +
            	img.left,
         | 
| 20 | 
            +
            	div.right {
         | 
| 21 | 
            +
            		float:left;
         | 
| 22 | 
            +
            	}
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            	p.MsoNormal,
         | 
| 25 | 
            +
            	p.MsoBodyText {
         | 
| 26 | 
            +
            		margin: 0;
         | 
| 27 | 
            +
            	}
         | 
| 28 | 
            +
             | 
| 27 29 | 
             
            }
         | 
    
        data/skel/skel.yml
    CHANGED
    
    | @@ -1,25 +1,40 @@ | |
| 1 | 
            -
            base:
         | 
| 2 | 
            -
            project_types:
         | 
| 3 | 
            -
              drupal:
         | 
| 4 | 
            -
                 | 
| 5 | 
            -
                  -  | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
                  -  | 
| 9 | 
            -
               | 
| 10 | 
            -
                 | 
| 11 | 
            -
                  -  | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
                  -  | 
| 15 | 
            -
               | 
| 16 | 
            -
             | 
| 17 | 
            -
             | 
| 18 | 
            -
             | 
| 19 | 
            -
             | 
| 20 | 
            -
                  -  | 
| 21 | 
            -
             | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 1 | 
            +
            base:
         | 
| 2 | 
            +
            project_types:
         | 
| 3 | 
            +
              drupal:
         | 
| 4 | 
            +
                bonethug_files:
         | 
| 5 | 
            +
                  - lib/drupal_flush_cache.php
         | 
| 6 | 
            +
                  - lib/drupal_bootstrap.php
         | 
| 7 | 
            +
                  - lib/boris.php
         | 
| 8 | 
            +
                  - drupal-console
         | 
| 9 | 
            +
              drupal6:
         | 
| 10 | 
            +
                bonethug_files:
         | 
| 11 | 
            +
                  - lib/drupal_flush_cache.php
         | 
| 12 | 
            +
                  - lib/drupal_bootstrap.php
         | 
| 13 | 
            +
                  - lib/boris.php
         | 
| 14 | 
            +
                  - drupal-console
         | 
| 15 | 
            +
              drupal7:
         | 
| 16 | 
            +
                bonethug_files:
         | 
| 17 | 
            +
                  - lib/drupal_flush_cache.php
         | 
| 18 | 
            +
                  - lib/drupal_bootstrap.php
         | 
| 19 | 
            +
                  - lib/boris.php
         | 
| 20 | 
            +
                  - drupal-console
         | 
| 21 | 
            +
              drupal8:
         | 
| 22 | 
            +
                bonethug_files:
         | 
| 23 | 
            +
                  - lib/drupal_flush_cache.php
         | 
| 24 | 
            +
                  - lib/drupal_bootstrap.php
         | 
| 25 | 
            +
                  - lib/boris.php
         | 
| 26 | 
            +
                  - drupal-console
         | 
| 27 | 
            +
              php:
         | 
| 28 | 
            +
              rails3:
         | 
| 29 | 
            +
              rails4:
         | 
| 30 | 
            +
              silverstripe3:
         | 
| 31 | 
            +
                bonethug_files:
         | 
| 32 | 
            +
                  - lib/ss_loadconf.php
         | 
| 33 | 
            +
                  - lib/ss_bootstrap.php
         | 
| 34 | 
            +
                  - lib/boris.php
         | 
| 35 | 
            +
                  - ss-console
         | 
| 36 | 
            +
                  - public/_ss_environment.php
         | 
| 37 | 
            +
              sinatra:
         | 
| 38 | 
            +
            exlcuded_paths:
         | 
| 39 | 
            +
              - Gemfile
         | 
| 25 40 | 
             
              - composer.json
         |