Skip to content

Commit

Permalink
[TASK] Introduce beta sitepackage tutorial builder
Browse files Browse the repository at this point in the history
- Add Class constraints to only use allowed builder-version combinations
- Remove unsupported versions as a drive-by
  • Loading branch information
linawolf committed Nov 22, 2024
1 parent 637e988 commit 11fbd00
Show file tree
Hide file tree
Showing 43 changed files with 643 additions and 6 deletions.
70 changes: 70 additions & 0 deletions resources/packages/site_package_tutorial/13.4/src/.editorconfig
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Order deny,allow
Deny from all
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Order deny,allow
Deny from all
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
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
}
}
}
}
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
}
}
}
}
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
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 {

}

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'
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sitepackage for the project "{{ package.title }}"
==============================================================

Add some explanation here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Order deny,allow
Deny from all
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

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>
Loading

0 comments on commit 11fbd00

Please sign in to comment.