-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Introduce beta sitepackage tutorial builder
- Add Class constraints to only use allowed builder-version combinations - Remove unsupported versions as a drive-by
- Loading branch information
Showing
43 changed files
with
643 additions
and
6 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
resources/packages/site_package_tutorial/13.4/src/.editorconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# CSS-Files | ||
[*.css] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# HTML-Files | ||
[*.html] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# TMPL-Files | ||
[*.tmpl] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# JS-Files | ||
[*.js] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# PHP-Files | ||
[*.php] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# MD-Files | ||
[*.md] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# ReST-Files | ||
[*.rst] | ||
indent_style = space | ||
indent_size = 3 | ||
|
||
# TypoScript | ||
[*.typoscript] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# YML-Files | ||
[{*.yml,*.yaml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# package.json | ||
[package.json] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# composer.json | ||
[composer.json] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# phpstan | ||
[*.neon] | ||
indent_style = tab |
2 changes: 2 additions & 0 deletions
2
resources/packages/site_package_tutorial/13.4/src/Classes/.htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Order deny,allow | ||
Deny from all |
1 change: 1 addition & 0 deletions
1
resources/packages/site_package_tutorial/13.4/src/Classes/Controller/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
resources/packages/site_package_tutorial/13.4/src/Classes/Domain/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
resources/packages/site_package_tutorial/13.4/src/Classes/Domain/Model/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
resources/packages/site_package_tutorial/13.4/src/Classes/Domain/Repository/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
resources/packages/site_package_tutorial/13.4/src/Classes/ViewHelpers/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
2 changes: 2 additions & 0 deletions
2
resources/packages/site_package_tutorial/13.4/src/Configuration/.htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Order deny,allow | ||
Deny from all |
42 changes: 42 additions & 0 deletions
42
resources/packages/site_package_tutorial/13.4/src/Configuration/RTE/Default.yaml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
imports: | ||
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Processing.yaml" } | ||
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Base.yaml" } | ||
- { resource: "EXT:rte_ckeditor/Configuration/RTE/Editor/Plugins.yaml" } | ||
|
||
editor: | ||
config: | ||
contentsCss: "EXT:{{ package.extensionKey }}/Resources/Public/Css/rte.css" | ||
|
||
stylesSet: | ||
- { name: "Lead", element: "p", attributes: { 'class': 'lead' } } | ||
|
||
toolbarGroups: | ||
- { name: styles, groups: [ format, styles ] } | ||
- { name: basicstyles, groups: [ basicstyles ] } | ||
- { name: paragraph, groups: [ list, indent, blocks, align ] } | ||
- "/" | ||
- { name: links, groups: [ links ] } | ||
- { name: clipboard, groups: [ clipboard, cleanup, undo ] } | ||
- { name: editing, groups: [ spellchecker ] } | ||
- { name: insert, groups: [ insert ] } | ||
- { name: tools, groups: [ table, specialchar ] } | ||
- { name: document, groups: [ mode ] } | ||
|
||
format_tags: "p;h1;h2;h3;h4;h5;pre" | ||
|
||
justifyClasses: | ||
- text-left | ||
- text-center | ||
- text-right | ||
- text-justify | ||
|
||
extraPlugins: | ||
- justify | ||
|
||
removePlugins: | ||
- image | ||
|
||
removeButtons: | ||
- Anchor | ||
- Underline | ||
- Strike |
30 changes: 30 additions & 0 deletions
30
...13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/default.tsconfig.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# BACKENDLAYOUT: DEFAULT | ||
# | ||
mod { | ||
web_layout { | ||
BackendLayouts { | ||
default { | ||
title = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.example | ||
config { | ||
backend_layout { | ||
colCount = 1 | ||
rowCount = 1 | ||
rows { | ||
1 { | ||
columns { | ||
1 { | ||
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal | ||
colPos = 0 | ||
identifier = main | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...13.4/src/Configuration/Sets/SitePackage/PageTsConfig/BackendLayouts/example.tsconfig.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# BACKENDLAYOUT: EXAMPLE | ||
# | ||
mod { | ||
web_layout { | ||
BackendLayouts { | ||
example { | ||
title = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.example | ||
config { | ||
backend_layout { | ||
colCount = 2 | ||
rowCount = 2 | ||
rows { | ||
1 { | ||
columns { | ||
1 { | ||
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.stage | ||
colPos = 0 | ||
identifier = stage | ||
colspan = 2 | ||
} | ||
} | ||
} | ||
2 { | ||
columns { | ||
1 { | ||
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal | ||
colPos = 0 | ||
identifier = main | ||
} | ||
2 { | ||
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.right | ||
colPos = 2 | ||
identifier = right | ||
slideMode = slide | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg | ||
} | ||
} | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...s/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/config.yaml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: {{ package.vendorNameAlternative }}/{{ package.packageNameAlternative }} | ||
label: '{{ package.title }}' | ||
dependencies: | ||
- typo3/fluid-styled-content | ||
- typo3/fluid-styled-content-css |
21 changes: 21 additions & 0 deletions
21
...packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/page.tsconfig.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@import './PageTsConfig/BackendLayouts/' | ||
|
||
RTE { | ||
default { | ||
preset = {{ package.extensionKey }} | ||
} | ||
} | ||
|
||
TCEFORM { | ||
pages { | ||
|
||
} | ||
tt_content { | ||
|
||
} | ||
} | ||
|
||
TCEMAIN { | ||
|
||
} | ||
|
28 changes: 28 additions & 0 deletions
28
...packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.yaml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
styles: | ||
templates: | ||
layoutRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Layouts/' | ||
partialRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Partials/' | ||
templateRootPath: 'EXT:{{ package.extensionKey }}/Resources/Private/ContentElements/Templates/' | ||
|
||
page: | ||
pageview: | ||
paths: 'EXT:{{ package.extensionKey }}/Resources/Private/PageView/' | ||
|
||
meta: | ||
viewport: 'width=device-width, initial-scale=1' | ||
robots: 'index,follow' | ||
apple-mobile-web-app-capable: 'no' | ||
compatible: 'IE=edge' | ||
|
||
tracking: | ||
google: | ||
trackingID: '' | ||
anonymizeIp: '1' | ||
|
||
config: | ||
no_cache: '0' | ||
removeDefaultJS: '0' | ||
admPanel: '1' | ||
prefixLocalAnchors: 'all' | ||
headerComment: 'build by sitepackagebuilder.com' | ||
sendCacheHeaders: '1' |
102 changes: 102 additions & 0 deletions
102
...kages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/setup.typoscript.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
############## | ||
#### PAGE #### | ||
############## | ||
page = PAGE | ||
page { | ||
typeNum = 0 | ||
shortcutIcon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico | ||
|
||
10 = PAGEVIEW | ||
10 { | ||
paths { | ||
0 = EXT:{{ package.extensionKey }}/Resources/Private/PageView/ | ||
1 = {$page.pageview.paths} | ||
} | ||
dataProcessing { | ||
10 = files | ||
10 { | ||
references.fieldName = media | ||
} | ||
20 = menu | ||
20 { | ||
levels = 2 | ||
includeSpacer = 1 | ||
as = mainnavigation | ||
} | ||
30 = page-content | ||
} | ||
} | ||
|
||
meta { | ||
viewport = {$page.meta.viewport} | ||
robots = {$page.meta.robots} | ||
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable} | ||
|
||
X-UA-Compatible = {$page.meta.compatible} | ||
X-UA-Compatible { | ||
attribute = http-equiv | ||
} | ||
} | ||
|
||
includeCSSLibs { | ||
|
||
} | ||
|
||
includeCSS { | ||
{{ package.extensionKey }}_layout = EXT:{{ package.extensionKey }}/Resources/Public/Css/layout.css | ||
} | ||
|
||
includeJSLibs { | ||
|
||
} | ||
|
||
includeJS { | ||
|
||
} | ||
|
||
includeJSFooterlibs { | ||
|
||
} | ||
|
||
includeJSFooter { | ||
{{ package.extensionKey }}_scripts = EXT:{{ package.extensionKey }}/Resources/Public/JavaScript/main.js | ||
} | ||
} | ||
|
||
|
||
################ | ||
#### CONFIG #### | ||
################ | ||
config { | ||
absRefPrefix = auto | ||
no_cache = {$config.no_cache} | ||
uniqueLinkVars = 1 | ||
pageTitleFirst = 1 | ||
linkVars = L | ||
prefixLocalAnchors = {$config.prefixLocalAnchors} | ||
renderCharset = utf-8 | ||
metaCharset = utf-8 | ||
doctype = html5 | ||
removeDefaultJS = {$config.removeDefaultJS} | ||
inlineStyle2TempFile = 1 | ||
admPanel = {$config.admPanel} | ||
debug = 0 | ||
cache_period = 86400 | ||
sendCacheHeaders = {$config.sendCacheHeaders} | ||
intTarget = | ||
extTarget = | ||
disablePrefixComment = 1 | ||
index_enable = 1 | ||
index_externals = 1 | ||
index_metatags = 1 | ||
headerComment = {$config.headerComment} | ||
|
||
// Disable Image Upscaling | ||
noScaleUp = 1 | ||
|
||
// Compression and Concatenation of CSS and JS Files | ||
compressJs = 0 | ||
compressCss = 0 | ||
concatenateJs = 0 | ||
concatenateCss = 0 | ||
} |
4 changes: 4 additions & 0 deletions
4
resources/packages/site_package_tutorial/13.4/src/README.md.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Sitepackage for the project "{{ package.title }}" | ||
============================================================== | ||
|
||
Add some explanation here. |
2 changes: 2 additions & 0 deletions
2
resources/packages/site_package_tutorial/13.4/src/Resources/Private/.htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Order deny,allow | ||
Deny from all |
1 change: 1 addition & 0 deletions
1
...ackages/site_package_tutorial/13.4/src/Resources/Private/ContentElements/Layouts/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
...ckages/site_package_tutorial/13.4/src/Resources/Private/ContentElements/Partials/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
1 change: 1 addition & 0 deletions
1
...kages/site_package_tutorial/13.4/src/Resources/Private/ContentElements/Templates/.gitkeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
11 changes: 11 additions & 0 deletions
11
...ces/packages/site_package_tutorial/13.4/src/Resources/Private/Language/locallang.xlf.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | ||
<xliff version="1.0"> | ||
<file source-language="en" datatype="plaintext" original="messages" date="{{ 'now'|date('Y-m-d\TH:i:s\Z', 'UTC') }}"> | ||
<header> | ||
<authorName>{{ package.author.name }}</authorName> | ||
<authorEmail>{{ package.author.email }}</authorEmail> | ||
</header> | ||
<body> | ||
</body> | ||
</file> | ||
</xliff> |
Oops, something went wrong.