Skip to content

Commit

Permalink
[TASK] Add Sitepackage Builder classes
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft committed Jul 15, 2022
1 parent 0b7e77b commit 9e4bcfd
Show file tree
Hide file tree
Showing 128 changed files with 3,482 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/packages/nelmio_api_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ nelmio_api_doc:
info:
title: get.typo3.org
description: REST API for getting information about TYPO3 releases
version: 1.0.0
version: 1.1.0
components:
securitySchemes:
Basic:
Expand Down
70 changes: 70 additions & 0 deletions resources/skeletons/BaseExtension/bootstrap_package/.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,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']);

};
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"
}
}
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,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"
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 }}'
);
});
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 }}'
);
});
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">
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">
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
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#############
#### RTE ####
#############
RTE {
default {
preset = {{ package.extensionKey }}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#
# TCEFORM
#
TCEFORM {
pages {

}
tt_content {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# TCEMAIN
#
TCEMAIN {

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

0 comments on commit 9e4bcfd

Please sign in to comment.