mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-12-22 01:40:22 -05:00
Configure app.php, update elixir, update composer dependencies, add blade extensions with parsedown markdown support, and set good defaults for osx font rendering
This commit is contained in:
parent
7c47ebe8f4
commit
9229e3c804
7 changed files with 664 additions and 218 deletions
|
@ -1,6 +1,7 @@
|
|||
APP_ENV=local
|
||||
APP_DEBUG=true
|
||||
APP_KEY=random_string
|
||||
APP_URL=http://localhost
|
||||
|
||||
DB_HOST=localhost
|
||||
DB_DATABASE=hypothetical
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
"type": "project",
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"laravel/framework": "5.1.*"
|
||||
"laravel/framework": "5.1.*",
|
||||
"radic/blade-extensions": "~6.0",
|
||||
"erusev/parsedown": "~1.5"
|
||||
},
|
||||
"require-dev": {
|
||||
"fzaninotto/faker": "~1.4",
|
||||
|
|
782
composer.lock
generated
782
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'url' => 'http://localhost',
|
||||
'url' => env('APP_URL', 'http://localhost'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -39,7 +39,7 @@ return [
|
|||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
'timezone' => 'Canada/Eastern',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
@ -144,6 +144,11 @@ return [
|
|||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
|
||||
/*
|
||||
* Custom Service Providers...
|
||||
*/
|
||||
Radic\BladeExtensions\BladeExtensionsServiceProvider::class,
|
||||
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
82
config/blade_extensions.php
Normal file
82
config/blade_extensions.php
Normal file
|
@ -0,0 +1,82 @@
|
|||
<?php
|
||||
/**
|
||||
* Part of Radic - Blade Extensions
|
||||
*
|
||||
* @author Robin Radic
|
||||
* @license MIT License - http://radic.mit-license.org
|
||||
* @copyright (c) 2011-2015, Robin Radic - Radic Technologies
|
||||
* @link http://radic.nl
|
||||
*/
|
||||
|
||||
return array(
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Blacklisting of directives
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
| These directives will be excluded.
|
||||
|
|
||||
*/
|
||||
'blacklist' => array(),
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Markdown options
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'markdown' => array(
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Enable markdown directives
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
*/
|
||||
'enabled' => true,
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Markdown renderer class
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
| Class that renders markdown. Needs to implement Radic\BladeExtensions\Contracts\MarkdownRenderer
|
||||
|
|
||||
*/
|
||||
'renderer' => 'Radic\BladeExtensions\Renderers\ParsedownRenderer',
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Enable view compiler
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
| Enables markdown view compiler.
|
||||
| This will enable you to use View::make('my_markdown_file') on `my_markdown_file.md`.
|
||||
| Or use @include('my_markdown_file')
|
||||
|
|
||||
*/
|
||||
'views' => true
|
||||
),
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Directives overrides
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
| You can override any blade-extensions directive.
|
||||
| For reference see the directives.php file in the blade-extensions/src views
|
||||
*/
|
||||
'overrides' => array(/*
|
||||
'macro' => array(
|
||||
'pattern' => '/(?<!\\w)(\\s*)@macro(?:\\s*)\\((?:\\s*)[\'"]([\\w\\d]*)[\'"],(.*)\\)/',
|
||||
'replacement' => '$1<?php if(array_key_exists("form", $__env->getContainer()->getBindings())){ echo app("form")->$2($3); } ?>'
|
||||
)
|
||||
*/
|
||||
),
|
||||
/*
|
||||
|---------------------------------------------------------------------
|
||||
| Enable example views
|
||||
|---------------------------------------------------------------------
|
||||
|
|
||||
| If enabled, several example views including layout, views and embed partials
|
||||
| will be available under the blade-ext::<view> namespace. Use vendor:publish --tag=view
|
||||
| to publish to your own resources folder. Based on bootstrap 3.3
|
||||
*/
|
||||
'example_views' => env('BLADE_EXTENSIONS_EXAMPLE_VIEWS', false)
|
||||
|
||||
);
|
|
@ -5,6 +5,6 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"gulp": "^3.9.0",
|
||||
"laravel-elixir": "^3.0"
|
||||
"laravel-elixir": "^3.3"
|
||||
}
|
||||
}
|
||||
|
|
2
resources/assets/less/app.less
vendored
2
resources/assets/less/app.less
vendored
|
@ -24,6 +24,8 @@ body {
|
|||
|
||||
* {
|
||||
outline: none !important;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body.index {
|
||||
|
|
Loading…
Reference in a new issue