-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Add Sitepackage Builder classes
- Loading branch information
1 parent
40b6700
commit 7d5fc27
Showing
128 changed files
with
3,482 additions
and
1 deletion.
There are no files selected for viewing
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
70 changes: 70 additions & 0 deletions
70
resources/skeletons/BaseExtension/bootstrap_package/.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/skeletons/BaseExtension/bootstrap_package/Build/.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 |
72 changes: 72 additions & 0 deletions
72
resources/skeletons/BaseExtension/bootstrap_package/Build/Gruntfile.js.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,72 @@ | ||
module.exports = function(grunt) { | ||
|
||
/** | ||
* Project configuration. | ||
*/ | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
paths: { | ||
root: '../', | ||
resources: '<%= paths.root %>Resources/', | ||
fonts: '<%= paths.resources %>Public/Fonts/', | ||
img: '<%= paths.resources %>Public/Images/', | ||
js: '<%= paths.resources %>Public/JavaScript/' | ||
}, | ||
banner: '/*!\n' + | ||
' * {{ package.title }} v<%= pkg.version %> (<%= pkg.homepage %>)\n' + | ||
' * Copyright 2017-<%= grunt.template.today("yyyy") %> <%= pkg.author %>\n' + | ||
' * Licensed under the <%= pkg.license %> license\n' + | ||
' */\n', | ||
uglify: { | ||
all: { | ||
options: { | ||
banner: '<%= banner %>', | ||
mangle: true, | ||
compress: true, | ||
beautify: false | ||
}, | ||
files: { | ||
"<%= paths.js %>/Dist/scripts.js": [ | ||
"<%= paths.js %>Src/main.js" | ||
] | ||
} | ||
} | ||
}, | ||
imagemin: { | ||
extension: { | ||
files: [{ | ||
expand: true, | ||
cwd: '<%= paths.resources %>', | ||
src: [ | ||
'**/*.{png,jpg,gif,svg}' | ||
], | ||
dest: '<%= paths.resources %>' | ||
}] | ||
} | ||
}, | ||
watch: { | ||
options: { | ||
livereload: true | ||
}, | ||
javascript: { | ||
files: '<%= paths.js %>Src/**/*.js', | ||
tasks: ['js'] | ||
} | ||
} | ||
}); | ||
|
||
/** | ||
* Register tasks | ||
*/ | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-imagemin'); | ||
|
||
/** | ||
* Grunt update task | ||
*/ | ||
grunt.registerTask('js', ['uglify']); | ||
grunt.registerTask('build', ['js', 'imagemin']); | ||
grunt.registerTask('default', ['build']); | ||
|
||
}; |
18 changes: 18 additions & 0 deletions
18
resources/skeletons/BaseExtension/bootstrap_package/Build/package.json.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,18 @@ | ||
{ | ||
"name": "{{ package.vendorNameAlternative }}-{{ package.packageNameAlternative }}", | ||
"description": "{{ package.description }}", | ||
"repository": { | ||
"type": "git", | ||
"url": "{{ package.repositoryUrl }}" | ||
}, | ||
"homepage": "{{ package.author.homepage }}", | ||
"author": "{{ package.author.name }}", | ||
"version": "1.0.0", | ||
"license": "GPL-2.0-or-later", | ||
"devDependencies": { | ||
"grunt": "^1.0.3", | ||
"grunt-contrib-uglify": "^4.0.0", | ||
"grunt-contrib-watch": "^1.1.0", | ||
"grunt-contrib-imagemin": "^2.0.1" | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
resources/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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/skeletons/BaseExtension/bootstrap_package/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 |
9 changes: 9 additions & 0 deletions
9
resources/skeletons/BaseExtension/bootstrap_package/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,9 @@ | ||
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" } | ||
- { resource: "EXT:bootstrap_package/Configuration/RTE/Default.yaml" } | ||
|
||
editor: | ||
config: | ||
contentsCss: "EXT:bootstrap_package/Resources/Public/Css/bootstrap4-rte.min.css" |
19 changes: 19 additions & 0 deletions
19
...rces/skeletons/BaseExtension/bootstrap_package/Configuration/TCA/Overrides/pages.php.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,19 @@ | ||
<?php | ||
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %} | ||
call_user_func(function() | ||
{ | ||
/** | ||
* Temporary variables | ||
*/ | ||
$extensionKey = '{{ package.extensionKey }}'; | ||
/** | ||
* Default PageTS for {{ package.packageName }} | ||
*/ | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile( | ||
$extensionKey, | ||
'Configuration/TsConfig/Page/All.tsconfig', | ||
'{{ package.title }}' | ||
); | ||
}); |
19 changes: 19 additions & 0 deletions
19
...eletons/BaseExtension/bootstrap_package/Configuration/TCA/Overrides/sys_template.php.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,19 @@ | ||
<?php | ||
{% if package.typo3version < 11000000 %}defined('TYPO3_MODE') || die();{% else %}defined('TYPO3') or die('Access denied.');{% endif %} | ||
call_user_func(function() | ||
{ | ||
/** | ||
* Temporary variables | ||
*/ | ||
$extensionKey = '{{ package.extensionKey }}'; | ||
/** | ||
* Default TypoScript for {{ package.packageName }} | ||
*/ | ||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( | ||
$extensionKey, | ||
'Configuration/TypoScript', | ||
'{{ package.title }}' | ||
); | ||
}); |
7 changes: 7 additions & 0 deletions
7
...s/skeletons/BaseExtension/bootstrap_package/Configuration/TsConfig/Page/All.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,7 @@ | ||
# | ||
# PageTS for {{ package.title }} | ||
# | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:{{ package.extensionKey }}/Configuration/TsConfig/Page/RTE.tsconfig"> | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:{{ package.extensionKey }}/Configuration/TsConfig/Page/TCEFORM.tsconfig"> | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:{{ package.extensionKey }}/Configuration/TsConfig/Page/TCEMAIN.tsconfig"> | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:{{ package.extensionKey }}/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts.tsconfig"> |
4 changes: 4 additions & 0 deletions
4
.../bootstrap_package/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts.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,4 @@ | ||
# | ||
# BACKENDLAYOUTS | ||
# | ||
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:{{ package.extensionKey }}/Configuration/TsConfig/Page/Mod/WebLayout/BackendLayouts" extensions="tsconfig"> |
29 changes: 29 additions & 0 deletions
29
...ap_package/Configuration/TsConfig/Page/Mod/WebLayout/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,29 @@ | ||
# | ||
# 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 = 1 | ||
rowCount = 1 | ||
rows { | ||
1 { | ||
columns { | ||
1 { | ||
name = LLL:EXT:{{ package.extensionKey }}/Resources/Private/Language/locallang_be.xlf:backend_layout.column.normal | ||
colPos = 0 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
icon = EXT:{{ package.extensionKey }}/Resources/Public/Icons/BackendLayouts/example.svg | ||
} | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...s/skeletons/BaseExtension/bootstrap_package/Configuration/TsConfig/Page/RTE.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,8 @@ | ||
############# | ||
#### RTE #### | ||
############# | ||
RTE { | ||
default { | ||
preset = {{ package.extensionKey }} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...eletons/BaseExtension/bootstrap_package/Configuration/TsConfig/Page/TCEFORM.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,11 @@ | ||
# | ||
# TCEFORM | ||
# | ||
TCEFORM { | ||
pages { | ||
|
||
} | ||
tt_content { | ||
|
||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...eletons/BaseExtension/bootstrap_package/Configuration/TsConfig/Page/TCEMAIN.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,6 @@ | ||
# | ||
# TCEMAIN | ||
# | ||
TCEMAIN { | ||
|
||
} |
60 changes: 60 additions & 0 deletions
60
...letons/BaseExtension/bootstrap_package/Configuration/TypoScript/constants.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,60 @@ | ||
###################### | ||
#### DEPENDENCIES #### | ||
###################### | ||
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:bootstrap_package/Configuration/TypoScript/constants.typoscript"> | ||
|
||
|
||
############ | ||
### PAGE ### | ||
############ | ||
page { | ||
logo { | ||
file = EXT:{{ package.extensionKey }}/Resources/Public/Images/logo.svg | ||
fileInverted = EXT:{{ package.extensionKey }}/Resources/Public/Images/logo-inverted.svg | ||
height = 52 | ||
width = 192 | ||
alt = {{ package.title }} | ||
linktitle = {{ package.title }} | ||
} | ||
favicon { | ||
file = EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico | ||
} | ||
fluidtemplate { | ||
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/Page/ | ||
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/Page/ | ||
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/Page/ | ||
} | ||
} | ||
|
||
|
||
################## | ||
### EXTENSIONS ### | ||
################## | ||
plugin.bootstrap_package { | ||
view { | ||
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/ | ||
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/ | ||
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/ | ||
} | ||
} | ||
|
||
|
||
######################## | ||
### CONTENT ELEMENTS ### | ||
######################## | ||
plugin.bootstrap_package_contentelements { | ||
view { | ||
layoutRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Layouts/ContentElements/ | ||
partialRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Partials/ContentElements/ | ||
templateRootPath = EXT:{{ package.extensionKey }}/Resources/Private/Templates/ContentElements/ | ||
} | ||
} | ||
|
||
|
||
################################ | ||
### BOOTSTRAP SCSS CONSTANTS ### | ||
################################ | ||
plugin.bootstrap_package.settings.scss { | ||
primary = #eb3e4a | ||
secondary = #013859 | ||
} |
Oops, something went wrong.