Обновлен Sculpin

This commit is contained in:
Anton Vakhrushev 2019-01-02 15:53:54 +03:00
parent c9cc92107e
commit f9ceb23b65
7 changed files with 420 additions and 254 deletions

View File

@ -5,7 +5,7 @@ build-assets:
./tools/npm run build
build-site:
./tools/sculpin generate --clean --env=dev --no-interaction
./tools/sculpin generate --clean --env=dev --no-interaction -vvv
build: build-site build-assets

View File

@ -1,15 +1,15 @@
<?php
use Homepage\HtmlPrettierBundle\HtmlPrettierBundle;
use Nickpeirson\Sculpin\Bundle\SitemapBundle\SculpinSitemapBundle;
//use Nickpeirson\Sculpin\Bundle\SitemapBundle\SculpinSitemapBundle;
use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;
class SculpinKernel extends AbstractKernel
{
protected function getAdditionalSculpinBundles()
protected function getAdditionalSculpinBundles(): array
{
return [
SculpinSitemapBundle::class,
// SculpinSitemapBundle::class,
HtmlPrettierBundle::class,
];
}

View File

@ -1,3 +1,16 @@
sculpin:
ignore:
- _assets/
sculpin_content_types:
posts:
enabled: false
albums:
type: path
path: _albums
singular_name: album
layout: internal
permalink: albums/:basename/
enabled: true
taxonomies:
- tags

View File

@ -6,5 +6,4 @@ use Symfony\Component\HttpKernel\Bundle\Bundle;
class HtmlPrettierBundle extends Bundle
{
public const class_name = __CLASS__;
}

View File

@ -1,6 +1,6 @@
services:
homepage.html_prettier:
class: \Homepage\HtmlPrettierBundle\HtmlPrettier
tags:
- { name: kernel.event_subscriber }
public: yes

View File

@ -11,10 +11,9 @@
"require": {
},
"require-dev": {
"nickpeirson/sculpin-sitemap-bundle": "^0.1.1",
"sculpin/sculpin": "dev-develop",
"gajus/dindent": "^2.0",
"friendsofphp/php-cs-fixer": "^2.12"
"friendsofphp/php-cs-fixer": "^2.12",
"sculpin/sculpin": "3.0.0-rc1"
},
"autoload": {
"psr-4": {

645
composer.lock generated

File diff suppressed because it is too large Load Diff