diff --git a/Classes/CompressionHelper.php b/Classes/CompressionHelper.php index 7fd4c60..9376b52 100644 --- a/Classes/CompressionHelper.php +++ b/Classes/CompressionHelper.php @@ -1,15 +1,15 @@ body.@process.compression > } diff --git a/Resources/Private/TypoScript/Root.ts2 b/Resources/Private/Fusion/Root.fusion similarity index 92% rename from Resources/Private/TypoScript/Root.ts2 rename to Resources/Private/Fusion/Root.fusion index 66e183f..17be393 100644 --- a/Resources/Private/TypoScript/Root.ts2 +++ b/Resources/Private/Fusion/Root.fusion @@ -1,9 +1,10 @@ -prototype(TYPO3.Neos:Page) { +prototype(Page) { head.@process.compression { expression = ${Flownative.Compressor.compress(value)} @position = 'end 999999999' @if.isLive = ${node.context.live} } + body.@process.compression { expression = ${Flownative.Compressor.compress(value)} @position = 'end 999999999' diff --git a/composer.json b/composer.json index cbcf9c7..5bab1e9 100644 --- a/composer.json +++ b/composer.json @@ -1,15 +1,83 @@ { "name": "flownative/neos-compressor", - "type": "typo3-flow-package", + "type": "neos-plugin", "description": "Output compression for Neos", "license": "MIT", "require": { - "typo3/neos": "~2.0", + "neos/neos": "^3.0", "wyrihaximus/html-compress": "~1.2" }, "autoload": { "psr-4": { "Flownative\\Neos\\Compressor\\": "Classes" } + }, + "extra": { + "applied-flow-migrations": [ + "TYPO3.FLOW3-201201261636", + "TYPO3.Fluid-201205031303", + "TYPO3.FLOW3-201205292145", + "TYPO3.FLOW3-201206271128", + "TYPO3.FLOW3-201209201112", + "TYPO3.Flow-201209251426", + "TYPO3.Flow-201211151101", + "TYPO3.Flow-201212051340", + "TYPO3.TypoScript-130516234520", + "TYPO3.TypoScript-130516235550", + "TYPO3.TYPO3CR-130523180140", + "TYPO3.Neos.NodeTypes-201309111655", + "TYPO3.Flow-201310031523", + "TYPO3.Flow-201405111147", + "TYPO3.Neos-201407061038", + "TYPO3.Neos-201409071922", + "TYPO3.TYPO3CR-140911160326", + "TYPO3.Neos-201410010000", + "TYPO3.TYPO3CR-141101082142", + "TYPO3.Neos-20141113115300", + "TYPO3.Fluid-20141113120800", + "TYPO3.Flow-20141113121400", + "TYPO3.Fluid-20141121091700", + "TYPO3.Neos-20141218134700", + "TYPO3.Fluid-20150214130800", + "TYPO3.Neos-20150303231600", + "TYPO3.TYPO3CR-20150510103823", + "TYPO3.Flow-20151113161300", + "TYPO3.Form-20160601101500", + "TYPO3.Flow-20161115140400", + "TYPO3.Flow-20161115140430", + "Neos.Flow-20161124204700", + "Neos.Flow-20161124204701", + "Neos.Twitter.Bootstrap-20161124204912", + "Neos.Form-20161124205254", + "Neos.Flow-20161124224015", + "Neos.Party-20161124225257", + "Neos.Eel-20161124230101", + "Neos.Setup-20161124230842", + "Neos.Imagine-20161124231742", + "Neos.Media-20161124233100", + "Neos.NodeTypes-20161125002300", + "Neos.Neos-20161125002322", + "Neos.ContentRepository-20161125012000", + "Neos.Fusion-20161125013710", + "Neos.Setup-20161125014759", + "Neos.Fusion-20161125104701", + "Neos.NodeTypes-20161125104800", + "Neos.Neos-20161125104802", + "Neos.Neos-20161125122412", + "Neos.Flow-20161125124112", + "Neos.SwiftMailer-20161130105617", + "TYPO3.FluidAdaptor-20161130112935", + "Neos.Fusion-20161201202543", + "Neos.Neos-20161201222211", + "Neos.Fusion-20161202215034", + "Neos.Fusion-20161219092345", + "Neos.ContentRepository-20161219093512", + "Neos.Media-20161219094126", + "Neos.Neos-20161219094403", + "Neos.Neos-20161219122512", + "Neos.Fusion-20161219130100", + "Neos.Neos-20161220163741", + "Neos.Fusion-20170120013047" + ] } }