Skip to content

Commit 14236a9

Browse files
author
MateuszKolankowski
committed
init
1 parent a55d20b commit 14236a9

33 files changed

+389
-2
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "eslint-config-ibexa/eslint"
3+
}

.github/workflows/browser-tests.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Browser tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '[0-9]+.[0-9]+'
8+
pull_request: ~
9+
10+
jobs:
11+
browser-tests:
12+
name: "Browser tests"
13+
uses: ibexa/gh-workflows/.github/workflows/browser-tests.yml@main
14+
with:
15+
project-edition: 'oss'
16+
test-suite: '--profile=browser --suite=twig-components --config=vendor/ibexa/twig-components/behat_suites.yaml'
17+
secrets:
18+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/pr-assign.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Assign Pull Request to maintainers
2+
3+
on:
4+
pull_request_target: ~
5+
6+
jobs:
7+
assign:
8+
uses: ibexa/gh-workflows/.github/workflows/pr-assign.yml@main
9+
secrets:
10+
robot-token: ${{ secrets.EZROBOT_PAT }}

.github/workflows/pr-check.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: PR check
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- synchronize
7+
- reopened
8+
- edited
9+
10+
jobs:
11+
test-base-branch:
12+
uses: ibexa/gh-workflows/.github/workflows/pr-check.yml@main

.github/workflows/release.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Automatic Changelog Generator for tag
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
- '!v*-alpha*'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Set Environment
16+
run: |
17+
echo "BUILD_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
18+
- name: Get previous release tag based on type
19+
id: prevrelease
20+
uses: ibexa/version-logic-action@master
21+
with:
22+
currentTag: ${{ env.BUILD_TAG }}
23+
24+
- name: Generate changelog
25+
id: changelog
26+
uses: ibexa/changelog-generator-action@v2
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
jira_token: ${{ secrets.JIRA_TOKEN }}
30+
currentTag: ${{ env.BUILD_TAG }}
31+
previousTag: ${{ steps.prevrelease.outputs.previousTag }}
32+
33+
- name: Print the changelog
34+
run: echo "${{ steps.changelog.outputs.changelog }}"
35+
36+
- name: Create Release
37+
id: create_release
38+
uses: zendesk/action-create-release@v1
39+
with:
40+
tag_name: ${{ env.BUILD_TAG }}
41+
body: |
42+
${{ steps.changelog.outputs.changelog }}
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/.php-cs-fixer.cache
2+
/.phpunit.result.cache
3+
/composer.lock
4+
/node_modules/
5+
/vendor
6+
/yarn.lock

.php-cs-fixer.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
declare(strict_types=1);
8+
9+
return \Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory::build()->setFinder(
10+
PhpCsFixer\Finder::create()
11+
->in(__DIR__ . '/src')
12+
->in(__DIR__ . '/tests')
13+
->files()->name('*.php')
14+
);

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
Ibexa DXP \<Package name\>
2-
====================
1+
# twig-components
2+
3+
This package is part of [Ibexa DXP](https://ibexa.co).
4+
5+
To use this package, [install Ibexa DXP](https://doc.ibexa.co/en/latest/install/).
6+
7+
<!-- This package contains the ... functionality for [Ibexa DXP](ibexa.co). -->
38

49
## COPYRIGHT
510
Copyright (C) 1999-2025 Ibexa AS (formerly eZ Systems AS). All rights reserved.

behat_suites.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
imports:
2+
- ../../ibexa/behat/behat_ibexa_oss.yaml
3+
4+
browser:
5+
suites:
6+
twig-components:
7+
paths:
8+
- '%paths.base%/features/browser'
9+
contexts:
10+
- Ibexa\Behat\API\Context\TestContext
11+
- Ibexa\Behat\Browser\Context\AuthenticationContext

composer.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"name": "ibexa/twig-components",
3+
"license": "(GPL-2.0-only or proprietary)",
4+
"type": "ibexa-bundle",
5+
"keywords": [
6+
"ibexa-dxp"
7+
],
8+
"require": {
9+
"php": "^7.4 || ^8.0",
10+
"ibexa/core": "~4.6.x-dev",
11+
"symfony/config": "^5.4",
12+
"symfony/dependency-injection": "^5.4",
13+
"symfony/event-dispatcher": "^5.4",
14+
"symfony/event-dispatcher-contracts": "^2.2",
15+
"symfony/http-foundation": "^5.4",
16+
"symfony/http-kernel": "^5.4",
17+
"symfony/yaml": "^5.4"
18+
},
19+
"require-dev": {
20+
"ibexa/behat": "~4.6.x-dev",
21+
"ibexa/code-style": "~2.0.0",
22+
"ibexa/doctrine-schema": "~4.6.x-dev",
23+
"ibexa/phpstan": "~4.6.x-dev",
24+
"phpstan/phpstan": "^2.0",
25+
"phpstan/phpstan-phpunit": "^2.0",
26+
"phpstan/phpstan-symfony": "^2.0",
27+
"phpunit/phpunit": "^9.0",
28+
"qossmic/deptrac-shim": "^0.24.0 || ^1.0.2"
29+
},
30+
"autoload": {
31+
"psr-4": {
32+
"Ibexa\\Bundle\\TwigComponents\\": "src/bundle/",
33+
"Ibexa\\Contracts\\TwigComponents\\": "src/contracts/",
34+
"Ibexa\\TwigComponents\\": "src/lib/"
35+
}
36+
},
37+
"autoload-dev": {
38+
"psr-4": {
39+
"Ibexa\\Tests\\Bundle\\TwigComponents\\": "tests/bundle/",
40+
"Ibexa\\Tests\\Integration\\TwigComponents\\": "tests/integration/",
41+
"Ibexa\\Tests\\TwigComponents\\": "tests/lib/"
42+
}
43+
},
44+
"scripts": {
45+
"fix-cs": "php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots",
46+
"check-cs": "@fix-cs --dry-run",
47+
"test": "phpunit -c phpunit.xml.dist",
48+
"phpstan": "phpstan analyse -c phpstan.neon",
49+
"deptrac": "php vendor/bin/deptrac analyse"
50+
},
51+
"scripts-descriptions": {
52+
"fix-cs": "Automatically fixes code style in all files",
53+
"check-cs": "Run code style checker for all files",
54+
"test": "Run automatic tests",
55+
"phpstan": "Run static code analysis",
56+
"deptrac": "Run Deptrac architecture testing"
57+
},
58+
"extra": {
59+
"branch-alias": {
60+
"dev-main": "4.6.x-dev"
61+
}
62+
},
63+
"config": {
64+
"sort-packages": true,
65+
"allow-plugins": false
66+
}
67+
}

0 commit comments

Comments
 (0)