Обновлен 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 ./tools/npm run build
build-site: build-site:
./tools/sculpin generate --clean --env=dev --no-interaction ./tools/sculpin generate --clean --env=dev --no-interaction -vvv
build: build-site build-assets build: build-site build-assets

View File

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

View File

@ -1,3 +1,16 @@
sculpin: sculpin:
ignore: ignore:
- _assets/ - _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 class HtmlPrettierBundle extends Bundle
{ {
public const class_name = __CLASS__;
} }

View File

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

View File

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

645
composer.lock generated

File diff suppressed because it is too large Load Diff